瀏覽代碼

Navigator

hector.sierra 4 年之前
父節點
當前提交
637d0e71dd
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. 1
    1
      fast_med_flutter/lib/main.dart
  2. 2
    2
      fast_med_flutter/lib/welcome.dart

+ 1
- 1
fast_med_flutter/lib/main.dart 查看文件

@@ -29,7 +29,7 @@ class MyApp extends StatelessWidget{
29 29
       theme: ThemeData(
30 30
         textTheme: GoogleFonts.cabinTextTheme(textTheme),
31 31
         ),
32
-      home: NavigationPage(),
32
+      home: WelcomePage(),
33 33
     );
34 34
   }
35 35
 

+ 2
- 2
fast_med_flutter/lib/welcome.dart 查看文件

@@ -45,8 +45,8 @@ class _WelcomePageState extends State<WelcomePage> {
45 45
       print("User found");
46 46
       Token = email.text;
47 47
 
48
-      // Navigator.push(
49
-      //     context, MaterialPageRoute(builder: (context) => NavigationPage()));
48
+      Navigator.push(
49
+          context, MaterialPageRoute(builder: (context) => NavigationPage()));
50 50
 
51 51
     }
52 52
   }