forked from lxm_flutter/FlutterUnit
165 lines
3.9 KiB
Dart
165 lines
3.9 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'unit_color.dart';
|
|
|
|
///文本样式
|
|
class UnitTextStyle {
|
|
|
|
static const lagerTextSize = 30.0;
|
|
static const bigTextSize = 23.0;
|
|
static const normalTextSize = 18.0;
|
|
static const middleTextWhiteSize = 16.0;
|
|
static const smallTextSize = 14.0;
|
|
static const minTextSize = 12.0;
|
|
|
|
static const minText = TextStyle(
|
|
color: UnitColor.subLightTextColor,
|
|
fontSize: minTextSize,
|
|
);
|
|
|
|
static const smallTextWhite = TextStyle(
|
|
color: UnitColor.textColorWhite,
|
|
fontSize: smallTextSize,
|
|
);
|
|
|
|
static const smallText = TextStyle(
|
|
color: UnitColor.mainTextColor,
|
|
fontSize: smallTextSize,
|
|
);
|
|
|
|
static const smallTextBold = TextStyle(
|
|
color: UnitColor.mainTextColor,
|
|
fontSize: smallTextSize,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const smallSubLightText = TextStyle(
|
|
color: UnitColor.subLightTextColor,
|
|
fontSize: smallTextSize,
|
|
);
|
|
|
|
static const smallActionLightText = TextStyle(
|
|
color: UnitColor.actionBlue,
|
|
fontSize: smallTextSize,
|
|
);
|
|
|
|
static const smallMiLightText = TextStyle(
|
|
color: UnitColor.miWhite,
|
|
fontSize: smallTextSize,
|
|
);
|
|
|
|
static const smallSubText = TextStyle(
|
|
color: UnitColor.subTextColor,
|
|
fontSize: smallTextSize,
|
|
);
|
|
|
|
static const middleText = TextStyle(
|
|
color: UnitColor.mainTextColor,
|
|
fontSize: middleTextWhiteSize,
|
|
);
|
|
|
|
static const middleTextWhite = TextStyle(
|
|
color: UnitColor.textColorWhite,
|
|
fontSize: middleTextWhiteSize,
|
|
);
|
|
|
|
static const middleSubText = TextStyle(
|
|
color: UnitColor.subTextColor,
|
|
fontSize: middleTextWhiteSize,
|
|
);
|
|
|
|
static const middleSubLightText = TextStyle(
|
|
color: UnitColor.subLightTextColor,
|
|
fontSize: middleTextWhiteSize,
|
|
);
|
|
|
|
static const middleTextBold = TextStyle(
|
|
color: UnitColor.mainTextColor,
|
|
fontSize: middleTextWhiteSize,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const middleTextWhiteBold = TextStyle(
|
|
color: UnitColor.textColorWhite,
|
|
fontSize: middleTextWhiteSize,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const middleSubTextBold = TextStyle(
|
|
color: UnitColor.subTextColor,
|
|
fontSize: middleTextWhiteSize,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const normalText = TextStyle(
|
|
color: UnitColor.mainTextColor,
|
|
fontSize: normalTextSize,
|
|
);
|
|
|
|
static const normalTextBold = TextStyle(
|
|
color: UnitColor.mainTextColor,
|
|
fontSize: normalTextSize,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const normalSubText = TextStyle(
|
|
color: UnitColor.subTextColor,
|
|
fontSize: normalTextSize,
|
|
);
|
|
|
|
static const normalTextWhite = TextStyle(
|
|
color: UnitColor.textColorWhite,
|
|
fontSize: normalTextSize,
|
|
);
|
|
|
|
static const normalTextMitWhiteBold = TextStyle(
|
|
color: UnitColor.miWhite,
|
|
fontSize: normalTextSize,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const normalTextActionWhiteBold = TextStyle(
|
|
color: UnitColor.actionBlue,
|
|
fontSize: normalTextSize,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const normalTextLight = TextStyle(
|
|
color: UnitColor.primaryLightValue,
|
|
fontSize: normalTextSize,
|
|
);
|
|
|
|
static const largeText = TextStyle(
|
|
color: UnitColor.mainTextColor,
|
|
fontSize: bigTextSize,
|
|
);
|
|
|
|
static const largeTextBold = TextStyle(
|
|
color: UnitColor.mainTextColor,
|
|
fontSize: bigTextSize,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const largeTextWhite = TextStyle(
|
|
color: UnitColor.textColorWhite,
|
|
fontSize: bigTextSize,
|
|
);
|
|
|
|
static const largeTextWhiteBold = TextStyle(
|
|
color: UnitColor.textColorWhite,
|
|
fontSize: bigTextSize,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const largeLargeTextWhite = TextStyle(
|
|
color: UnitColor.textColorWhite,
|
|
fontSize: lagerTextSize,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
|
|
static const largeLargeText = TextStyle(
|
|
color: UnitColor.primaryValue,
|
|
fontSize: lagerTextSize,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
} |