Skip to content

Instantly share code, notes, and snippets.

@ponnamkarthik
Created February 9, 2023 01:42
Show Gist options
  • Save ponnamkarthik/bdd0897948f9cf8a07cb9343cc6d6df8 to your computer and use it in GitHub Desktop.
Save ponnamkarthik/bdd0897948f9cf8a07cb9343cc6d6df8 to your computer and use it in GitHub Desktop.
Paint paint = Paint()
..shader = Shader.linearGradient(
colors: [Colors.red, Colors.blue],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment