💄 Better fullscreen attachment viewer
This commit is contained in:
parent
387f0d14ac
commit
6ace977bf6
@ -54,10 +54,10 @@ class _AttachmentListFullScreenState extends State<AttachmentListFullScreen> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return DismissiblePage(
|
return DismissiblePage(
|
||||||
key: Key('attachment-dismissible${widget.attachment.id}'),
|
key: Key('attachment-dismissible${widget.attachment.id}'),
|
||||||
direction: DismissiblePageDismissDirection.multi,
|
direction: DismissiblePageDismissDirection.vertical,
|
||||||
onDismissed: () => Navigator.pop(context),
|
onDismissed: () => Navigator.pop(context),
|
||||||
dismissThresholds: const {
|
dismissThresholds: const {
|
||||||
DismissiblePageDismissDirection.multi: 0.05,
|
DismissiblePageDismissDirection.vertical: 0.0,
|
||||||
},
|
},
|
||||||
onDragStart: () {
|
onDragStart: () {
|
||||||
setState(() => _showDetails = false);
|
setState(() => _showDetails = false);
|
||||||
|
Loading…
Reference in New Issue
Block a user