#flutter #flutter-layout
Вопрос:
У меня есть ListView() и draggablescrollesheet(), которые могут перекрываться в виджете Stack (). Могу ли я, чтобы детектор жестов перетаскиваемой таблицы всегда был сверху?
Прямо сейчас _pageController просмотра страницы находится поверх _scrollesheetcontroller
Stack(
alignment: Alignment.topCenter,
children: [
Column(
children: [
SizedBox(
height: 20,
),
BreadCrumbIndicators(pageController: _pageController),
PageView(...),
],
),
NotificationListener<DraggableScrollableNotification>(
onNotification: (notification) {
print("bottom sheet postion : ${notification.extent}");
setState(() {
_bottomSheetPosition = notification.extent;
});
return true;
},
child: DraggableScrollableSheet(
expand: true,
initialChildSize: 0.3,
minChildSize: 0.12,
maxChildSize: 0.5),
}
),
])