flutter_drag_to_pop
Tap a widget for fullscreen display and drag around to pop
Getting Started
- include the package to your project as dependency:
dependencies:
flutter_drag_to_pop: <latest version>
- Use the widget
DragToPop(
closeWidget: ClipRRect(
borderRadius: BorderRadius.circular(24.0),
child: Image.network(
'https://th.bing.com/th/id/OIP.eGeQuTMPlWngOAWRCV-LjQHaE8?pid=Api&rs=1',
),
),
openWidget: Image.network(
'https://th.bing.com/th/id/OIP.eGeQuTMPlWngOAWRCV-LjQHaE8?pid=Api&rs=1',
),
openOverlayWidget: Column(
children: [
AppBar(
leading: CloseButton(),
elevation: 0.0,
backgroundColor: Colors.transparent,
)
],
),
openBackgroundColor: Colors.grey,
);