Add test for nested_scroll_view_state.0.dart (#157714)

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

It adds a test for
- `examples/api/lib/widgets/nested_scroll_view/nested_scroll_view_state.0.dart`
This commit is contained in:
Valentin Vignal
2024-10-29 10:40:41 +08:00
committed by GitHub
parent 1ab3c57ea4
commit 88d992042c
3 changed files with 42 additions and 2 deletions

View File

@@ -24,7 +24,6 @@ final GlobalKey<NestedScrollViewState> globalKey = GlobalKey();
class NestedScrollViewStateExample extends StatelessWidget {
const NestedScrollViewStateExample({super.key});
@override
@override
Widget build(BuildContext context) {
return NestedScrollView(
@@ -42,6 +41,10 @@ class NestedScrollViewStateExample extends StatelessWidget {
);
}
ScrollController get outerController {
return globalKey.currentState!.outerController;
}
ScrollController get innerController {
return globalKey.currentState!.innerController;
}