Add tests for navigator.restorable_push.0.dart (#157492)

Contributes to https://github.com/flutter/flutter/issues/130459

It adds a test for
- `examples/api/lib/widgets/navigator/navigator.restorable_push.0.dart`
This commit is contained in:
Valentin Vignal
2024-10-26 10:39:13 +08:00
committed by GitHub
parent ece457ba74
commit 4e52defed4
3 changed files with 58 additions and 3 deletions

View File

@@ -13,8 +13,12 @@ class RestorablePushExampleApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: RestorablePushExample(),
return const RootRestorationScope(
restorationId: 'app',
child: MaterialApp(
restorationScopeId: 'app',
home: RestorablePushExample(),
),
);
}
}