Skip to content

Commit 2fc9051

Browse files
authored
update deps and readme (#199)
1 parent 1479aaf commit 2fc9051

File tree

7 files changed

+59
-14
lines changed

7 files changed

+59
-14
lines changed

.github/images/screenshot_dark.png

429 KB
Loading
150 KB
Loading

.github/images/wip.gif

-5.57 MB
Binary file not shown.

README.md

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
The goal of this project is to build a feature complete settings app for the Ubuntu desktop with the Flutter UI toolkit.
44

5-
![](.github/images/wip.gif)
5+
![Light Screenshot](.github/images/screenshot_light.png)
6+
![Dark Screenshot](.github/images/screenshot_dark.png)
67

7-
Packages that we already use or plan to use are:
8+
Mentionable packages that we use and want to thank are:
89

910
- [gsettings.dart](https://github.com/canonical/gsettings.dart)
1011
- [bluez.dart](https://github.com/canonical/bluez.dart)
@@ -15,19 +16,63 @@ Packages that we already use or plan to use are:
1516
- [dbus.dart](https://github.com/canonical/dbus.dart)
1617
- [upower.dart](https://github.com/canonical/upower.dart)
1718
- [udisks.dart](https://github.com/canonical/udisks.dart)
19+
- [filesystem_picker](https://github.com/andyduke/filesystem_picker)
20+
- [flex_color_picker](https://github.com/rydmike/flex_color_picker)
21+
22+
23+
# Alpha Releases / Download
24+
25+
Currently the app is in a very raw alpha state and many pages are still missing.
26+
However if you want you can download, extract and then run alpha releases [from the releases page](https://github.com/Feichtmeier/settings/releases).
27+
28+
# Building
29+
30+
The following steps are needed to run the app from the source code.
31+
32+
## Install Flutter
33+
34+
Either with
35+
36+
```bash
37+
sudo snap install flutter --classic
38+
```
39+
40+
Or with
41+
42+
```bash
43+
sudo apt install git curl cmake meson make clang libgtk-3-dev pkg-config
44+
mkdir ~/development
45+
cd ~/development
46+
git clone https://github.com/flutter/flutter.git -b master
47+
echo 'export PATH="$PATH:$HOME/development/flutter/bin"' >> ~/.bashrc
48+
source ~/.bashrc
49+
```
50+
51+
## Enable flutter linux desktop support
52+
53+
```bash
54+
flutter config --enable-linux-desktop
55+
```
56+
57+
## Install libhandy
58+
59+
```bash
60+
sudo apt install libhandy-1-dev
61+
```
1862

1963
# TODO
2064

2165
- [X] use real yaru icons - thanks to @Jupi007
2266
- [X] responsive layout
23-
- [X] [MVVM software architecture](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel)
67+
- [X] [MVVM software architecture](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel) - thanks to @jpnurmi
2468
- [X] search
2569
- [X] WIFI page - WIP
2670
- [ ] Ethernet page
2771
- [ ] Cellular Network page
2872
- [X] Bluetooth page - WIP
2973
- [X] Wallpaper page
3074
- [X] Appearance page
75+
- [X] Multi-Tasking page
3176
- [X] Notifications page
3277
- [ ] Search page
3378
- [ ] Apps page
@@ -48,4 +93,4 @@ Packages that we already use or plan to use are:
4893
- [ ] Preferred apps page
4994
- [ ] Date and time page
5095
- [ ] Wacom page
51-
- [X] Info page
96+
- [X] Info page

lib/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'package:settings/view/app_theme.dart';
1313
import 'package:settings/view/pages/page_items.dart';
1414
import 'package:udisks/udisks.dart';
1515
import 'package:upower/upower.dart';
16-
import 'package:yaru/yaru.dart' as yaru;
16+
import 'package:yaru/yaru.dart';
1717
import 'package:yaru_icons/widgets/yaru_icons.dart';
1818
import 'package:yaru_widgets/yaru_widgets.dart';
1919

@@ -90,8 +90,8 @@ class UbuntuSettingsApp extends StatelessWidget {
9090
);
9191
},
9292
},
93-
theme: yaru.lightTheme,
94-
darkTheme: yaru.darkTheme,
93+
theme: yaruLight,
94+
darkTheme: yaruDark,
9595
themeMode: context.watch<AppTheme>().value,
9696
supportedLocales: AppLocalizations.supportedLocales,
9797
localizationsDelegates: AppLocalizations.localizationsDelegates,

lib/view/pages/power/battery_section.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:provider/provider.dart';
33
import 'package:settings/view/pages/power/battery_model.dart';
44
import 'package:settings/view/pages/power/battery_widgets.dart';
55
import 'package:upower/upower.dart';
6-
import 'package:yaru/yaru.dart' as yaru;
6+
import 'package:yaru/yaru.dart';
77
import 'package:yaru_widgets/yaru_widgets.dart';
88

99
class BatterySection extends StatefulWidget {
@@ -40,9 +40,9 @@ class _BatterySectionState extends State<BatterySection> {
4040
child: LinearProgressIndicator(
4141
value: model.percentage / 100.0,
4242
color: model.percentage > 80.0
43-
? yaru.Colors.green
43+
? YaruColors.green
4444
: model.percentage < 30.0
45-
? Colors.red
45+
? YaruColors.red
4646
: Colors.amber),
4747
),
4848
Padding(

pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ dependencies:
3030
open_file: ^3.2.1
3131
path_provider: ^2.0.5
3232
pdf: ^3.6.0
33-
provider: ^5.0.0
33+
provider: ^6.0.1
3434
rive: ^0.7.28
35-
safe_change_notifier: ^0.0.1
35+
safe_change_notifier: ^0.1.0
3636
scrollable_positioned_list: ^0.2.0-nullsafety.0
3737
udisks: ^0.3.0
3838
upower:
3939
git:
4040
url: https://github.com/canonical/upower.dart
41-
yaru: ^0.1.7
41+
yaru: ^0.2.0
4242
yaru_icons: ^0.0.7
4343
yaru_widgets:
4444
git:
@@ -52,7 +52,7 @@ dev_dependencies:
5252
flutter_lints: ^1.0.0
5353
flutter_test:
5454
sdk: flutter
55-
mockingjay: ^0.1.1
55+
mockingjay: ^0.2.0
5656
mockito: ^5.0.16
5757

5858
flutter:

0 commit comments

Comments
 (0)