mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00

changed the method of generating assets to be more declrative when it comes to names of the assets. it now include the file path name e.g (asset in the path "assets/images/home-images/home.png" will be generated as this "String assetsImagesHomeImageshome = "path" ". this will be very helpful in the future when we want to orgnize the assets dir.
41 lines
1.0 KiB
Dart
41 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:syncrow_app/features/dashboard/view/widgets/live_monitor_widget.dart';
|
|
import 'package:syncrow_app/utils/resource_manager/strings_manager.dart';
|
|
|
|
import 'package:syncrow_app/generated/assets.dart';
|
|
|
|
class LiveMonitorTab extends StatelessWidget {
|
|
const LiveMonitorTab({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return const Row(
|
|
children: [
|
|
Expanded(
|
|
child: LiveMonitorWidget(
|
|
image: Assets.assetsIconsActive,
|
|
title: StringsManager.active,
|
|
value: '10.00w',
|
|
),
|
|
),
|
|
Expanded(
|
|
child: LiveMonitorWidget(
|
|
image: Assets.assetsIconsVoltMeter,
|
|
title: StringsManager.current,
|
|
value: '12.1 A',
|
|
),
|
|
),
|
|
Expanded(
|
|
child: LiveMonitorWidget(
|
|
image: Assets.assetsIconsFrequency,
|
|
title: StringsManager.frequency,
|
|
value: '50 Hz',
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|