📜  flutter colorScheme - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:29.449000             🧑  作者: Mango

代码示例1
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,
),