forked from lxm_flutter/FlutterUnit
179 lines
4.2 KiB
Dart
179 lines
4.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'unit_color.dart';
|
|
|
|
///文本样式
|
|
class TStyleUnit {
|
|
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 splashShadows = TextStyle(
|
|
color: Colors.grey,
|
|
shadows: [
|
|
Shadow(
|
|
color: Colors.black,
|
|
blurRadius: 1,
|
|
offset: Offset(0.1, 0.1))
|
|
],
|
|
fontSize: 12);
|
|
|
|
static const smallTextWhite = TextStyle(
|
|
color: UnitColor.textColorWhite,
|
|
fontSize: smallTextSize,
|
|
);
|
|
|
|
static const shadowTextStyle = TextStyle(color: Colors.grey, shadows: [
|
|
Shadow(color: Colors.white, offset: Offset(.5, .5), blurRadius: .5)
|
|
]);
|
|
|
|
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,
|
|
);
|
|
}
|