mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-26 09:54:55 +00:00
cleaned some warring messages
This commit is contained in:
@ -1,5 +1,4 @@
|
|||||||
import 'package:bloc/bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:meta/meta.dart';
|
|
||||||
|
|
||||||
part 'auth_state.dart';
|
part 'auth_state.dart';
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
part of 'auth_cubit.dart';
|
part of 'auth_cubit.dart';
|
||||||
|
|
||||||
@immutable
|
|
||||||
abstract class AuthState {}
|
abstract class AuthState {}
|
||||||
|
|
||||||
class AuthInitial extends AuthState {}
|
class AuthInitial extends AuthState {}
|
||||||
|
|||||||
@ -65,13 +65,13 @@ class EnergyUsage extends StatelessWidget {
|
|||||||
case 0:
|
case 0:
|
||||||
return SideTitleWidget(
|
return SideTitleWidget(
|
||||||
axisSide: meta.axisSide,
|
axisSide: meta.axisSide,
|
||||||
child: BodySmall(text: '1'),
|
child: const BodySmall(text: '1'),
|
||||||
);
|
);
|
||||||
|
|
||||||
case 11:
|
case 11:
|
||||||
return SideTitleWidget(
|
return SideTitleWidget(
|
||||||
axisSide: meta.axisSide,
|
axisSide: meta.axisSide,
|
||||||
child: BodySmall(text: '28'),
|
child: const BodySmall(text: '28'),
|
||||||
);
|
);
|
||||||
default:
|
default:
|
||||||
return Container();
|
return Container();
|
||||||
@ -172,7 +172,7 @@ class EnergyUsage extends StatelessWidget {
|
|||||||
|
|
||||||
return SideTitleWidget(
|
return SideTitleWidget(
|
||||||
axisSide: meta.axisSide,
|
axisSide: meta.axisSide,
|
||||||
child: BodySmall(text: 'Feb'),
|
child: const BodySmall(text: 'Feb'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,9 +46,9 @@ class DevicesCubit extends Cubit<DevicesState> {
|
|||||||
|
|
||||||
void updateDevicesStatus(DevicesCategoryModel category) {
|
void updateDevicesStatus(DevicesCategoryModel category) {
|
||||||
bool? tempStatus = category.devices[0].status;
|
bool? tempStatus = category.devices[0].status;
|
||||||
for (var AC in category.devices) {
|
for (var ac in category.devices) {
|
||||||
//check if there any AC have a different status than the initial ==> turn off the universal switch
|
//check if there any ac have a different status than the initial ==> turn off the universal switch
|
||||||
if (AC.status != tempStatus) {
|
if (ac.status != tempStatus) {
|
||||||
category.devicesStatus = null;
|
category.devicesStatus = null;
|
||||||
emit(DeviceSwitchChanged());
|
emit(DeviceSwitchChanged());
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
// ignore_for_file: constant_identifier_names
|
||||||
|
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:syncrow_app/features/devices/model/device_model.dart';
|
import 'package:syncrow_app/features/devices/model/device_model.dart';
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,6 @@ class LightsList extends StatelessWidget {
|
|||||||
BodySmall(text: lights[index].name ?? ""),
|
BodySmall(text: lights[index].name ?? ""),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
var device = lights[index];
|
|
||||||
// LightsCubit.get(context).selectAC(device);
|
// LightsCubit.get(context).selectAC(device);
|
||||||
},
|
},
|
||||||
icon: const Icon(
|
icon: const Icon(
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import 'package:bloc/bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:meta/meta.dart';
|
|
||||||
|
|
||||||
part 'layout_state.dart';
|
part 'layout_state.dart';
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
part of 'layout_cubit.dart';
|
part of 'layout_cubit.dart';
|
||||||
|
|
||||||
@immutable
|
|
||||||
abstract class LayoutState {}
|
abstract class LayoutState {}
|
||||||
|
|
||||||
class LayoutInitial extends LayoutState {}
|
class LayoutInitial extends LayoutState {}
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import 'package:bloc/bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:meta/meta.dart';
|
|
||||||
|
|
||||||
part 'profile_state.dart';
|
part 'profile_state.dart';
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
part of 'profile_cubit.dart';
|
part of 'profile_cubit.dart';
|
||||||
|
|
||||||
@immutable
|
|
||||||
abstract class ProfileState {}
|
abstract class ProfileState {}
|
||||||
|
|
||||||
class ProfileInitial extends ProfileState {}
|
class ProfileInitial extends ProfileState {}
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:meta/meta.dart';
|
|
||||||
import 'package:syncrow_app/features/scene/model/scene_model.dart';
|
import 'package:syncrow_app/features/scene/model/scene_model.dart';
|
||||||
|
|
||||||
part 'scene_state.dart';
|
part 'scene_state.dart';
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
part of 'scene_cubit.dart';
|
part of 'scene_cubit.dart';
|
||||||
|
|
||||||
@immutable
|
|
||||||
abstract class SceneState {}
|
abstract class SceneState {}
|
||||||
|
|
||||||
class SceneInitial extends SceneState {}
|
class SceneInitial extends SceneState {}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// ignore_for_file: lines_longer_than_80_chars
|
// ignore_for_file: lines_longer_than_80_chars, constant_identifier_names
|
||||||
|
|
||||||
class StringsManager {
|
class StringsManager {
|
||||||
static const noRouteFound = 'No route found';
|
static const noRouteFound = 'No route found';
|
||||||
|
|||||||
Reference in New Issue
Block a user