Skip to content

Instantly share code, notes, and snippets.

@pologonzalo
Created September 8, 2018 13:02
Show Gist options
  • Save pologonzalo/0aaa9f8e78e69014a977568d8ce8d13c to your computer and use it in GitHub Desktop.
Save pologonzalo/0aaa9f8e78e69014a977568d8ce8d13c to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
/* ====================================================== */
/* Screens */
/* ====================================================== */
import 'package:travel_pal/screens/splash/splash_screen.dart';
/* ====================================================== */
/* Implementation */
/* ====================================================== */
void main() => runApp(new TravelPal());
class TravelPal extends StatelessWidget {
// This widget is the root of our application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Travel Pal',
initialRoute: '/',
routes: {
'/': (context) => Splash(),
// '/explore': (context) => Explore()
},
// Instead of `initalRoute` and `routes` I could have use the line below
// However in next parts as we will have to deal with routing we'll leave it
// home: new Splash(),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment