showDraggable<T> method
Implementation
Future<T?> showDraggable<T>({
final double minSize = 0.25,
final double initSize = 1.0,
}) {
isOpened = true;
return showModalBottomSheet<T>(
backgroundColor: Colors.transparent,
isScrollControlled: true,
context: context,
builder: (_) {
return DraggableScrollableSheet(
expand: false,
maxChildSize: 1,
minChildSize: minSize,
initialChildSize: initSize,
builder: (_, controller) => _buildBottomSheet(controller: controller),
);
},
).then((value) {
isOpened = false;
return value;
});
}