mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +00:00
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:
@ -4,7 +4,7 @@ import 'package:gap/gap.dart';
|
||||
import 'package:syncrow_app/features/dashboard/view/widgets/card_title.dart';
|
||||
import 'package:syncrow_app/features/shared_widgets/text_widgets/body_small.dart';
|
||||
import 'package:syncrow_app/features/shared_widgets/united_text.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/assets_manager.dart';
|
||||
import 'package:syncrow_app/generated/assets.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/strings_manager.dart';
|
||||
|
||||
class CarbonEmission extends StatelessWidget {
|
||||
@ -38,7 +38,7 @@ class CarbonEmission extends StatelessWidget {
|
||||
SizedBox.square(
|
||||
dimension: 30,
|
||||
child: SvgPicture.asset(
|
||||
IconsManager.CO2,
|
||||
Assets.iconsCO2,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
),
|
||||
@ -68,7 +68,7 @@ class CarbonEmission extends StatelessWidget {
|
||||
SizedBox.square(
|
||||
dimension: 30,
|
||||
child: SvgPicture.asset(
|
||||
IconsManager.sustainability,
|
||||
Assets.iconsSustainability,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
),
|
||||
|
@ -2,9 +2,10 @@ import 'package:flutter/material.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:syncrow_app/features/dashboard/view/widgets/card_title.dart';
|
||||
import 'package:syncrow_app/features/shared_widgets/united_text.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/assets_manager.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/strings_manager.dart';
|
||||
|
||||
import '../../../../generated/assets.dart';
|
||||
|
||||
class Consumption extends StatelessWidget {
|
||||
const Consumption({
|
||||
super.key,
|
||||
@ -54,7 +55,7 @@ class Consumption extends StatelessWidget {
|
||||
SizedBox.square(
|
||||
dimension: 60,
|
||||
child: Image.asset(
|
||||
ImageManager.testDash2,
|
||||
Assets.imagesTestDash2,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:syncrow_app/features/dashboard/view/widgets/energy_usage_header.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/assets_manager.dart';
|
||||
import 'package:syncrow_app/generated/assets.dart';
|
||||
|
||||
class EnergyUsage extends StatelessWidget {
|
||||
const EnergyUsage({
|
||||
@ -23,7 +23,7 @@ class EnergyUsage extends StatelessWidget {
|
||||
children: [
|
||||
const EnergyUsageHeader(),
|
||||
Expanded(
|
||||
child: Image.asset(ImageManager.testDash),
|
||||
child: Image.asset(Assets.imagesTestDash),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
@ -1,8 +1,9 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:syncrow_app/features/dashboard/view/widgets/live_monitor_widget.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/assets_manager.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/strings_manager.dart';
|
||||
|
||||
import '../../../../generated/assets.dart';
|
||||
|
||||
class LiveMonitorTab extends StatelessWidget {
|
||||
const LiveMonitorTab({
|
||||
super.key,
|
||||
@ -14,21 +15,21 @@ class LiveMonitorTab extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: LiveMonitorWidget(
|
||||
image: IconsManager.active,
|
||||
image: Assets.iconsActive,
|
||||
title: StringsManager.active,
|
||||
value: '10.00w',
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: LiveMonitorWidget(
|
||||
image: IconsManager.voltMeter,
|
||||
image: Assets.iconsVoltMeter,
|
||||
title: StringsManager.current,
|
||||
value: '12.1 A',
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: LiveMonitorWidget(
|
||||
image: IconsManager.frequency,
|
||||
image: Assets.iconsFrequency,
|
||||
title: StringsManager.frequency,
|
||||
value: '50 Hz',
|
||||
),
|
||||
|
Reference in New Issue
Block a user