Created
December 15, 2019 05:27
-
-
Save ConProgramming/5512b4477c5be74265dc15c91701a6b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:example/theme/style.dart'; | |
import 'package:example/routes.dart'; | |
import 'package:example/bloc/bloc-prov-tree.dart'; | |
import 'package:example/bloc/bloc-prov.dart'; | |
import 'package:example/blocs/blocs.dart'; | |
import 'blocs/blocs.dart'; | |
void main() { | |
runApp(ExampleApp()); | |
} | |
class ExampleApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return BlocProviderTree( | |
blocProviders: <BlocProvider>[ | |
BlocProvider<AuthBloc>(bloc: AuthBloc()), | |
BlocProvider<PrefBloc>(bloc: PrefBloc()), | |
], | |
child: MaterialApp( | |
title: 'ExampleApp', | |
theme: appTheme(), | |
initialRoute: '/', | |
routes: routes, | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment