📜  颤振自定义主题数据 - 任何代码示例

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

代码示例1
class AppThemeData {
  final BorderRadius borderRadius = BorderRadius.circular(8);

  final Color colorYellow = Color(0xffffff00);
  final Color colorPrimary = Color(0xffabcdef);

  ThemeData get materialTheme {
    return ThemeData(
        primaryColor: colorPrimary
    );
  }
}