Skip to content
Discussion options

You must be logged in to vote

Hey 👋 @ArbazIrshad

Wanted to let you know that with the release of v1.6.0, gradient colors are now supported with the 'customPalette()' method.

You can find more info on the example app and docs here:

https://docs.cristalyse.com/advanced/custom-themes#applying-gradient-themes
https://docs.cristalyse.com/advanced/custom-themes#gradient-themes-experimental

// Create gradients map for use with .customPalette()
final productGradients = {
  // Linear gradients for different product tiers
  'Enterprise': const LinearGradient(
    colors: [Color(0xFF8B5CF6), Color(0xFFA78BFA)],
    begin: Alignment.bottomLeft,
    end: Alignment.topRight,
    stops: [0.0, 1.0],
  ),
  'Professional': const Linea…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ArbazIrshad
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by rudi-q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants