mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-14 09:17:23 +00:00
50 lines
1.5 KiB
Dart
50 lines
1.5 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:gap/gap.dart';
|
|
import 'package:syncrow_app/features/dashboard/view/carbon_emission.dart';
|
|
import 'package:syncrow_app/features/dashboard/view/consumption.dart';
|
|
import 'package:syncrow_app/features/dashboard/view/live_monitor_tab.dart';
|
|
import 'package:syncrow_app/features/shared_widgets/text_widgets/title_medium.dart';
|
|
import 'package:syncrow_app/utils/resource_manager/strings_manager.dart';
|
|
|
|
import 'energy_usage.dart';
|
|
|
|
class DashboardView extends StatelessWidget {
|
|
const DashboardView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return const Padding(
|
|
padding: EdgeInsets.only(top: 60, right: 15, left: 15, bottom: 100),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
children: [
|
|
TitleMedium(
|
|
text: StringsManager.dashboard,
|
|
style: TextStyle(
|
|
fontSize: 32,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
LiveMonitorTab(),
|
|
Gap(10),
|
|
EnergyUsage(),
|
|
Expanded(
|
|
child: Padding(
|
|
padding: EdgeInsets.only(top: 20),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
Consumption(),
|
|
Gap(20),
|
|
CarbonEmission(),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|