Browse Source

Navigator

hector.sierra 3 years ago
parent
commit
637d0e71dd
2 changed files with 3 additions and 3 deletions
  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 View File

29
       theme: ThemeData(
29
       theme: ThemeData(
30
         textTheme: GoogleFonts.cabinTextTheme(textTheme),
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 View File

45
       print("User found");
45
       print("User found");
46
       Token = email.text;
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
   }