Created
September 8, 2018 13:02
-
-
Save pologonzalo/0aaa9f8e78e69014a977568d8ce8d13c 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'; | |
/* ====================================================== */ | |
/* 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