Skip to content

Commit d27aabc

Browse files
committed
DC: fix GestureDetector
1 parent 0df12c4 commit d27aabc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/apps/file/list.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ class _FilesListState extends State<FilesList> {
187187
final params = file.fileType().params();
188188

189189
return GestureDetector(
190-
onLongPressDown: desktop ? null : (details) => _showItemMenu(details, lang, file),
191-
onSecondaryLongPressDown: desktop ? (details) => _showItemMenu(details, lang, file) : null,
190+
onLongPressEnd: desktop ? null : (details) => _showItemMenu(details, lang, file),
191+
onSecondaryTapUp: desktop ? (details) => _showItemMenu(details, lang, file) : null,
192192
onTap: () {
193193
if (file.isDirectory()) {
194194
_nextDirectory(file);
@@ -519,7 +519,7 @@ class _MoveToScreenState extends State<_MoveToScreen> {
519519
final color = Theme.of(context).colorScheme;
520520
final lang = AppLocalizations.of(context);
521521

522-
double maxHeight = MediaQuery.of(context).size.height - 400;
522+
double maxHeight = MediaQuery.of(context).size.height - 500;
523523
if (maxHeight < 100.0) {
524524
maxHeight = 100.0;
525525
}
@@ -529,12 +529,14 @@ class _MoveToScreenState extends State<_MoveToScreen> {
529529
Row(children: this._pathWidget(lang)),
530530
Container(
531531
height: maxHeight,
532+
decoration: BoxDecoration(color: color.secondary),
532533
child: SingleChildScrollView(
533534
child: Column(
534535
children: List<Widget>.generate(_list.length, (i) => _item(_list[i], i),
535536
))
536537
)
537538
),
539+
const SizedBox(height: 20.0),
538540
ButtonText(
539541
text: lang.ok,
540542
enable: this._selected != null,

0 commit comments

Comments
 (0)