Fixed logout issue

This commit is contained in:
Abdullah Alassaf
2024-05-18 23:45:23 +03:00
parent 19ce38173b
commit 0f75c3def1
10 changed files with 69 additions and 88 deletions
@@ -20,8 +20,7 @@ class LightsView extends StatelessWidget {
builder: (context, state) {
DeviceModel? selectedLight;
if (DevicesCubit.getInstance().getSelectedDevice() is DeviceModel) {
selectedLight =
DevicesCubit.getInstance().getSelectedDevice() as DeviceModel;
selectedLight = DevicesCubit.getInstance().getSelectedDevice() as DeviceModel;
}
List<DeviceModel> lights = [];
if (DevicesCubit.allCategories![1].devices != null) {