AC devices page implemented

AC Cubit Add
New Devices Cubit Arch will be used
Devices Cubit (for devices categories, and devices page)
{
AC cubit,
Lights cubit.
... }
Replaced AssetsManager with Assets Class (auto generated)
This commit is contained in:
Mohammad Salameh
2024-02-26 15:55:22 +03:00
parent c95a9c7817
commit abe7072f2d
72 changed files with 1535 additions and 634 deletions

View File

@ -11,6 +11,7 @@ class BodyLarge extends StatelessWidget {
this.style,
this.height,
this.fontWeight,
this.fontColor,
});
final String text;
@ -22,11 +23,17 @@ class BodyLarge extends StatelessWidget {
final FontWeight? fontWeight;
final Color? fontColor;
@override
Widget build(BuildContext context) => CustomText(
text,
style: style ?? context.bodyLarge.copyWith(height: height ?? 1.5),
textAlign: textAlign,
fontWeight: fontWeight,
style: style ??
context.bodyLarge.copyWith(
height: height ?? 1.5,
fontWeight: fontWeight,
color: fontColor,
),
);
}

View File

@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:syncrow_app/utils/resource_manager/color_manager.dart';
class CustomText extends StatelessWidget {
const CustomText(this.text,
@ -31,10 +30,7 @@ class CustomText extends StatelessWidget {
Widget build(BuildContext context) {
return SelectableText(
text,
style: style!.copyWith(
fontSize: fontSize,
color: fontColor ?? ColorsManager.textPrimaryColor,
fontWeight: fontWeight),
style: style,
textAlign: textAlign,
onTap: onTap,
minLines: minLines,