Answers for "flutter navigator get result"

0

flutter navigator get result

final result = await Navigator.push(
context,
// Create the SelectionScreen in the next step.
MaterialPageRoute(builder: (context) => const SelectionScreen()),
);


ElevatedButton(
  onPressed: () {
    // Close the screen and return "Yep!" as the result.
    Navigator.pop(context, 'Yep!');
  },
  child: const Text('Yep!'),
)
Posted by: Guest on February-10-2022

Code answers related to "Dart"

Browse Popular Code Answers by Language