toThemeData method

ThemeData toThemeData()

Implementation

ThemeData toThemeData() {
  return ThemeData(
    fontFamily: fontFamily,
    primaryColor: primaryColor,
    brightness: brightness,
    disabledColor: disabledColor,
    scaffoldBackgroundColor: scaffoldBackgroundColor,
    useMaterial3: useMaterial3,
    cardColor: cardColor,
    dividerColor: dividerColor,
    textTheme: typography.toTextTheme(),
    dialogTheme: dialogTheme,
    elevatedButtonTheme: ElevatedButtonThemeData(
      style: primaryButtonStyle.toButtonStyle(),
    ),
    outlinedButtonTheme: OutlinedButtonThemeData(
      style: secondaryButtonStyle.toButtonStyle(),
    ),
    textButtonTheme: TextButtonThemeData(
      style: textButtonStyle.toButtonStyle(),
    ),
    buttonTheme: buttonTheme,
    inputDecorationTheme:
        textfieldStyleSet.mainStyle.toInputDecorationTheme(),
    colorScheme: colorScheme,
    dividerTheme: dividerStyle.toDividerTheme(),
    chipTheme: chipFilledStyle.toChipThemeData(),
    navigationBarTheme: navigationBarStyle.toNavigationBarTheme(),
    drawerTheme: navigationDrawerStyle.toNavigationDrawerTheme(),
    appBarTheme: appBarStyle.toAppBarTheme(),
    navigationRailTheme: navigationRailStyle.toNavigationRailTheme(),
    tabBarTheme: tabBarStyle.toTabBarTheme(),
    checkboxTheme: checkboxStyle.toCheckBoxTheme(),
    radioTheme: radioStyle.toRadioTheme(),
    sliderTheme: sliderStyle.toSliderTheme(),
    bottomSheetTheme: bottomSheetStyle.toBottomSheetTheme(),
  );
}