mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-14 17:25:47 +00:00
Implemented firebase and onesignal
This commit is contained in:
@ -4,16 +4,16 @@ import 'package:syncrow_app/utils/context_extension.dart';
|
||||
import 'custom_text_widget.dart';
|
||||
|
||||
class BodyLarge extends StatelessWidget {
|
||||
const BodyLarge({
|
||||
required this.text,
|
||||
super.key,
|
||||
this.textAlign,
|
||||
this.style,
|
||||
this.height,
|
||||
this.fontWeight,
|
||||
this.fontColor,
|
||||
this.fontSize,
|
||||
});
|
||||
const BodyLarge(
|
||||
{required this.text,
|
||||
super.key,
|
||||
this.textAlign,
|
||||
this.style,
|
||||
this.height,
|
||||
this.fontWeight,
|
||||
this.fontColor,
|
||||
this.fontSize,
|
||||
this.textOverflow});
|
||||
|
||||
final String text;
|
||||
final TextAlign? textAlign;
|
||||
@ -28,16 +28,18 @@ class BodyLarge extends StatelessWidget {
|
||||
|
||||
final double? fontSize;
|
||||
|
||||
final TextOverflow? textOverflow;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => CustomText(
|
||||
text,
|
||||
textAlign: textAlign,
|
||||
style: style ??
|
||||
context.bodyLarge.copyWith(
|
||||
height: height,
|
||||
fontWeight: fontWeight,
|
||||
color: fontColor,
|
||||
fontSize: fontSize,
|
||||
),
|
||||
height: height,
|
||||
fontWeight: fontWeight,
|
||||
color: fontColor,
|
||||
fontSize: fontSize,
|
||||
overflow: textOverflow),
|
||||
);
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ class BodySmall extends StatelessWidget {
|
||||
this.fontSize,
|
||||
this.fontWeight,
|
||||
this.textAlign,
|
||||
this.textOverflow,
|
||||
});
|
||||
|
||||
final String text;
|
||||
@ -22,6 +23,7 @@ class BodySmall extends StatelessWidget {
|
||||
final FontWeight? fontWeight;
|
||||
|
||||
final TextAlign? textAlign;
|
||||
final TextOverflow? textOverflow;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => CustomText(
|
||||
@ -31,5 +33,6 @@ class BodySmall extends StatelessWidget {
|
||||
fontSize: fontSize,
|
||||
fontWeight: fontWeight,
|
||||
textAlign: textAlign,
|
||||
textOverflow: textOverflow,
|
||||
);
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ class CustomText extends StatelessWidget {
|
||||
this.minLines,
|
||||
this.maxLines,
|
||||
this.textDirection,
|
||||
this.textOverflow,
|
||||
this.fontSize,
|
||||
this.fontColor,
|
||||
this.fontWeight});
|
||||
@ -20,6 +21,7 @@ class CustomText extends StatelessWidget {
|
||||
final int? minLines;
|
||||
final int? maxLines;
|
||||
final TextDirection? textDirection;
|
||||
final TextOverflow? textOverflow;
|
||||
|
||||
final double? fontSize;
|
||||
final Color? fontColor;
|
||||
@ -36,6 +38,7 @@ class CustomText extends StatelessWidget {
|
||||
textAlign: textAlign,
|
||||
// onTap: onTap,
|
||||
// minLines: minLines,
|
||||
overflow: textOverflow,
|
||||
maxLines: maxLines,
|
||||
textDirection: textDirection,
|
||||
);
|
||||
|
Reference in New Issue
Block a user