You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.4 KiB
Dart
79 lines
2.4 KiB
Dart
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 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 pageCardTitle = TextStyle(
|
|
fontSize: 20,
|
|
fontStyle: FontStyle.normal,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const TextStyle articleTitle = TextStyle(
|
|
fontSize: 28,
|
|
fontStyle: FontStyle.normal,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const TextStyle pageCardDescription = TextStyle(
|
|
color: Colors.black54,
|
|
fontSize: 14,
|
|
fontStyle: FontStyle.normal,
|
|
fontWeight: FontWeight.normal,
|
|
);
|
|
|
|
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 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;
|
|
}
|