You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
804 B
27 lines
804 B
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:ansu_ui/styles/as_colors.dart';
|
|
|
|
extension TextStyleExtension on TextStyle {
|
|
///Bold text
|
|
TextStyle get bold => this.copyWith(fontWeight: FontWeight.bold);
|
|
|
|
///size
|
|
TextStyle size(double size) => this.copyWith(fontSize: size.sp);
|
|
|
|
///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);
|
|
|
|
///FontWeight:w300
|
|
TextStyle get light => this.copyWith(fontWeight: FontWeight.w300);
|
|
|
|
TextStyle heightX(double height) => this.copyWith(height: height);
|
|
}
|