We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 426b74b commit cdd6eb6Copy full SHA for cdd6eb6
1 file changed
lib/components/bottom_sheet/gf_bottom_sheet.dart
@@ -128,6 +128,22 @@ class _GFBottomSheetState extends State<GFBottomSheet>
128
),
129
130
131
+ StreamBuilder(
132
+ stream: controller.stream,
133
+ builder:(context,snapshot) => GestureDetector(
134
+ onVerticalDragUpdate: (DragUpdateDetails details){
135
+ position = MediaQuery.of(context).size.height- details.globalPosition.dy;
136
+ position.isNegative ? Navigator.pop(context) :controller.add(position);
137
+ },
138
+ behavior: HitTestBehavior.translucent,
139
+ child:
140
+ Container(
141
+ color: Colors.red,
142
+ height: snapshot.hasData ? snapshot.data : 100.0,
143
+ width: double.infinity,
144
+ child: Text('Child'),
145
+ )),
146
+ ),
147
widget.stickyFooter != null
148
? AnimatedBuilder(
149
animation: widget.controller,
0 commit comments