mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 09:45:22 +00:00
initialized Devices Page
This commit is contained in:
@ -10,6 +10,7 @@ class BodyLarge extends StatelessWidget {
|
||||
this.textAlign,
|
||||
this.style,
|
||||
this.height,
|
||||
this.fontWeight,
|
||||
});
|
||||
|
||||
final String text;
|
||||
@ -19,10 +20,13 @@ class BodyLarge extends StatelessWidget {
|
||||
|
||||
final double? height;
|
||||
|
||||
final FontWeight? fontWeight;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => CustomText(
|
||||
text,
|
||||
style: style ?? context.bodyLarge.copyWith(height: height ?? 1.5),
|
||||
textAlign: textAlign,
|
||||
fontWeight: fontWeight,
|
||||
);
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ class BodySmall extends StatelessWidget {
|
||||
this.style,
|
||||
this.fontColor,
|
||||
this.fontSize,
|
||||
this.fontWeight,
|
||||
});
|
||||
|
||||
final String text;
|
||||
@ -17,6 +18,7 @@ class BodySmall extends StatelessWidget {
|
||||
final Color? fontColor;
|
||||
|
||||
final double? fontSize;
|
||||
final FontWeight? fontWeight;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => CustomText(
|
||||
@ -24,5 +26,6 @@ class BodySmall extends StatelessWidget {
|
||||
style: style ?? context.bodySmall,
|
||||
fontColor: fontColor,
|
||||
fontSize: fontSize,
|
||||
fontWeight: fontWeight,
|
||||
);
|
||||
}
|
||||
|
@ -11,7 +11,8 @@ class CustomText extends StatelessWidget {
|
||||
this.maxLines,
|
||||
this.textDirection,
|
||||
this.fontSize,
|
||||
this.fontColor});
|
||||
this.fontColor,
|
||||
this.fontWeight});
|
||||
|
||||
final String text;
|
||||
final TextStyle? style;
|
||||
@ -24,14 +25,16 @@ class CustomText extends StatelessWidget {
|
||||
final double? fontSize;
|
||||
final Color? fontColor;
|
||||
|
||||
final FontWeight? fontWeight;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SelectableText(
|
||||
text,
|
||||
style: style!.copyWith(
|
||||
fontSize: fontSize,
|
||||
color: fontColor ?? ColorsManager.textPrimaryColor,
|
||||
),
|
||||
fontSize: fontSize,
|
||||
color: fontColor ?? ColorsManager.textPrimaryColor,
|
||||
fontWeight: fontWeight),
|
||||
textAlign: textAlign,
|
||||
onTap: onTap,
|
||||
minLines: minLines,
|
||||
|
Reference in New Issue
Block a user