-
-
Save ijoschek/4cb0ebbfcce3f7f50a3957286783e945 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_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