Answers for "types of color in flutter themedata"

0

flutter custom themedata

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
    );
  }
}
Posted by: Guest on November-19-2021
-2

How to get theme color inside the widget in Flutter

Color color = Theme.of(context).primaryColor;
Posted by: Guest on August-14-2021

Code answers related to "types of color in flutter themedata"

Code answers related to "Dart"

Browse Popular Code Answers by Language