Skip to content

Commit ece4165

Browse files
committed
update version of macos_ui and screenshot. Show appVersion in SidebarItem.
1 parent f489f38 commit ece4165

File tree

8 files changed

+31
-29
lines changed

8 files changed

+31
-29
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ flutter build macos
1515
```
1616
You find the built app here: `flutter_cleaner/build/macos/Build/Products/Release/Flutter Cleaner`
1717

18-
<img src="assets_for_readme/Flutter Cleaner Screenshot.png"/>
18+
<img src="assets_for_readme/FlutterCleaner Screenshot.png"/>
1919

20-
## Download a release from github
21-
(coming soon)
20+
## Download a release from GitHub
21+
Currrently there is only a releas build for [macOS] (https://github.com/schilken/flutter_cleaner/releases/)
2222

2323
## Making of this app or similar tools
2424
I generated a starter project using mason. If you want to create a similar tool you can generate a starter project like so:
-337 KB
Binary file not shown.
311 KB
Loading

lib/pages/home_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class HomePage extends ConsumerWidget {
2525
return MacosScaffold(
2626
toolBar: ToolBar(
2727
leading: const ToggleSidebarButton(),
28-
title: const Text('Scan Result'),
28+
title: const Text('Result Page'),
2929
titleWidth: 100,
3030
actions: [
3131
createToolBarPullDownButton(ref, appState.currentDirectory),
3232
],
3333
),
3434
children: [
3535
ContentArea(
36-
builder: (context) {
36+
builder: (context, _) {
3737
return Column(
3838
children: [
3939
ScanPageHeader(ref: ref),

lib/pages/main_view.dart

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
11
import 'package:flutter/cupertino.dart';
22
import 'package:flutter/material.dart';
3+
import 'package:hooks_riverpod/hooks_riverpod.dart';
34
import 'package:macos_ui/macos_ui.dart';
45

6+
import '../providers/app_notifier.dart';
57
import 'home_page.dart';
68

7-
class MainView extends StatefulWidget {
9+
class MainView extends ConsumerStatefulWidget {
810
const MainView({super.key});
911

1012
@override
11-
State<MainView> createState() => _MainViewState();
13+
ConsumerState<MainView> createState() => _MainViewState();
1214
}
1315

14-
class _MainViewState extends State<MainView> {
16+
class _MainViewState extends ConsumerState<MainView> {
1517
int _pageIndex = 0;
1618

1719
@override
1820
Widget build(BuildContext context) {
19-
// final appState = ref.watch(appNotifier);
21+
final appState = ref.watch(appNotifier);
2022
return MacosWindow(
2123
sidebar: Sidebar(
2224
decoration: BoxDecoration(
2325
color: Colors.grey.shade200,
2426
),
2527
minWidth: 200,
26-
bottom: const MacosListTile(
27-
leading: MacosIcon(CupertinoIcons.app_badge),
28-
title: Text('Flutter Cleaner'),
29-
subtitle: Text('appState.appVersion'),
28+
bottom: MacosListTile(
29+
leading: const MacosIcon(CupertinoIcons.app_badge),
30+
title: const Text('Flutter Cleaner'),
31+
subtitle: Text('Version ${appState.appVersion}'),
3032
),
3133
builder: (context, scrollController) => SidebarItems(
3234
currentIndex: _pageIndex,
@@ -36,7 +38,7 @@ class _MainViewState extends State<MainView> {
3638
items: const [
3739
SidebarItem(
3840
leading: MacosIcon(CupertinoIcons.home),
39-
label: Text('Scan Result'),
41+
label: Text('Result Page'),
4042
),
4143
// SidebarItem(
4244
// leading: MacosIcon(CupertinoIcons.gear),

lib/pages/settings_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class SettingsPage extends ConsumerWidget {
2828
),
2929
children: [
3030
ContentArea(
31-
builder: (context) {
31+
builder: (context, _) {
3232
return Center(
3333
child: Text('Settings'),
3434
);

pubspec.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ packages:
130130
dependency: transitive
131131
description:
132132
name: flutter_riverpod
133-
sha256: "0c997763ce06359ee4686553b74def84062e9d6929ac63f61fa02465c1f8e32c"
133+
sha256: "46a27b7a11dc13738054093076f2dc65692ddcd463979b15092accf5681aea20"
134134
url: "https://pub.dev"
135135
source: hosted
136-
version: "2.1.3"
136+
version: "2.2.0"
137137
flutter_test:
138138
dependency: "direct dev"
139139
description: flutter
@@ -148,10 +148,10 @@ packages:
148148
dependency: "direct main"
149149
description:
150150
name: hooks_riverpod
151-
sha256: "71695b2e1dfc22a39f1f9c67b798f8f8f1521f2d0349817d13ccdd5c4cd7acba"
151+
sha256: a596bcb1eaf48eae6da1ce8b9e60ec9538ef7d15725e941c3626f29dfcc01d96
152152
url: "https://pub.dev"
153153
source: hosted
154-
version: "2.1.3"
154+
version: "2.2.0"
155155
js:
156156
dependency: transitive
157157
description:
@@ -180,10 +180,10 @@ packages:
180180
dependency: "direct main"
181181
description:
182182
name: macos_ui
183-
sha256: "2b31858b56d44e807cf192c58cf6660b584c997f4746496d4892a903c1c27a49"
183+
sha256: "5c991674895b939e107feeb8efc82f85891af2d1413a3af94f564c64d3034c41"
184184
url: "https://pub.dev"
185185
source: hosted
186-
version: "1.9.1"
186+
version: "1.10.0"
187187
matcher:
188188
dependency: transitive
189189
description:
@@ -220,10 +220,10 @@ packages:
220220
dependency: transitive
221221
description:
222222
name: path_provider_linux
223-
sha256: ab0987bf95bc591da42dffb38c77398fc43309f0b9b894dcc5d6f40c4b26c379
223+
sha256: "2e32f1640f07caef0d3cb993680f181c79e54a3827b997d5ee221490d131fbd9"
224224
url: "https://pub.dev"
225225
source: hosted
226-
version: "2.1.7"
226+
version: "2.1.8"
227227
path_provider_platform_interface:
228228
dependency: transitive
229229
description:
@@ -284,10 +284,10 @@ packages:
284284
dependency: transitive
285285
description:
286286
name: riverpod
287-
sha256: "0f43c64f1f79c2112c843305a879a746587fb7c1e388f1d4717737796756e2c4"
287+
sha256: "59a48de9c757aa61aa28e9fd625ffb360d43b6b54606f12536622c55be9e8c4b"
288288
url: "https://pub.dev"
289289
source: hosted
290-
version: "2.1.3"
290+
version: "2.2.0"
291291
rxdart:
292292
dependency: "direct main"
293293
description:
@@ -433,10 +433,10 @@ packages:
433433
dependency: transitive
434434
description:
435435
name: xdg_directories
436-
sha256: bd512f03919aac5f1313eb8249f223bacf4927031bf60b02601f81f687689e86
436+
sha256: ee1505df1426458f7f60aac270645098d318a8b4766d85fde75f76f2e21807d1
437437
url: "https://pub.dev"
438438
source: hosted
439-
version: "0.2.0+3"
439+
version: "1.0.0"
440440
yaml:
441441
dependency: transitive
442442
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: flutter_cleaner
22
description: A tool to delete obsolete build folders
33
publish_to: "none"
4-
version: 0.1.0+1
4+
version: 0.2.0
55

66
environment:
77
sdk: ">=2.19.0 <3.0.0"
@@ -15,7 +15,7 @@ dependencies:
1515
sdk: flutter
1616
flutter_hooks: ^0.18.5+1
1717
hooks_riverpod: ^2.1.3
18-
macos_ui: ^1.9.1
18+
macos_ui: ^1.10.0
1919
path: ^1.8.2
2020
pubspec_parse: ^1.2.1
2121
rxdart: ^0.27.7

0 commit comments

Comments
 (0)