Skip to content

Instantly share code, notes, and snippets.

@ijoschek
Last active April 7, 2019 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ijoschek/4ab6b7c0efa818dfa147b3063503a367 to your computer and use it in GitHub Desktop.
Save ijoschek/4ab6b7c0efa818dfa147b3063503a367 to your computer and use it in GitHub Desktop.
flutter_nav_tut
import 'package:flutter/material.dart';
class NewPage extends StatefulWidget {
// Here will be code
@override
_NewPageState createState() => _NewPageState();
}
class _NewPageState extends State<NewPage> {
// Here will be code
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("NewPage"),
),
body: Center(
child: Column(
children: <Widget>[
Text("Placeholder"),
RaisedButton(
child: Text('Back To HomeScreen'),
color: Theme.of(context).primaryColor,
textColor: Colors.white,
onPressed: () => Navigator.pop(context)),
// Here will be code
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment