Skip to content

Instantly share code, notes, and snippets.

@ijoschek
Last active April 7, 2019 11:07
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/4cb0ebbfcce3f7f50a3957286783e945 to your computer and use it in GitHub Desktop.
Save ijoschek/4cb0ebbfcce3f7f50a3957286783e945 to your computer and use it in GitHub Desktop.
flutter_nav_tut
import 'package:flutter_app_nav_test/getBackString.dart';
// ...
class _NewPageState extends State<NewPage> {
// ...
String status = "No string here";
void clickGetBackString() async {
status = await Navigator.push<String>(
context,
MaterialPageRoute(
builder: (BuildContext context) => GetBackStringPage()));
}
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment