Skip to content

Instantly share code, notes, and snippets.

@ConProgramming
Created May 4, 2019 15:00
Show Gist options
  • Save ConProgramming/3341f28a468fd4f90524d34caa664012 to your computer and use it in GitHub Desktop.
Save ConProgramming/3341f28a468fd4f90524d34caa664012 to your computer and use it in GitHub Desktop.
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