-
-
Save ijoschek/8f7a39c1d9869c59ab129da9854afa6a to your computer and use it in GitHub Desktop.
flutter_nav_tut
This file contains 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:flutter_tut_navigation/getBackString.dart'; | |
class NewPage extends StatefulWidget { | |
NewPage({@required this.title}); | |
final String title; | |
@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(widget.title), | |
RaisedButton( | |
child: Text('Back To HomeScreen'), | |
color: Theme.of(context).primaryColor, | |
textColor: Colors.white, | |
onPressed: () => Navigator.pop(context)), | |
Text(status), | |
RaisedButton( | |
child: Text('Get a string'), | |
color: Theme.of(context).primaryColor, | |
textColor: Colors.white, | |
onPressed: clickGetBackString), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment