🐛 Fix waterfall styling issue

This commit is contained in:
2025-11-17 22:00:45 +08:00
parent 4a800725e3
commit aafd160c44
2 changed files with 6 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import 'package:cross_file/cross_file.dart'; import 'package:cross_file/cross_file.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:file_picker/file_picker.dart'; import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:flutter_hooks/flutter_hooks.dart';
@@ -32,7 +33,7 @@ class FileListScreen extends HookConsumerWidget {
return AppScaffold( return AppScaffold(
isNoBackground: false, isNoBackground: false,
appBar: AppBar( appBar: AppBar(
title: Text('Files'), title: Text('files').tr(),
leading: const PageBackButton(), leading: const PageBackButton(),
actions: [ actions: [
IconButton( IconButton(

View File

@@ -485,7 +485,10 @@ class FileListView extends HookConsumerWidget {
ValueNotifier<String> currentPath, ValueNotifier<String> currentPath,
) { ) {
return Card( return Card(
margin: const EdgeInsets.fromLTRB(12, 0, 12, 16), margin:
viewMode.value == FileListViewMode.waterfall
? const EdgeInsets.fromLTRB(0, 0, 0, 16)
: const EdgeInsets.fromLTRB(12, 0, 12, 16),
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 48), padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 48),
child: Column( child: Column(