mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-24 23:07: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:
@@ -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);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
part of 'lights_cubit.dart';
|
||||
|
||||
abstract class LightsState {}
|
||||
|
||||
class LightsInitial extends LightsState {}
|
||||
Reference in New Issue
Block a user