textTheme static method

TextTheme textTheme({
  1. Brightness? brightness,
  2. Color? color,
})

可以调用后二次修改 或者自己实现

Implementation

static TextTheme textTheme({Brightness? brightness, Color? color}) {
  var _color = color;
  if (brightness != null) {
    _color = CConfig.getOne(brightness: brightness);
  }
  return TextTheme(
    bodyText1: StyleText.one(color: _color),
    bodyText2: StyleText.two(color: _color),
    headline6: TextStyle(
      color: _color,
      fontSize: FConfig.ins.themeFontSize.toDouble(),
      fontWeight: FontWeight.bold,
    ),
  );
}