LoginPage #3
@ -1,5 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'BottomNavPage.dart';
|
import 'BottomNavPage.dart';
|
||||||
|
import 'package:flutter_applicationdemo/LoginPage.dart';
|
||||||
|
|
||||||
class HomePage extends StatefulWidget {
|
class HomePage extends StatefulWidget {
|
||||||
const HomePage({Key? key}) : super(key: key);
|
const HomePage({Key? key}) : super(key: key);
|
||||||
@ -93,7 +94,7 @@ class _HomePageState extends State<HomePage> {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(builder: (context) => Container()), //Replace Container() with call to Map-page.
|
MaterialPageRoute(builder: (context) => LoginPage()), //Replace Container() with call to Map-page.
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: const Text('Sign in',
|
child: const Text('Sign in',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user