mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 22:34:54 +00:00
Converted all the devices models to extends from DeviceModel for the purpose of unifying.
Initialized Lights feature.
This commit is contained in:
9
lib/features/devices/bloc/lights/lights_cubit.dart
Normal file
9
lib/features/devices/bloc/lights/lights_cubit.dart
Normal file
@ -0,0 +1,9 @@
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
|
||||
part 'lights_state.dart';
|
||||
|
||||
class LightsCubit extends Cubit<LightsState> {
|
||||
LightsCubit() : super(LightsInitial());
|
||||
|
||||
static LightsCubit get(context) => BlocProvider.of(context);
|
||||
}
|
||||
Reference in New Issue
Block a user