mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
finished adding tasks and removing them , added error handling
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:syncrow_app/features/auth/bloc/auth_cubit.dart';
|
||||
import 'package:syncrow_app/features/scene/bloc/create_scene/create_scene_bloc.dart';
|
||||
import 'package:syncrow_app/navigation/navigation_service.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/color_manager.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/constants.dart';
|
||||
@ -19,8 +20,11 @@ class MyApp extends StatelessWidget {
|
||||
MediaQuery.sizeOf(context).height * Constants.appBarHeightPercentage;
|
||||
Constants.bottomNavBarHeight = MediaQuery.sizeOf(context).height *
|
||||
Constants.bottomNavBarHeightPercentage;
|
||||
return BlocProvider(
|
||||
create: (context) => AuthCubit(),
|
||||
return MultiBlocProvider(
|
||||
providers: [
|
||||
BlocProvider(create: (context) => AuthCubit()),
|
||||
BlocProvider(create: (context) => CreateSceneBloc())
|
||||
],
|
||||
child: MaterialApp(
|
||||
navigatorKey: NavigationService.navigatorKey,
|
||||
scaffoldMessengerKey: NavigationService.snackbarKey,
|
||||
|
Reference in New Issue
Block a user