parent
074b48181e
commit
730d866283
@ -1,8 +1,21 @@
|
||||
import 'package:ansu_ui/styles/as_colors.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
|
||||
extension TextStyleExtension on TextStyle {
|
||||
///Bold text
|
||||
TextStyle get bold => this.copyWith(fontWeight: FontWeight.bold);
|
||||
|
||||
///size
|
||||
TextStyle size(double size) => this.copyWith(fontSize: size.w);
|
||||
|
||||
///color
|
||||
TextStyle colorX(Color color) => this.copyWith(color: color);
|
||||
//specific values
|
||||
|
||||
TextStyle get white => this.copyWith(color: kLightTextColor);
|
||||
|
||||
TextStyle get black => this.copyWith(color: kTextColor);
|
||||
|
||||
TextStyle get black65 => this.copyWith(color: kTextSubColor);
|
||||
}
|
||||
|
Loading…
Reference in new issue