import 'package:flutter/material.dart'; import 'package:imagini/theme/style.dart'; import 'package:imagini/routes.dart'; import 'package:imagini/bloc/bloc-prov-tree.dart'; import 'package:imagini/bloc/bloc-prov.dart'; import 'package:imagini/blocs/blocs.dart'; import 'blocs/blocs.dart'; void main() { runApp(ExampleApp()); } class ExampleApp extends StatelessWidget { @override Widget build(BuildContext context) { return BlocProviderTree( blocProviders: [ BlocProvider(bloc: AuthBloc()), BlocProvider(bloc: PrefBloc()), ], child: MaterialApp( title: 'ExampleApp', theme: appTheme(), initialRoute: '/', routes: routes, ), ); } }