Skip to content

Commit c7f7761

Browse files
Prepare Flet 0.23 (#3484)
* Bump Flet package versions * Exit if tests failed * Support coroutines in FastAPI lifespan startup and shutdown * Fix theme tests * Updated changelog for 0.23.0 * Updated changelog * update delete version to v0.26.0 * fix MaterialState deprecation * Changelog updated: NEW: Enable Impeller on Android and macOS * Updated changelog * Remove ignored files * Added ignore file --------- Co-authored-by: ndonkoHenri <[email protected]>
1 parent 4b51546 commit c7f7761

File tree

26 files changed

+211
-106
lines changed

26 files changed

+211
-106
lines changed

.appveyor.yml

Lines changed: 20 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -111,75 +111,40 @@ for:
111111
echo $PUB_DEV_TOKEN | base64 --decode > $HOME/.config/dart/pub-credentials.json
112112
113113
# patch pubspecs
114-
python3 ci/patch_pubspec.py packages/flet/pubspec.yaml $PKG_VER
115-
python3 ci/patch_pubspec.py packages/flet_audio/pubspec.yaml $PKG_VER
116-
python3 ci/patch_pubspec.py packages/flet_audio_recorder/pubspec.yaml $PKG_VER
117-
python3 ci/patch_pubspec.py packages/flet_lottie/pubspec.yaml $PKG_VER
118-
python3 ci/patch_pubspec.py packages/flet_rive/pubspec.yaml $PKG_VER
119-
python3 ci/patch_pubspec.py packages/flet_video/pubspec.yaml $PKG_VER
120-
python3 ci/patch_pubspec.py packages/flet_webview/pubspec.yaml $PKG_VER
114+
for dir in packages/flet*; do
115+
echo "Patching $dir/pubspec.yaml"
116+
python3 ci/patch_pubspec.py $dir/pubspec.yaml $PKG_VER
117+
done
121118
122119
cd packages/flet
123-
flutter test
120+
echo "Running flet tests"
121+
flutter test || exit 1
124122
dart pub publish --force || exit 1
125123
cd $APPVEYOR_BUILD_FOLDER
126124
127125
sleep 10
128126
129-
cd packages/flet_audio
130-
dart pub publish --force || exit 1
131-
cd $APPVEYOR_BUILD_FOLDER
132-
133-
cd packages/flet_audio_recorder
134-
dart pub publish --force || exit 1
135-
cd $APPVEYOR_BUILD_FOLDER
136-
137-
cd packages/flet_lottie
138-
dart pub publish --force || exit 1
139-
cd $APPVEYOR_BUILD_FOLDER
140-
141-
cd packages/flet_rive
142-
dart pub publish --force || exit 1
143-
cd $APPVEYOR_BUILD_FOLDER
144-
145-
cd packages/flet_video
146-
dart pub publish --force || exit 1
147-
cd $APPVEYOR_BUILD_FOLDER
148-
149-
cd packages/flet_webview
150-
dart pub publish --force || exit 1
151-
cd $APPVEYOR_BUILD_FOLDER
127+
for dir in packages/flet_*; do
128+
cd "$dir"
129+
echo "Publishing $dir package"
130+
dart pub publish --force || exit 1
131+
cd "$APPVEYOR_BUILD_FOLDER"
132+
done
152133
153134
else
154135
155136
cd packages/flet
156-
flutter test
137+
echo "Running flet tests"
138+
flutter test || exit 1
157139
dart pub publish --dry-run
158140
cd $APPVEYOR_BUILD_FOLDER
159141
160-
cd packages/flet_audio
161-
dart pub publish --dry-run
162-
cd $APPVEYOR_BUILD_FOLDER
163-
164-
cd packages/flet_audio_recorder
165-
dart pub publish --dry-run
166-
cd $APPVEYOR_BUILD_FOLDER
167-
168-
cd packages/flet_lottie
169-
dart pub publish --dry-run
170-
cd $APPVEYOR_BUILD_FOLDER
171-
172-
cd packages/flet_rive
173-
dart pub publish --dry-run
174-
cd $APPVEYOR_BUILD_FOLDER
175-
176-
cd packages/flet_video
177-
dart pub publish --dry-run
178-
cd $APPVEYOR_BUILD_FOLDER
179-
180-
cd packages/flet_webview
181-
dart pub publish --dry-run
182-
cd $APPVEYOR_BUILD_FOLDER
142+
for dir in packages/flet_*; do
143+
cd "$dir"
144+
echo "Dry-run publishing $dir package"
145+
dart pub publish --dry-run
146+
cd "$APPVEYOR_BUILD_FOLDER"
147+
done
183148
fi
184149
185150
# ======================================

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Flet changelog
22

3+
# 0.23.0
4+
5+
* NEW: `PermissionHandler` control ([#3276](https://github.com/flet-dev/flet/issues/3276))
6+
* NEW: `Map` control ([#3093](https://github.com/flet-dev/flet/issues/3093))
7+
* NEW: `Geolocator control` ([#3179](https://github.com/flet-dev/flet/issues/3179))
8+
* NEW: `AutoFillGroup` Control ([#3047](https://github.com/flet-dev/flet/issues/3047))
9+
* NEW: Migrated to Flutter 3.22 ([#3396](https://github.com/flet-dev/flet/issues/3396))
10+
* NEW: An ability to access PubSubHub from outside Flet app ([#3446](https://github.com/flet-dev/flet/issues/3446))
11+
* NEW: `TextStyle` props: `overflow`, `word_spacing`, `baseline` ([#3435](https://github.com/flet-dev/flet/issues/3435))
12+
* NEW: Enable/disable browser context menu ([#3434](https://github.com/flet-dev/flet/issues/3434))
13+
* NEW: `Container.color_filter` property ([#3392](https://github.com/flet-dev/flet/issues/3392))
14+
* NEW: `dropdown.Option.text_style` property ([#3293](https://github.com/flet-dev/flet/issues/3293))
15+
* NEW: `dropdown.Option.content` property ([#3456](https://github.com/flet-dev/flet/issues/3456))
16+
* NEW: `Video.configuration` property ([#3074](https://github.com/flet-dev/flet/issues/3074))
17+
* NEW: Enable Impeller on Android and macOS ([#3458](https://github.com/flet-dev/flet/issues/3458))
18+
* NEW: AutoComplete: add selected_index read-only property ([#3298](https://github.com/flet-dev/flet/issues/3298))
19+
* NEW: Renamed `NavigationDestination` to `NavigationBarDestination` ([#3172](https://github.com/flet-dev/flet/issues/3172))
20+
* CHANGED: Prettify "build" command cli output ([#3407](https://github.com/flet-dev/flet/issues/3407))
21+
* CHANGED: Set colorScheme.primary as defaultSideColor ([#3421](https://github.com/flet-dev/flet/issues/3421))
22+
* CHANGED: feat(map): add missing py-events, better typing ([#3464](https://github.com/flet-dev/flet/issues/3464))
23+
* CHORE: Refactor `numbers.dart` utils ([#3263](https://github.com/flet-dev/flet/issues/3263))
24+
* CHORE: Global Code Refactoring/Clean-up ([#3186](https://github.com/flet-dev/flet/issues/3186))
25+
* CHORE: Cleanup ([#3406](https://github.com/flet-dev/flet/issues/3406))
26+
* CHORE: Error handling enhancements ([#3175](https://github.com/flet-dev/flet/issues/3175))
27+
* CHORE: Improve type hint for run_task and run_thread ([#3459](https://github.com/flet-dev/flet/issues/3459))
28+
* CHORE: Move `page.window_*` and `page.browser_context_menu_*` properties to `Window` and `BrowserContextMenu` classes ([#3463](https://github.com/flet-dev/flet/issues/3463))
29+
* FIX: `Container.on_tap_down` not called when `on_click` is not provided ([#3442](https://github.com/flet-dev/flet/issues/3442))
30+
* FIX: SnackBar bug #3311 ([#3313](https://github.com/flet-dev/flet/issues/3313))
31+
332
# 0.22.1
433

534
* `AutoComplete` control ([#3003](https://github.com/flet-dev/flet/issues/3003))

client/pubspec.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,21 +239,21 @@ packages:
239239
path: "../packages/flet"
240240
relative: true
241241
source: path
242-
version: "0.22.1"
242+
version: "0.23.0"
243243
flet_audio:
244244
dependency: "direct main"
245245
description:
246246
path: "../packages/flet_audio"
247247
relative: true
248248
source: path
249-
version: "0.22.1"
249+
version: "0.23.0"
250250
flet_audio_recorder:
251251
dependency: "direct main"
252252
description:
253253
path: "../packages/flet_audio_recorder"
254254
relative: true
255255
source: path
256-
version: "0.22.1"
256+
version: "0.23.0"
257257
flet_flashlight:
258258
dependency: "direct main"
259259
description:
@@ -274,7 +274,7 @@ packages:
274274
path: "../packages/flet_lottie"
275275
relative: true
276276
source: path
277-
version: "0.22.1"
277+
version: "0.23.0"
278278
flet_map:
279279
dependency: "direct main"
280280
description:
@@ -295,21 +295,21 @@ packages:
295295
path: "../packages/flet_rive"
296296
relative: true
297297
source: path
298-
version: "0.22.1"
298+
version: "0.23.0"
299299
flet_video:
300300
dependency: "direct main"
301301
description:
302302
path: "../packages/flet_video"
303303
relative: true
304304
source: path
305-
version: "0.22.1"
305+
version: "0.23.0"
306306
flet_webview:
307307
dependency: "direct main"
308308
description:
309309
path: "../packages/flet_webview"
310310
relative: true
311311
source: path
312-
version: "0.22.1"
312+
version: "0.23.0"
313313
flutter:
314314
dependency: "direct main"
315315
description: flutter

packages/flet/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# 0.23.0
2+
3+
* NEW: `PermissionHandler` control ([#3276](https://github.com/flet-dev/flet/issues/3276))
4+
* NEW: `Map` control ([#3093](https://github.com/flet-dev/flet/issues/3093))
5+
* NEW: `Geolocator control` ([#3179](https://github.com/flet-dev/flet/issues/3179))
6+
* NEW: `AutoFillGroup` Control ([#3047](https://github.com/flet-dev/flet/issues/3047))
7+
* NEW: Migrated to Flutter 3.22 ([#3396](https://github.com/flet-dev/flet/issues/3396))
8+
* NEW: An ability to access PubSubHub from outside Flet app ([#3446](https://github.com/flet-dev/flet/issues/3446))
9+
* NEW: `TextStyle` props: `overflow`, `word_spacing`, `baseline` ([#3435](https://github.com/flet-dev/flet/issues/3435))
10+
* NEW: Enable/disable browser context menu ([#3434](https://github.com/flet-dev/flet/issues/3434))
11+
* NEW: `Container.color_filter` property ([#3392](https://github.com/flet-dev/flet/issues/3392))
12+
* NEW: `dropdown.Option.text_style` property ([#3293](https://github.com/flet-dev/flet/issues/3293))
13+
* NEW: `dropdown.Option.content` property ([#3456](https://github.com/flet-dev/flet/issues/3456))
14+
* NEW: `Video.configuration` property ([#3074](https://github.com/flet-dev/flet/issues/3074))
15+
* NEW: Enable Impeller on Android and macOS ([#3458](https://github.com/flet-dev/flet/issues/3458))
16+
* NEW: AutoComplete: add selected_index read-only property ([#3298](https://github.com/flet-dev/flet/issues/3298))
17+
* NEW: Renamed `NavigationDestination` to `NavigationBarDestination` ([#3172](https://github.com/flet-dev/flet/issues/3172))
18+
* CHANGED: Prettify "build" command cli output ([#3407](https://github.com/flet-dev/flet/issues/3407))
19+
* CHANGED: Set colorScheme.primary as defaultSideColor ([#3421](https://github.com/flet-dev/flet/issues/3421))
20+
* CHANGED: feat(map): add missing py-events, better typing ([#3464](https://github.com/flet-dev/flet/issues/3464))
21+
* CHORE: Refactor `numbers.dart` utils ([#3263](https://github.com/flet-dev/flet/issues/3263))
22+
* CHORE: Global Code Refactoring/Clean-up ([#3186](https://github.com/flet-dev/flet/issues/3186))
23+
* CHORE: Cleanup ([#3406](https://github.com/flet-dev/flet/issues/3406))
24+
* CHORE: Error handling enhancements ([#3175](https://github.com/flet-dev/flet/issues/3175))
25+
* CHORE: Improve type hint for run_task and run_thread ([#3459](https://github.com/flet-dev/flet/issues/3459))
26+
* CHORE: Move `page.window_*` and `page.browser_context_menu_*` properties to `Window` and `BrowserContextMenu` classes ([#3463](https://github.com/flet-dev/flet/issues/3463))
27+
* FIX: `Container.on_tap_down` not called when `on_click` is not provided ([#3442](https://github.com/flet-dev/flet/issues/3442))
28+
* FIX: SnackBar bug #3311 ([#3313](https://github.com/flet-dev/flet/issues/3313))
29+
130
# 0.22.1
231

332
* `AutoComplete` control ([#3003](https://github.com/flet-dev/flet/issues/3003))

packages/flet/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: flet
22
description: Write entire Flutter app in Python or add server-driven UI experience into existing Flutter app.
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/flet/packages/flet
5-
version: 0.22.1
5+
version: 0.23.0
66

77
# This package supports all platforms listed below.
88
platforms:

packages/flet/test/utils/theme_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void main() {
99
test("Light theme is parsed correctly from JSON", () {
1010
const t1 = '''{
1111
"color_scheme_seed": "red",
12-
"brightness": "light1",
12+
"brightness": "light",
1313
"use_material3": false
1414
}''';
1515

@@ -18,7 +18,7 @@ void main() {
1818

1919
expect(theme.brightness, Brightness.light);
2020
expect(theme.useMaterial3, false);
21-
expect(theme.primaryColor, const Color(0xffbb1614));
21+
expect(theme.primaryColor, const Color(0xff904a42));
2222
});
2323

2424
test("Dark theme is parsed correctly from JSON", () {
@@ -32,6 +32,6 @@ void main() {
3232

3333
expect(theme.brightness, Brightness.dark);
3434
expect(theme.useMaterial3, true);
35-
expect(theme.primaryColor, const Color(0xff191c1d));
35+
expect(theme.primaryColor, const Color(0xff0e1416));
3636
});
3737
}

packages/flet_audio/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.23.0
2+
3+
No changes in this release. Version bumped to follow parent `flet` package.
4+
15
# 0.22.1
26

37
No changes in this release. Version bumped to follow parent `flet` package.

packages/flet_audio/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: flet_audio
22
description: Flet Audio control
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/flet/packages/flet_audio
5-
version: 0.22.1
5+
version: 0.23.0
66

77
environment:
88
sdk: '>=3.2.3 <4.0.0'

packages/flet_audio_recorder/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.23.0
2+
3+
No changes in this release. Version bumped to follow parent `flet` package.
4+
15
# 0.22.1
26

37
No changes in this release. Version bumped to follow parent `flet` package.

packages/flet_audio_recorder/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: flet_audio_recorder
22
description: Flet AudioRecorder control
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/flet/packages/flet_audio_recorder
5-
version: 0.22.1
5+
version: 0.23.0
66

77
environment:
88
sdk: '>=3.2.3 <4.0.0'

0 commit comments

Comments
 (0)