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.
26 lines
511 B
26 lines
511 B
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
extension TextExtension on Text {
|
|
Text get bold {
|
|
return Text(
|
|
this.data,
|
|
style: this.style.copyWith(fontWeight: FontWeight.bold),
|
|
);
|
|
}
|
|
|
|
Text size(double size) {
|
|
return Text(
|
|
this.data,
|
|
style: this.style.copyWith(fontSize: size.w),
|
|
);
|
|
}
|
|
|
|
Text color(Color color) {
|
|
return Text(
|
|
this.data,
|
|
style: this.style.copyWith(color: color),
|
|
);
|
|
}
|
|
}
|