mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 08:04:55 +00:00
23 lines
712 B
Dart
23 lines
712 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:syncrow_app/features/scene/bloc/scene_cubit.dart';
|
|
import 'package:syncrow_app/features/scene/view/widgets/scene_view_no_scenes.dart';
|
|
|
|
class SceneView extends StatelessWidget {
|
|
const SceneView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return BlocProvider(
|
|
create: (BuildContext context) => SceneCubit(),
|
|
child: BlocBuilder<SceneCubit, SceneState>(
|
|
builder: (context, state) {
|
|
return state is SceneLoading
|
|
? const Center(child: CircularProgressIndicator())
|
|
: const SceneViewNoScenes();
|
|
},
|
|
),
|
|
);
|
|
}
|
|
}
|