kThemeData top-level property
Implementation
final ThemeData kThemeData = ThemeData(
scaffoldBackgroundColor: kBackgroundColor,
appBarTheme: AppBarTheme(
color: kNavigationHeaderBackgroundColor,
iconTheme: IconThemeData(
color: kNavigationHeaderTextColor,
),
toolbarTextStyle: TextTheme(
titleLarge: TextStyle(
color: kNavigationHeaderTextColor,
fontWeight: FontWeight.bold,
),
).bodyMedium,
titleTextStyle: TextTheme(
titleLarge: TextStyle(
color: kNavigationHeaderTextColor,
fontWeight: FontWeight.bold,
),
).titleLarge,
),
textTheme: TextTheme(
bodyLarge: TextStyle(
color: kTextColor,
),
bodyMedium: TextStyle(
color: kTextColor,
),
bodySmall: TextStyle(
color: kTextColor,
),
titleLarge: TextStyle(
color: kTextColor,
fontWeight: FontWeight.bold,
),
),
buttonTheme: ButtonThemeData(
buttonColor: kPrimaryColor,
disabledColor: Colors.grey,
textTheme: ButtonTextTheme.normal,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
),
),
inputDecorationTheme: InputDecorationTheme(
fillColor: kBackgroundColor,
filled: true,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(8.0),
borderSide: BorderSide.none,
),
contentPadding: const EdgeInsets.symmetric(
vertical: 12.0,
horizontal: 16.0,
),
errorMaxLines: 2,
),
colorScheme: ColorScheme.fromSwatch(
primarySwatch:
MaterialColor(kPrimaryColor.value, kPrimaryColorSwatch))
.copyWith(secondary: kSecondaryColor)
.copyWith(background: kBackgroundColor),
);