Implemented firebase and onesignal

This commit is contained in:
Abdullah Alassaf
2024-05-23 17:09:10 +03:00
parent f7db91f212
commit cda41ecf74
17 changed files with 312 additions and 64 deletions

View File

@ -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),
);
}

View File

@ -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,
);
}

View File

@ -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,
);