Skip to content

Commit 8edfdb3

Browse files
authored
Merge pull request #38 from bamlab/feat/add-three-button-navbar
feat: add three button navbar
2 parents 02d7475 + 7013a90 commit 8edfdb3

File tree

63 files changed

+594
-209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+594
-209
lines changed

.github/workflows/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FLUTTER_VERSION=3.24.3
1+
FLUTTER_VERSION=3.35.2

.github/workflows/test-flutter.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ jobs:
1010
test:
1111
runs-on: macos-latest
1212
strategy:
13-
matrix: { dir: ['example/simple_app', 'example/multi_packages_app/app', 'example/multi_packages_app/theme'] }
13+
matrix:
14+
include:
15+
- dir: example/simple_app
16+
name: simple_app
17+
- dir: example/multi_packages_app/app
18+
name: multi_packages_app_app
19+
- dir: example/multi_packages_app/theme
20+
name: multi_packages_app_theme
1421
defaults:
1522
run:
1623
working-directory: ${{ matrix.dir }}
@@ -42,3 +49,11 @@ jobs:
4249

4350
- name: Run tests
4451
run: flutter test --no-pub --test-randomize-ordering-seed random
52+
53+
- name: Upload golden test failures
54+
if: failure()
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: golden-failures-${{ matrix.name }}
58+
path: ${{ matrix.dir }}/test/**/failures/
59+
if-no-files-found: ignore

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## 0.10.0
2+
3+
* feat: Add support for 2-button and 3-button navigation for Android devices.
4+
```dart
5+
WindowConfigData(
6+
systemNavBar = SystemNavBarData.threeButton(),
7+
)
8+
// or
9+
WindowConfigData(
10+
systemNavBar = SystemNavBarData.twoButton(),
11+
)
12+
```
13+
* **BREAKING**: refactor: replaced `homeIndicator` by `systemNavBar` in `WindowConfigData` for the home gesture indicator:
14+
```diff
15+
WindowConfigData(
16+
- homeIndicator = HomeIndicatorData(bottomPadding, size)
17+
+ systemNavBar = SystemNavBarData.gestureIndicator(bottomPadding, size)
18+
)
19+
```
20+
121
## 0.9.1
222

323
* feat: await image now works with ShapeDecopration

example/multi_packages_app/app/pubspec.lock

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
path: "../../.."
88
relative: true
99
source: path
10-
version: "0.7.2"
10+
version: "0.10.0"
1111
async:
1212
dependency: transitive
1313
description:
@@ -28,26 +28,26 @@ packages:
2828
dependency: transitive
2929
description:
3030
name: characters
31-
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
31+
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
3232
url: "https://pub.dev"
3333
source: hosted
34-
version: "1.3.0"
34+
version: "1.4.0"
3535
clock:
3636
dependency: transitive
3737
description:
3838
name: clock
39-
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
39+
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
4040
url: "https://pub.dev"
4141
source: hosted
42-
version: "1.1.1"
42+
version: "1.1.2"
4343
collection:
4444
dependency: transitive
4545
description:
4646
name: collection
47-
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
47+
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
4848
url: "https://pub.dev"
4949
source: hosted
50-
version: "1.18.0"
50+
version: "1.19.1"
5151
cupertino_icons:
5252
dependency: "direct main"
5353
description:
@@ -68,10 +68,10 @@ packages:
6868
dependency: transitive
6969
description:
7070
name: fake_async
71-
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
71+
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
7272
url: "https://pub.dev"
7373
source: hosted
74-
version: "1.3.1"
74+
version: "1.3.3"
7575
file:
7676
dependency: transitive
7777
description:
@@ -94,34 +94,34 @@ packages:
9494
dependency: transitive
9595
description:
9696
name: leak_tracker
97-
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
97+
sha256: "8dcda04c3fc16c14f48a7bb586d4be1f0d1572731b6d81d51772ef47c02081e0"
9898
url: "https://pub.dev"
9999
source: hosted
100-
version: "10.0.5"
100+
version: "11.0.1"
101101
leak_tracker_flutter_testing:
102102
dependency: transitive
103103
description:
104104
name: leak_tracker_flutter_testing
105-
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
105+
sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
106106
url: "https://pub.dev"
107107
source: hosted
108-
version: "3.0.5"
108+
version: "3.0.10"
109109
leak_tracker_testing:
110110
dependency: transitive
111111
description:
112112
name: leak_tracker_testing
113-
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
113+
sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
114114
url: "https://pub.dev"
115115
source: hosted
116-
version: "3.0.1"
116+
version: "3.0.2"
117117
matcher:
118118
dependency: transitive
119119
description:
120120
name: matcher
121-
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
121+
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
122122
url: "https://pub.dev"
123123
source: hosted
124-
version: "0.12.16+1"
124+
version: "0.12.17"
125125
material_color_utilities:
126126
dependency: transitive
127127
description:
@@ -142,10 +142,10 @@ packages:
142142
dependency: transitive
143143
description:
144144
name: meta
145-
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
145+
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
146146
url: "https://pub.dev"
147147
source: hosted
148-
version: "1.15.0"
148+
version: "1.16.0"
149149
multi_packages_example_theme:
150150
dependency: "direct main"
151151
description:
@@ -165,10 +165,10 @@ packages:
165165
dependency: transitive
166166
description:
167167
name: path
168-
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
168+
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
169169
url: "https://pub.dev"
170170
source: hosted
171-
version: "1.9.0"
171+
version: "1.9.1"
172172
platform:
173173
dependency: transitive
174174
description:
@@ -189,7 +189,7 @@ packages:
189189
dependency: transitive
190190
description: flutter
191191
source: sdk
192-
version: "0.0.99"
192+
version: "0.0.0"
193193
source_span:
194194
dependency: transitive
195195
description:
@@ -202,18 +202,18 @@ packages:
202202
dependency: transitive
203203
description:
204204
name: stack_trace
205-
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
205+
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
206206
url: "https://pub.dev"
207207
source: hosted
208-
version: "1.11.1"
208+
version: "1.12.1"
209209
stream_channel:
210210
dependency: transitive
211211
description:
212212
name: stream_channel
213-
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
213+
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
214214
url: "https://pub.dev"
215215
source: hosted
216-
version: "2.1.2"
216+
version: "2.1.4"
217217
string_scanner:
218218
dependency: transitive
219219
description:
@@ -234,10 +234,10 @@ packages:
234234
dependency: transitive
235235
description:
236236
name: test_api
237-
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
237+
sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00"
238238
url: "https://pub.dev"
239239
source: hosted
240-
version: "0.7.2"
240+
version: "0.7.6"
241241
theodo_analysis:
242242
dependency: "direct dev"
243243
description:
@@ -250,10 +250,10 @@ packages:
250250
dependency: transitive
251251
description:
252252
name: vector_math
253-
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
253+
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
254254
url: "https://pub.dev"
255255
source: hosted
256-
version: "2.1.4"
256+
version: "2.2.0"
257257
vm_service:
258258
dependency: transitive
259259
description:
@@ -263,5 +263,5 @@ packages:
263263
source: hosted
264264
version: "14.2.5"
265265
sdks:
266-
dart: ">=3.3.0 <4.0.0"
266+
dart: ">=3.8.0-0 <4.0.0"
267267
flutter: ">=3.18.0-18.0.pre.54"
-1 Bytes
Loading
-1 Bytes
Loading
15 Bytes
Loading
1 Byte
Loading
-4 Bytes
Loading
-15 Bytes
Loading

0 commit comments

Comments
 (0)