Closed LEEKIWAN closed 5 months ago
class SymbolDetailPage extends GetView<SymbolDetailPageController> {
final GlobalKey<ExtendedNestedScrollViewState> _nestedScrollViewState = GlobalKey<ExtendedNestedScrollViewState>(); //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
final double tabBarHeight = 40;
SymbolDetailPage({super.key});
@override
Widget build(BuildContext context) {
context.theme;
return Scaffold(
body: SafeArea(
child: Column(
children: [
Obx(() => SymbolDetailNavigationBar(
symbolDetail: controller.symbolDetail.value, naviBottomScrollController: controller.naviBottomScrollController, naviTopScrollController: controller.naviTopScrollController)),
Expanded(
child: ExtendedNestedScrollView(
key: _nestedScrollViewState, // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
headerSliverBuilder: (BuildContext c, bool f) {
return [
other class Using It
final GlobalKey<ExtendedNestedScrollViewState> _nestedScrollViewState = GlobalKey<ExtendedNestedScrollViewState>();
print('sdfsfdsdsfsdsdf');
print(_nestedScrollViewState);
_nestedScrollViewState.currentState!.innerController.addListener(() {
print('sdsdfdsdf');
});
_nestedScrollViewState.currentState!.outerController.addListener(() {
print('sdsdfdsdf');
});
print(_nestedScrollViewState.currentContext);
print(_nestedScrollViewState.currentWidget);
print(_nestedScrollViewState);
i'm a newbie so it doesn't work out well. It seems to be used as a global key, but it is difficult to apply from the description alone. Are there any sample examples?
make sure you are using it at right moment.
thanks~! shie shie
i can do
Platforms
dart
Description
I want to add a scroll controller to the child view on the tab view page because paging is required, but there is an issue where full scrolling is possible when I add it. Is there a way?
My code
Try do it
TT