初始化
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
TextStyle textStyle(
|
||||
double fontSize,
|
||||
Color color,
|
||||
FontWeight fontWeight, {
|
||||
bool isNeedThrough = false,
|
||||
}) {
|
||||
return TextStyle(
|
||||
color: color, fontSize: fontSize.toDouble(), fontWeight: fontWeight, decoration: isNeedThrough ? TextDecoration.lineThrough : null);
|
||||
}
|
||||
Reference in New Issue
Block a user