Created
May 4, 2019 15:00
-
-
Save ConProgramming/3341f28a468fd4f90524d34caa664012 to your computer and use it in GitHub Desktop.
This file contains hidden or 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:flutter/services.dart'; | |
import 'package:exampleapp/blocprovs/example-bloc-prov.dart'; | |
import 'package:exampleapp/blocs/example-bloc.dart'; | |
import 'package:exampleapp/theme/style.dart'; | |
import 'package:exampleapp/screens/example1/examplescreen1.dart'; | |
import 'package:exampleapp/screens/example2/examplescreen2.dart'; | |
void main() { | |
runApp(ExampleApp()); | |
} | |
class ExampleApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return ExampleProvider( | |
bloc: ExampleBloc(), | |
child: MaterialApp( | |
title: 'ExampleApp', | |
theme: appTheme(), | |
initialRoute: '/', | |
routes: <String, WidgetBuilder>{ | |
"/": (BuildContext context) => ExScreen1(), | |
"/ExScreen2": (BuildContext context) => ExScreen2(), | |
}, | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment