theme property
final
Implementation
static final ThemeData theme = ThemeData(
useMaterial3: true,
colorScheme: colorScheme,
primaryColor: brandColor,
indicatorColor: brandColor,
appBarTheme: AppBarTheme(
color: backgroundColor,
surfaceTintColor: backgroundColor,
),
scaffoldBackgroundColor: backgroundColor,
highlightColor: Colors.transparent,
hoverColor: Colors.transparent,
unselectedWidgetColor: greyColor,
progressIndicatorTheme: progressIndicatorTheme,
tabBarTheme: const TabBarTheme(
indicatorColor: Colors.white,
labelColor: Colors.white,
),
textTheme: textTheme,
iconTheme: const IconThemeData(color: Colors.white),
cardTheme: cardTheme,
searchBarTheme: SearchBarThemeData(
backgroundColor: WidgetStateProperty.all(surfaceColor),
elevation: WidgetStateProperty.all(0),
shape: WidgetStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
),
),
chipTheme: ChipThemeData(
backgroundColor: surfaceColor,
selectedColor: brandColor,
),
listTileTheme: listTileTheme,
dividerTheme: dividerTheme,
dialogTheme: dialogTheme,
bottomSheetTheme: bottomSheetTheme,
elevatedButtonTheme: elevatedButtonTheme(),
outlinedButtonTheme: outlinedButtonTheme(),
textButtonTheme: textButtonTheme(),
iconButtonTheme: iconButtonTheme,
inputDecorationTheme: inputDecorationTheme,
bottomNavigationBarTheme: bottomNavigationBarTheme,
navigationRailTheme: navigationRailTheme,
);