Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc authored Jun 4, 2024
1 parent 28ead89 commit 40438b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion lib/components/tags.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import '../api/gallery.dart';
Expand Down Expand Up @@ -94,8 +95,16 @@ class _TagsPanel extends State<TagsPanel> {
padding: const EdgeInsets.all(8),
itemCount: data!.length,
itemBuilder: itemBuilder);
final re2 = ScrollConfiguration(
behavior: ScrollConfiguration.of(context).copyWith(
dragDevices: {
PointerDeviceKind.touch,
PointerDeviceKind.mouse,
},
),
child: re);
return widget.controller != null
? ScrollParent(controller: widget.controller!, child: re)
? ScrollParent(controller: widget.controller!, child: re2)
: re;
}
}
2 changes: 1 addition & 1 deletion lib/components/thumbnail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class _Thumbnail extends State<Thumbnail> {
widget.isSelectMode ? Container() : moreVertMenu,
Visibility(
visible: widget.isSelectMode,
child: const ModalBarrier()),
child: const ModalBarrier(dismissible: false)),
widget.isSelectMode
? Center(
child: Checkbox(
Expand Down

0 comments on commit 40438b9

Please sign in to comment.