Skip to content

Instantly share code, notes, and snippets.

@md-weber
Created August 25, 2019 01:42
Show Gist options
  • Save md-weber/4366e801ec443f47d70b70392dfcbcfb to your computer and use it in GitHub Desktop.
Save md-weber/4366e801ec443f47d70b70392dfcbcfb to your computer and use it in GitHub Desktop.
Digital Journal -
import 'package:client/paths.dart';
import 'package:client/provider-setup.dart';
import 'package:client/ui/pages/home.page.dart';
import 'package:client/ui/router.dart';
import 'package:flutter_web/cupertino.dart';
import 'package:flutter_web/material.dart';
import 'package:provider/provider.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MultiProvider(
providers: providers,
child: MaterialApp(
title: 'Flutter Digital Journal',
theme: ThemeData(primarySwatch: Colors.blue, fontFamily: "Roboto"),
initialRoute: RoutePaths.Login,
onGenerateRoute: Router.generateRoute,
home: MyHomePage(title: 'Flutter Digital Journal - Chingu Prework'),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment