This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const double minLightness = 0.30; | |
| const double maxLightness = 0.55; | |
| const double lightnessRange = maxLightness - minLightness; | |
| const int numberOfColors = 3; | |
| /// The top card gradients logic | |
| /// | |
| /// Generate a list of gradient colors based on the provided [originalColor]. | |
| /// This function generates three gradient colors by adjusting the lightness of the [originalColor]. | |
| List<Color> generateGradientColors(Color originalColor) { |
OlderNewer