Files
hjsq_android/lib/hj_utils/widget_util.dart
T
谢宇宁andClaude Opus 5.5 2d26ea8f90 Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 10:38:11 +07:00

12 lines
319 B
Dart

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);
}