| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- // ignore_for_file: overridden_fields, annotate_overrides
- import 'package:flutter/material.dart';
- import 'package:google_fonts/google_fonts.dart';
- abstract class FlutterFlowTheme {
- static FlutterFlowTheme of(BuildContext context) {
- return LightModeTheme();
- }
- @Deprecated('Use primary instead')
- Color get primaryColor => primary;
- @Deprecated('Use secondary instead')
- Color get secondaryColor => secondary;
- @Deprecated('Use tertiary instead')
- Color get tertiaryColor => tertiary;
- late Color primary;
- late Color secondary;
- late Color tertiary;
- late Color alternate;
- late Color primaryText;
- late Color secondaryText;
- late Color primaryBackground;
- late Color secondaryBackground;
- late Color accent1;
- late Color accent2;
- late Color accent3;
- late Color accent4;
- late Color success;
- late Color warning;
- late Color error;
- late Color info;
- FFDesignTokens get designToken => FFDesignTokens(this);
- @Deprecated('Use displaySmallFamily instead')
- String get title1Family => displaySmallFamily;
- @Deprecated('Use displaySmall instead')
- TextStyle get title1 => typography.displaySmall;
- @Deprecated('Use headlineMediumFamily instead')
- String get title2Family => typography.headlineMediumFamily;
- @Deprecated('Use headlineMedium instead')
- TextStyle get title2 => typography.headlineMedium;
- @Deprecated('Use headlineSmallFamily instead')
- String get title3Family => typography.headlineSmallFamily;
- @Deprecated('Use headlineSmall instead')
- TextStyle get title3 => typography.headlineSmall;
- @Deprecated('Use titleMediumFamily instead')
- String get subtitle1Family => typography.titleMediumFamily;
- @Deprecated('Use titleMedium instead')
- TextStyle get subtitle1 => typography.titleMedium;
- @Deprecated('Use titleSmallFamily instead')
- String get subtitle2Family => typography.titleSmallFamily;
- @Deprecated('Use titleSmall instead')
- TextStyle get subtitle2 => typography.titleSmall;
- @Deprecated('Use bodyMediumFamily instead')
- String get bodyText1Family => typography.bodyMediumFamily;
- @Deprecated('Use bodyMedium instead')
- TextStyle get bodyText1 => typography.bodyMedium;
- @Deprecated('Use bodySmallFamily instead')
- String get bodyText2Family => typography.bodySmallFamily;
- @Deprecated('Use bodySmall instead')
- TextStyle get bodyText2 => typography.bodySmall;
- String get displayLargeFamily => typography.displayLargeFamily;
- bool get displayLargeIsCustom => typography.displayLargeIsCustom;
- TextStyle get displayLarge => typography.displayLarge;
- String get displayMediumFamily => typography.displayMediumFamily;
- bool get displayMediumIsCustom => typography.displayMediumIsCustom;
- TextStyle get displayMedium => typography.displayMedium;
- String get displaySmallFamily => typography.displaySmallFamily;
- bool get displaySmallIsCustom => typography.displaySmallIsCustom;
- TextStyle get displaySmall => typography.displaySmall;
- String get headlineLargeFamily => typography.headlineLargeFamily;
- bool get headlineLargeIsCustom => typography.headlineLargeIsCustom;
- TextStyle get headlineLarge => typography.headlineLarge;
- String get headlineMediumFamily => typography.headlineMediumFamily;
- bool get headlineMediumIsCustom => typography.headlineMediumIsCustom;
- TextStyle get headlineMedium => typography.headlineMedium;
- String get headlineSmallFamily => typography.headlineSmallFamily;
- bool get headlineSmallIsCustom => typography.headlineSmallIsCustom;
- TextStyle get headlineSmall => typography.headlineSmall;
- String get titleLargeFamily => typography.titleLargeFamily;
- bool get titleLargeIsCustom => typography.titleLargeIsCustom;
- TextStyle get titleLarge => typography.titleLarge;
- String get titleMediumFamily => typography.titleMediumFamily;
- bool get titleMediumIsCustom => typography.titleMediumIsCustom;
- TextStyle get titleMedium => typography.titleMedium;
- String get titleSmallFamily => typography.titleSmallFamily;
- bool get titleSmallIsCustom => typography.titleSmallIsCustom;
- TextStyle get titleSmall => typography.titleSmall;
- String get labelLargeFamily => typography.labelLargeFamily;
- bool get labelLargeIsCustom => typography.labelLargeIsCustom;
- TextStyle get labelLarge => typography.labelLarge;
- String get labelMediumFamily => typography.labelMediumFamily;
- bool get labelMediumIsCustom => typography.labelMediumIsCustom;
- TextStyle get labelMedium => typography.labelMedium;
- String get labelSmallFamily => typography.labelSmallFamily;
- bool get labelSmallIsCustom => typography.labelSmallIsCustom;
- TextStyle get labelSmall => typography.labelSmall;
- String get bodyLargeFamily => typography.bodyLargeFamily;
- bool get bodyLargeIsCustom => typography.bodyLargeIsCustom;
- TextStyle get bodyLarge => typography.bodyLarge;
- String get bodyMediumFamily => typography.bodyMediumFamily;
- bool get bodyMediumIsCustom => typography.bodyMediumIsCustom;
- TextStyle get bodyMedium => typography.bodyMedium;
- String get bodySmallFamily => typography.bodySmallFamily;
- bool get bodySmallIsCustom => typography.bodySmallIsCustom;
- TextStyle get bodySmall => typography.bodySmall;
- Typography get typography => ThemeTypography(this);
- }
- class LightModeTheme extends FlutterFlowTheme {
- @Deprecated('Use primary instead')
- Color get primaryColor => primary;
- @Deprecated('Use secondary instead')
- Color get secondaryColor => secondary;
- @Deprecated('Use tertiary instead')
- Color get tertiaryColor => tertiary;
- late Color primary = const Color(0xFF9A141D);
- late Color secondary = const Color(0xFFFF680D);
- late Color tertiary = const Color(0xFF09B34A);
- late Color alternate = const Color(0xFFEEEEEE);
- late Color primaryText = const Color(0xFF3E454C);
- late Color secondaryText = const Color(0xFF838A8F);
- late Color primaryBackground = const Color(0xFFF2F2F2);
- late Color secondaryBackground = const Color(0xFFFFFFFF);
- late Color accent1 = const Color(0x4C4B39EF);
- late Color accent2 = const Color(0x4D39D2C0);
- late Color accent3 = const Color(0x4DEE8B60);
- late Color accent4 = const Color(0xCCFFFFFF);
- late Color success = const Color(0xFF249689);
- late Color warning = const Color(0xFFF9CF58);
- late Color error = const Color(0xFFFF5963);
- late Color info = const Color(0xFFFFFFFF);
- }
- abstract class Typography {
- String get displayLargeFamily;
- bool get displayLargeIsCustom;
- TextStyle get displayLarge;
- String get displayMediumFamily;
- bool get displayMediumIsCustom;
- TextStyle get displayMedium;
- String get displaySmallFamily;
- bool get displaySmallIsCustom;
- TextStyle get displaySmall;
- String get headlineLargeFamily;
- bool get headlineLargeIsCustom;
- TextStyle get headlineLarge;
- String get headlineMediumFamily;
- bool get headlineMediumIsCustom;
- TextStyle get headlineMedium;
- String get headlineSmallFamily;
- bool get headlineSmallIsCustom;
- TextStyle get headlineSmall;
- String get titleLargeFamily;
- bool get titleLargeIsCustom;
- TextStyle get titleLarge;
- String get titleMediumFamily;
- bool get titleMediumIsCustom;
- TextStyle get titleMedium;
- String get titleSmallFamily;
- bool get titleSmallIsCustom;
- TextStyle get titleSmall;
- String get labelLargeFamily;
- bool get labelLargeIsCustom;
- TextStyle get labelLarge;
- String get labelMediumFamily;
- bool get labelMediumIsCustom;
- TextStyle get labelMedium;
- String get labelSmallFamily;
- bool get labelSmallIsCustom;
- TextStyle get labelSmall;
- String get bodyLargeFamily;
- bool get bodyLargeIsCustom;
- TextStyle get bodyLarge;
- String get bodyMediumFamily;
- bool get bodyMediumIsCustom;
- TextStyle get bodyMedium;
- String get bodySmallFamily;
- bool get bodySmallIsCustom;
- TextStyle get bodySmall;
- }
- class ThemeTypography extends Typography {
- ThemeTypography(this.theme);
- final FlutterFlowTheme theme;
- String get displayLargeFamily => 'Roboto';
- bool get displayLargeIsCustom => false;
- TextStyle get displayLarge => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.w600,
- fontSize: 64.0,
- );
- String get displayMediumFamily => 'Roboto';
- bool get displayMediumIsCustom => false;
- TextStyle get displayMedium => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.w600,
- fontSize: 44.0,
- );
- String get displaySmallFamily => 'Roboto';
- bool get displaySmallIsCustom => false;
- TextStyle get displaySmall => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.w600,
- fontSize: 36.0,
- );
- String get headlineLargeFamily => 'Roboto';
- bool get headlineLargeIsCustom => false;
- TextStyle get headlineLarge => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.w600,
- fontSize: 32.0,
- );
- String get headlineMediumFamily => 'Roboto';
- bool get headlineMediumIsCustom => false;
- TextStyle get headlineMedium => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.w600,
- fontSize: 28.0,
- );
- String get headlineSmallFamily => 'Roboto';
- bool get headlineSmallIsCustom => false;
- TextStyle get headlineSmall => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.w600,
- fontSize: 24.0,
- );
- String get titleLargeFamily => 'Roboto';
- bool get titleLargeIsCustom => false;
- TextStyle get titleLarge => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.w600,
- fontSize: 20.0,
- );
- String get titleMediumFamily => 'Roboto';
- bool get titleMediumIsCustom => false;
- TextStyle get titleMedium => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.w600,
- fontSize: 18.0,
- );
- String get titleSmallFamily => 'Roboto';
- bool get titleSmallIsCustom => false;
- TextStyle get titleSmall => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.w600,
- fontSize: 16.0,
- );
- String get labelLargeFamily => 'Roboto';
- bool get labelLargeIsCustom => false;
- TextStyle get labelLarge => GoogleFonts.roboto(
- color: theme.secondaryText,
- fontWeight: FontWeight.normal,
- fontSize: 16.0,
- );
- String get labelMediumFamily => 'Roboto';
- bool get labelMediumIsCustom => false;
- TextStyle get labelMedium => GoogleFonts.roboto(
- color: theme.secondaryText,
- fontWeight: FontWeight.normal,
- fontSize: 14.0,
- );
- String get labelSmallFamily => 'Roboto';
- bool get labelSmallIsCustom => false;
- TextStyle get labelSmall => GoogleFonts.roboto(
- color: theme.secondaryText,
- fontWeight: FontWeight.normal,
- fontSize: 12.0,
- );
- String get bodyLargeFamily => 'Roboto';
- bool get bodyLargeIsCustom => false;
- TextStyle get bodyLarge => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.normal,
- fontSize: 16.0,
- );
- String get bodyMediumFamily => 'Roboto';
- bool get bodyMediumIsCustom => false;
- TextStyle get bodyMedium => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.normal,
- fontSize: 14.0,
- );
- String get bodySmallFamily => 'Roboto';
- bool get bodySmallIsCustom => false;
- TextStyle get bodySmall => GoogleFonts.roboto(
- color: theme.primaryText,
- fontWeight: FontWeight.normal,
- fontSize: 12.0,
- );
- }
- class FFDesignTokens {
- const FFDesignTokens(this.theme);
- final FlutterFlowTheme theme;
- FFSpacing get spacing => const FFSpacing();
- FFRadius get radius => const FFRadius();
- FFShadows get shadow => FFShadows(theme);
- }
- class FFSpacing {
- const FFSpacing();
- double get xs => 4.0;
- double get sm => 8.0;
- double get md => 16.0;
- double get lg => 24.0;
- double get xl => 32.0;
- }
- class FFRadius {
- const FFRadius();
- double get sm => 8.0;
- double get md => 16.0;
- double get lg => 24.0;
- double get full => 9999.0;
- }
- class FFShadows {
- const FFShadows(this.theme);
- final FlutterFlowTheme theme;
- BoxShadow get sm => const BoxShadow(
- blurRadius: 3.0,
- color: const Color(0x1A000000),
- offset: const Offset(0.0, 1.0),
- spreadRadius: 0.0);
- BoxShadow get md => const BoxShadow(
- blurRadius: 6.0,
- color: const Color(0x1A000000),
- offset: const Offset(0.0, 3.0),
- spreadRadius: 0.0);
- BoxShadow get lg => const BoxShadow(
- blurRadius: 15.0,
- color: const Color(0x1A000000),
- offset: const Offset(0.0, 8.0),
- spreadRadius: 0.0);
- BoxShadow get xl => const BoxShadow(
- blurRadius: 25.0,
- color: const Color(0x1A000000),
- offset: const Offset(0.0, 16.0),
- spreadRadius: 0.0);
- }
- extension TextStyleHelper on TextStyle {
- TextStyle override({
- TextStyle? font,
- String? fontFamily,
- Color? color,
- double? fontSize,
- FontWeight? fontWeight,
- double? letterSpacing,
- FontStyle? fontStyle,
- bool useGoogleFonts = false,
- TextDecoration? decoration,
- double? lineHeight,
- List<Shadow>? shadows,
- String? package,
- }) {
- if (useGoogleFonts && fontFamily != null && fontFamily.isNotEmpty) {
- font = GoogleFonts.getFont(fontFamily,
- fontWeight: fontWeight ?? this.fontWeight,
- fontStyle: fontStyle ?? this.fontStyle);
- }
- return font != null
- ? font.copyWith(
- color: color ?? this.color,
- fontSize: fontSize ?? this.fontSize,
- letterSpacing: letterSpacing ?? this.letterSpacing,
- fontWeight: fontWeight ?? this.fontWeight,
- fontStyle: fontStyle ?? this.fontStyle,
- decoration: decoration,
- height: lineHeight,
- shadows: shadows,
- )
- : copyWith(
- fontFamily: fontFamily,
- package: package,
- color: color,
- fontSize: fontSize,
- letterSpacing: letterSpacing,
- fontWeight: fontWeight,
- fontStyle: fontStyle,
- decoration: decoration,
- height: lineHeight,
- shadows: shadows,
- );
- }
- }
|