Files
MWClash/lib/common/text.dart
chen08209 ef97ef40a1 Remake dashboard
Optimize theme

Optimize more details

Update flutter version
2025-01-09 10:10:06 +08:00

17 lines
461 B
Dart

import 'package:flutter/material.dart';
import 'color.dart';
extension TextStyleExtension on TextStyle {
TextStyle get toLight => copyWith(color: color?.toLight);
TextStyle get toLighter => copyWith(color: color?.toLighter);
TextStyle get toSoftBold => copyWith(fontWeight: FontWeight.w500);
TextStyle get toBold => copyWith(fontWeight: FontWeight.bold);
TextStyle adjustSize(int size) => copyWith(
fontSize: fontSize! + size,
);
}