Answers for "flutter colorscheme generator"

4

flutter generate random color

color: Colors.primaries[Random().nextInt(Colors.primaries.length)],
 or 
 	use package random_color 1.0.5
Posted by: Guest on August-01-2020
0

flutter colorScheme

colorScheme: ColorScheme(
  primary: Colors.red, // focus
  onPrimary: Colors.black,
  primaryVariant: Colors.orange,

  background: Colors.red,
  onBackground: Colors.black,

  secondary: Colors.red, //float action button
  onSecondary: Colors.white,
  secondaryVariant: Colors.deepOrange,

  error: Colors.black,
  onError: Colors.white,

  surface: Colors.white, // AppBar
  onSurface: Colors.black, //icons, inputs

  brightness: Brightness.light,
),
Posted by: Guest on November-10-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language