Showing
1 changed file
with
17 additions
and
0 deletions
example_nav2/lib/main.dart
0 → 100644
1 | +import 'package:flutter/material.dart'; | ||
2 | + | ||
3 | +import 'package:get/get.dart'; | ||
4 | +import 'package:get/get_navigation/src/nav2/get_router_delegate.dart'; | ||
5 | + | ||
6 | +import 'app/routes/app_pages.dart'; | ||
7 | + | ||
8 | +void main() { | ||
9 | + runApp( | ||
10 | + GetMaterialApp.router( | ||
11 | + title: "Application", | ||
12 | + getPages: AppPages.routes, | ||
13 | + routeInformationParser: GetInformationParser(), | ||
14 | + routerDelegate: GetDelegate(), | ||
15 | + ), | ||
16 | + ); | ||
17 | +} |
-
Please register or login to post a comment