import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; abstract class Styles { static double textScaleFactor = 1; static bool isXs = false; static const double defaultFontSize = 16; static const CupertinoTextThemeData defaultTextTheme = CupertinoTextThemeData( textStyle: TextStyle( fontSize: defaultFontSize, fontFamilyFallback: [ "PingFang SC", "Heiti SC", "Noto Sans SC", "Microsoft YaHei", "Hei", "SimHei", ], color: CupertinoColors.label, ), ); static CupertinoThemeData cupertinoLightTheme = const CupertinoThemeData( textTheme: Styles.defaultTextTheme, scaffoldBackgroundColor: Styles.themePageBackgroundColor, ); static CupertinoThemeData cupertinoDarkTheme = const CupertinoThemeData( brightness: Brightness.dark, textTheme: Styles.defaultTextTheme, scaffoldBackgroundColor: Styles.themePageBackgroundColor, ); static ThemeData materialLightTheme = ThemeData.light().copyWith( cardTheme: cardTheme, ); static ThemeData materialDarkTheme = ThemeData.light().copyWith( cardTheme: cardTheme.copyWith(color: const Color.fromRGBO(28, 28, 28, 1)), ); static CardTheme cardTheme = CardTheme( shadowColor: CupertinoColors.black.withOpacity(0.2), margin: const EdgeInsets.symmetric(horizontal: 6, vertical: 8), ); static const TextStyle navLargeTitleTextStyle = TextStyle( fontWeight: FontWeight.normal, fontSize: 32, color: CupertinoColors.label, inherit: false); static const TextStyle productRowItemName = TextStyle( color: Color.fromRGBO(0, 0, 0, 0.8), fontSize: 18, fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, ); static const TextStyle productRowTotal = TextStyle( color: Color.fromRGBO(0, 0, 0, 0.8), fontSize: 20, fontStyle: FontStyle.normal, fontWeight: FontWeight.bold, ); static const TextStyle articleTitle = TextStyle( fontSize: 28, fontStyle: FontStyle.normal, fontWeight: FontWeight.bold, ); static const TextStyle listTileLargeTitle = TextStyle(fontSize: 18); static const TextStyle listTileSubTitle = TextStyle(fontSize: 16); static const TextStyle loadingDialogTitle = TextStyle(fontSize: 18, fontWeight: FontWeight.w500); static const Color websiteNavbarColor = Color.fromRGBO(33, 37, 41, 1); static const Color themeMainColor = Color.fromRGBO(65, 147, 135, 1); static const Color themeNavTitleColor = Color.fromRGBO(255, 255, 255, 1); static const Color themeBottomColor = Color.fromRGBO(255, 255, 255, 1); static const Color themePageBackgroundColor = Color.fromRGBO(240, 240, 240, 1); static const Color darkThemePageBackgroundColor = Color.fromRGBO(0, 0, 0, 1); static const Color themeNavSegmentTextColor = Color.fromRGBO(12, 12, 12, 1); static const Color panelBackgroundColor = Color.fromRGBO(255, 255, 255, 1); static const Color linkColor = CupertinoColors.link; static const double largeTitleFontSize = 32; static const double navTitleFontSize = 18; }