Skip to content

Instantly share code, notes, and snippets.

@vaygeth89
Created October 16, 2021 04:11
Show Gist options
  • Save vaygeth89/9fd2893da971ef6afb52da734693a6fb to your computer and use it in GitHub Desktop.
Save vaygeth89/9fd2893da971ef6afb52da734693a6fb to your computer and use it in GitHub Desktop.
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