Created
October 16, 2021 04:11
-
-
Save vaygeth89/9fd2893da971ef6afb52da734693a6fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:tutorial_flutter_minimalist_authentication/routes/routes.dart'; | |
class LandingPage extends StatelessWidget { | |
const LandingPage({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar(title: Text("Landing page")), | |
body: Center( | |
child: MaterialButton( | |
child: Text("Go to my profile"), | |
color: Theme.of(context).primaryColor, | |
onPressed: () { | |
Navigator.of(context).pushNamed(Routes.profilePageRoute); | |
}), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment