Skip to content

Commit 6764f87

Browse files
committed
Fix duplicated refresh button in files view
1 parent 0f950cd commit 6764f87

File tree

5 files changed

+81
-88
lines changed

5 files changed

+81
-88
lines changed

app/lib/views/files/view.dart

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -347,26 +347,12 @@ class FilesViewState extends State<FilesView> {
347347
const SizedBox(height: 16),
348348
LayoutBuilder(
349349
builder: (context, constraints) {
350-
final searchBar = Row(
351-
children: [
352-
IconButton(
353-
onPressed: reloadFileSystem,
354-
tooltip: AppLocalizations.of(context).refresh,
355-
icon: const PhosphorIcon(
356-
PhosphorIconsLight.arrowClockwise,
357-
),
358-
),
359-
const SizedBox(width: 8),
360-
Expanded(
361-
child: SearchBar(
362-
onChanged: (value) => setState(() => _search = value),
363-
hintText: AppLocalizations.of(context).search,
364-
leading: const PhosphorIcon(
365-
PhosphorIconsLight.magnifyingGlass,
366-
),
367-
),
368-
),
369-
],
350+
final searchBar = SearchBar(
351+
onChanged: (value) => setState(() => _search = value),
352+
hintText: AppLocalizations.of(context).search,
353+
leading: const PhosphorIcon(
354+
PhosphorIconsLight.magnifyingGlass,
355+
),
370356
);
371357
final locationBar = _buildLocationBar(parent);
372358
final isDesktop = constraints.maxWidth > 600;

app/pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,10 @@ packages:
397397
dependency: "direct main"
398398
description:
399399
name: file_selector
400-
sha256: "5019692b593455127794d5718304ff1ae15447dea286cdda9f0db2a796a1b828"
400+
sha256: "5f1d15a7f17115038f433d1b0ea57513cc9e29a9d5338d166cb0bef3fa90a7a0"
401401
url: "https://pub.dev"
402402
source: hosted
403-
version: "1.0.3"
403+
version: "1.0.4"
404404
file_selector_android:
405405
dependency: transitive
406406
description:
@@ -1502,10 +1502,10 @@ packages:
15021502
dependency: transitive
15031503
description:
15041504
name: url_launcher_android
1505-
sha256: "07cffecb7d68cbc6437cd803d5f11a86fe06736735c3dfe46ff73bcb0f958eed"
1505+
sha256: "199bc33e746088546a39cc5f36bac5a278c5e53b40cb3196f99e7345fdcfae6b"
15061506
url: "https://pub.dev"
15071507
source: hosted
1508-
version: "6.3.21"
1508+
version: "6.3.22"
15091509
url_launcher_ios:
15101510
dependency: transitive
15111511
description:

app/pubspec.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,13 @@ dependencies:
110110
barcode: ^2.2.9
111111
network_info_plus: ^7.0.0
112112
flutter_math_fork: ^0.7.4
113-
dependency_overrides:
114-
irondash_engine_context:
115-
git:
116-
url: https://github.com/CodeDoctorDE/irondash
117-
ref: 65343873472d6796c0388362a8e04b6e9a499044
118-
path: engine_context/dart
113+
# Does not work currently
114+
#dependency_overrides:
115+
# irondash_engine_context:
116+
# git:
117+
# url: https://github.com/CodeDoctorDE/irondash
118+
# ref: 65343873472d6796c0388362a8e04b6e9a499044
119+
# path: engine_context/dart
119120
dev_dependencies:
120121
#flutter_native_splash: ^2.4.0
121122
flutter_lints: ^6.0.0

0 commit comments

Comments
 (0)