How to know pop event happened inside Nested Widget in Flutter
问题 I am currently building app where I need to use Nested Routing keeping one screen same and routing on different one. I want to when that second route is popped so that I can change value of expanded to fill whole screen. Gist in Github. Here is code sample: import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: