class systemOverflowTextCenter extends StatelessWidget {
final String text;
final Color? color;
const systemOverflowTextCenter({Key? key, required this.text, this.color})
: super(key: key);
@override
Widget build(BuildContext context) {
String? overText;
overText = text.replaceRange(
text.length - (text.length - 4), text.length - 4, '......');
return Text(
overText,
style: GoogleFonts.notoSans(
color: color != null ? color : appColor.white,
fontWeight: FontWeight.bold),
);
}
}
版权属于:
narakuyang
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论