light property

ThemeData get light

Implementation

ThemeData get light {
  return ThemeData(
    useMaterial3: false,
    fontFamily: getFontFamily(),
    toggleableActiveColor: ColorSchemes.primary,
    appBarTheme: AppBarTheme(
      centerTitle: true,
      color: ColorSchemes.white,
      elevation: 0.0,
      shadowColor: Colors.transparent,
      systemOverlayStyle: SystemUiOverlayStyle(
        statusBarColor: Colors.transparent,
        systemNavigationBarColor: ColorSchemes.primary,
        statusBarIconBrightness: Brightness.dark,
        statusBarBrightness: Brightness.light,
      ),
    ),
    inputDecorationTheme: InputDecorationTheme(
      contentPadding: const EdgeInsets.all(8),
      hintStyle: TextStyle(
          fontSize: 14,
          fontFamily: getFontFamily(),
          color: ColorSchemes.gray,
          letterSpacing: 0.26,
          fontWeight: FontWeight.normal),
      labelStyle: TextStyle(
          fontSize: 14,
          fontFamily: getFontFamily(), //todo handle font family
          color: ColorSchemes.gray,
          fontWeight: FontWeight.normal),
      errorStyle: TextStyle(
          fontSize: 12,
          fontFamily: getFontFamily(), //todo handle font family
          color: ColorSchemes.redError,
          fontWeight: FontWeight.normal),
      enabledBorder: const OutlineInputBorder(
        borderSide: BorderSide(color: ColorSchemes.gray, width: 1),
        borderRadius: BorderRadius.all(
          Radius.circular(10),
        ),
      ),
      focusedBorder: const OutlineInputBorder(
        borderSide: BorderSide(color: ColorSchemes.gray, width: 1),
        borderRadius: BorderRadius.all(
          Radius.circular(10),
        ),
      ),
      errorBorder: const OutlineInputBorder(
        borderSide: BorderSide(color: ColorSchemes.redError, width: 1),
        borderRadius: BorderRadius.all(
          Radius.circular(10),
        ),
      ),
      focusedErrorBorder: const OutlineInputBorder(
        borderSide: BorderSide(color: ColorSchemes.redError, width: 1),
        borderRadius: BorderRadius.all(
          Radius.circular(10),
        ),
      ),
      alignLabelWithHint: true,
    ),
    textTheme: TextTheme(
      titleLarge: getTextStyle(
        fontSize: 18,
        fontFamily: getFontFamily(),
        fontWeight: Constants.fontWeightSemiBold,
        color: ColorSchemes.primary,
      ),
      bodyLarge: getTextStyle(
        fontSize: 16,
        fontFamily: getFontFamily(),
        fontWeight: Constants.fontWeightSemiBold,
        color: ColorSchemes.primary,
      ),
      bodyMedium: getTextStyle(
        fontSize: 13,
        fontFamily: getFontFamily(),
        fontWeight: Constants.fontWeightMedium,
        color: ColorSchemes.primary,
      ),
      bodySmall: getTextStyle(
        fontSize: 13,
        fontFamily: getFontFamily(),
        fontWeight: Constants.fontWeightRegular,
        textDecoration: TextDecoration.none,
        color: ColorSchemes.primary,
      ),
      labelLarge: getTextStyle(
        fontSize: 12,
        fontFamily: getFontFamily(),
        fontWeight: Constants.fontWeightRegular,
        color: ColorSchemes.primary,
      ), //Regular
    ),
    bottomNavigationBarTheme: BottomNavigationBarThemeData(
      backgroundColor: ColorSchemes.white,
      elevation: 10,
      selectedIconTheme: IconThemeData(
        color: ColorSchemes.primary,
        size: 24,
      ),
      unselectedIconTheme: const IconThemeData(
        color: ColorSchemes.gray,
        size: 24,
      ),
    ),
    scaffoldBackgroundColor: Colors.white,
    primaryColor: ColorSchemes.primary,
    splashColor: Colors.transparent,
  );
}