mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +00:00
icon_settings
This commit is contained in:
@ -468,8 +468,6 @@ class CreateSceneBloc extends Bloc<CreateSceneEvent, CreateSceneState>
|
||||
}
|
||||
}
|
||||
|
||||
///scene/icon
|
||||
///
|
||||
List<IconModel> iconModel = [];
|
||||
|
||||
FutureOr<void> _fetchIconScene(
|
||||
@ -482,8 +480,7 @@ class CreateSceneBloc extends Bloc<CreateSceneEvent, CreateSceneState>
|
||||
IconModel.fromJson(iconJson as Map<String, dynamic>))
|
||||
.toList();
|
||||
print(iconModel[0].iconBase64.toString());
|
||||
emit(CreateSceneLoaded(
|
||||
iconModel)); // Ensure this state is defined to handle the loaded list
|
||||
emit(CreateSceneLoaded(iconModel));
|
||||
} catch (e) {
|
||||
emit(const CreateSceneError(message: 'Something went wrong'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user