From 34762dee6ee2b3fd393d0f3c2efe0874f7fd5045 Mon Sep 17 00:00:00 2001 From: mohammad Date: Wed, 23 Oct 2024 16:40:12 +0300 Subject: [PATCH] power_clamp_chart_functionality --- .../devices/bloc/power_clamp_bloc/power_clamp_event.dart | 2 +- .../devices/bloc/power_clamp_bloc/power_clamp_state.dart | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/features/devices/bloc/power_clamp_bloc/power_clamp_event.dart b/lib/features/devices/bloc/power_clamp_bloc/power_clamp_event.dart index fa038ce..ea1fa76 100644 --- a/lib/features/devices/bloc/power_clamp_bloc/power_clamp_event.dart +++ b/lib/features/devices/bloc/power_clamp_bloc/power_clamp_event.dart @@ -113,7 +113,7 @@ class FilterRecordsByDateEvent extends PowerClampEvent { final DateTime selectedDate; final String viewType; // 'Day', 'Month', 'Year' - FilterRecordsByDateEvent( + const FilterRecordsByDateEvent( {required this.selectedDate, required this.viewType}); } diff --git a/lib/features/devices/bloc/power_clamp_bloc/power_clamp_state.dart b/lib/features/devices/bloc/power_clamp_bloc/power_clamp_state.dart index 1fd6d51..4e08065 100644 --- a/lib/features/devices/bloc/power_clamp_bloc/power_clamp_state.dart +++ b/lib/features/devices/bloc/power_clamp_bloc/power_clamp_state.dart @@ -1,5 +1,4 @@ import 'package:equatable/equatable.dart'; -import 'package:syncrow_app/features/devices/model/device_report_model.dart'; import 'package:syncrow_app/features/devices/model/power_clamp_model.dart'; import 'package:syncrow_app/features/devices/view/widgets/power_clamp/power_chart.dart'; @@ -54,5 +53,5 @@ class EnergyDataState extends PowerClampState { class FilterRecordsState extends PowerClampState { final List filteredRecords; - FilterRecordsState({required this.filteredRecords}); + const FilterRecordsState({required this.filteredRecords}); }