- This is a multi page app consist of :
- Loading page (spinner)
- Homepage
- Location page (to show the list of location)
- Entry point of app :
import 'package:flutter/material.dart';
import 'package:worldclock/packages/choose_location.dart';
import 'package:worldclock/packages/loading.dart';
import 'package:worldclock/packages/home.dart';
void main()=>runApp(MaterialApp(
debugShowCheckedModeBanner: false,
initialRoute: '/',
routes: {
'/':(context) => Loading(),
'/home':(context) => Home(),
'/location':(context) => ChooseLocation(),
},
));
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.