mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-07-18 01:41:19 +08:00
implemented handling_routes example
This commit is contained in:
15
handling_routes/lib/main.dart
Normal file
15
handling_routes/lib/main.dart
Normal file
@ -0,0 +1,15 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import './AboutPage.dart';
|
||||
import './HomePage.dart';
|
||||
|
||||
void main() {
|
||||
runApp(new MaterialApp(
|
||||
home: new HomePage(),
|
||||
// Setup routes
|
||||
routes: <String, WidgetBuilder>{
|
||||
// Set named routes
|
||||
"/about": (BuildContext context) => new AboutPage(),
|
||||
},
|
||||
));
|
||||
}
|
Reference in New Issue
Block a user