Skip to content

Commit e75f11e

Browse files
Prepare Flet 0.26.0 release (#4755)
* Remove deprecated `server` written in Go * Package version bumped to 0.26.0, changelog updated * Fixed changelog * Flutter 3.27.3 * Require exact JDK 17 version for building android apps * Cleanup CI script * Remove `flet create --package-manager` * set default InteractiveViewer.interaction_update_interval to 200ms * Chip: rename "avatar" to "leading" * update some typing --------- Co-authored-by: ndonkoHenri <[email protected]>
1 parent 60b7a90 commit e75f11e

Some content is hidden

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

64 files changed

+119
-8169
lines changed

.appveyor.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,6 @@ for:
146146
dart pub publish --force || exit 1
147147
cd $APPVEYOR_BUILD_FOLDER
148148
149-
sleep 600
150-
151-
for dir in packages/flet_*; do
152-
cd "$dir"
153-
echo "Publishing $dir package"
154-
dart pub publish --force || exit 1
155-
cd "$APPVEYOR_BUILD_FOLDER"
156-
done
157-
158149
else
159150
160151
cd packages/flet
@@ -163,12 +154,6 @@ for:
163154
dart pub publish --dry-run
164155
cd $APPVEYOR_BUILD_FOLDER
165156
166-
for dir in packages/flet_*; do
167-
cd "$dir"
168-
echo "Dry-run publishing $dir package"
169-
dart pub publish --dry-run
170-
cd "$APPVEYOR_BUILD_FOLDER"
171-
done
172157
fi
173158
174159
# ======================================
@@ -203,10 +188,6 @@ for:
203188
- cd client
204189
- set RELEASE_DIR=build\windows\x64\runner\Release
205190
- flutter build windows --build-name=%APPVEYOR_BUILD_VERSION%
206-
# - mkdir %RELEASE_DIR%
207-
# - mkdir %RELEASE_DIR%\data
208-
# - echo "Test!" > %RELEASE_DIR%\flet.bat
209-
# - echo "Another thest!" > %RELEASE_DIR%\data\something.txt
210191

211192
- copy "%WINDIR%\system32\msvcp140.dll" %RELEASE_DIR%
212193
- copy "%WINDIR%\system32\vcruntime140.dll" %RELEASE_DIR%

CHANGELOG.md

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

3+
## 0.26.0
4+
5+
* Flutter extensions: `flet_*` packages moved to separate repositories ([#4721](https://github.com/flet-dev/flet/pull/4721))
6+
* Automatic installation of Flutter, JDK and Android SDK ([#4721](https://github.com/flet-dev/flet/pull/4721))
7+
* Migrated to Flutter 3.27.0 ([#4593](https://github.com/flet-dev/flet/pull/4593))
8+
* New control properties, Flutter 3.27 fixes ([#4703](https://github.com/flet-dev/flet/pull/4703))
9+
* Optional on-demand creation of `ListView.controls` ([#3931](https://github.com/flet-dev/flet/issues/3931))
10+
* Reset `InteractiveViewer` tranformations ([#4391](https://github.com/flet-dev/flet/issues/4391))
11+
* Passthrough of mouse events from main window to other applications ([#1438](https://github.com/flet-dev/flet/issues/1438))
12+
* Remove v0.26.0-related deprecations ([#4456](https://github.com/flet-dev/flet/issues/4456))
13+
* Implemented `Window.ignore_mouse_events` ([#4465](https://github.com/flet-dev/flet/pull/4465))
14+
* Adding Google/Android TV platform support ([#4581](https://github.com/flet-dev/flet/pull/4581))
15+
* Remove `Optional[]` from predefined typing `*Value`s ([#4702](https://github.com/flet-dev/flet/pull/4702))
16+
* Throttle `InteractiveViewer` update events ([#4704](https://github.com/flet-dev/flet/pull/4704))
17+
* Fixed: Update project_dependencies.py ([#4459](https://github.com/flet-dev/flet/pull/4459))
18+
* Fixed: `SafeArea` object has no attribute `_SafeArea__minimum` ([#4500](https://github.com/flet-dev/flet/pull/4500))
19+
* Fixed: Tooltip corruption in `Segment` and `BarChartRod` on `update()` ([#4525](https://github.com/flet-dev/flet/pull/4525))
20+
* Fixed: Setting `CheckBox.border_side.stroke_align` to an Enum fails ([#4526](https://github.com/flet-dev/flet/pull/4526))
21+
* Fixed: `ControlState` should be resolved based on user-defined order ([#4556](https://github.com/flet-dev/flet/pull/4556))
22+
* Fixed: broken `Dismissible.dismiss_direction` ([#4557](https://github.com/flet-dev/flet/pull/4557))
23+
* Fixed: Fix Rive not updating ([#4582](https://github.com/flet-dev/flet/pull/4582))
24+
* Fixed: `DatePicker` regression with first and last dates ([#4661](https://github.com/flet-dev/flet/pull/4661))
25+
* `flet build` command: Copy `flutter-packages`, support for platform-specific dependencies ([#4667](https://github.com/flet-dev/flet/pull/4667))
26+
* Fixed: `CupertinoBottomSheet` applies a red color and yellow underline to `Text` content ([#4673](https://github.com/flet-dev/flet/pull/4673))
27+
* Fixed: setting `ButtonTheme` displays a grey screen ([#4731](https://github.com/flet-dev/flet/pull/4731))
28+
* Fixed: `Textfield` input border color considers user-specified `border_color` property ([#4735](https://github.com/flet-dev/flet/pull/4735))
29+
* Fixed: make `Tooltip.message` a required parameter ([#4736](https://github.com/flet-dev/flet/pull/4736))
30+
331
## 0.25.2
432

533
### Bug fixes

ci/whats-new.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$milestone = 4
1+
$milestone = 7
22

33
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
44
#Invoke-RestMethod https://api.github.com/repos/appveyor/ci/milestones
@@ -17,6 +17,8 @@ foreach ($issue in $issues) {
1717
}
1818
}
1919

20+
$title = $issue.title.replace('fix: ', '')
21+
2022
#"$($issue.html_url) $prefix$($issue.title)"
21-
"* $prefix$($issue.title) ([#$($issue.number)]($($issue.html_url)))"
23+
"* $prefix$($title) ([#$($issue.number)]($($issue.html_url)))"
2224
}

client/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import FlutterMacOS
66
import Foundation
77

88
import audioplayers_darwin
9+
import device_info_plus
910
import geolocator_apple
1011
import media_kit_libs_macos_video
1112
import media_kit_video
@@ -24,6 +25,7 @@ import window_to_front
2425

2526
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
2627
AudioplayersDarwinPlugin.register(with: registry.registrar(forPlugin: "AudioplayersDarwinPlugin"))
28+
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
2729
GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin"))
2830
MediaKitLibsMacosVideoPlugin.register(with: registry.registrar(forPlugin: "MediaKitLibsMacosVideoPlugin"))
2931
MediaKitVideoPlugin.register(with: registry.registrar(forPlugin: "MediaKitVideoPlugin"))

client/pubspec.lock

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,22 @@ packages:
169169
url: "https://pub.dev"
170170
source: hosted
171171
version: "0.7.10"
172+
device_info_plus:
173+
dependency: transitive
174+
description:
175+
name: device_info_plus
176+
sha256: b37d37c2f912ad4e8ec694187de87d05de2a3cb82b465ff1f65f65a2d05de544
177+
url: "https://pub.dev"
178+
source: hosted
179+
version: "11.2.1"
180+
device_info_plus_platform_interface:
181+
dependency: transitive
182+
description:
183+
name: device_info_plus_platform_interface
184+
sha256: "0b04e02b30791224b31969eb1b50d723498f402971bff3630bca2ba839bd1ed2"
185+
url: "https://pub.dev"
186+
source: hosted
187+
version: "7.0.2"
172188
dio:
173189
dependency: transitive
174190
description:
@@ -247,7 +263,7 @@ packages:
247263
path: "../packages/flet"
248264
relative: true
249265
source: path
250-
version: "0.25.2"
266+
version: "0.26.0"
251267
flet_ads:
252268
dependency: "direct main"
253269
description:
@@ -1523,6 +1539,14 @@ packages:
15231539
url: "https://pub.dev"
15241540
source: hosted
15251541
version: "5.5.3"
1542+
win32_registry:
1543+
dependency: transitive
1544+
description:
1545+
name: win32_registry
1546+
sha256: "723b7f851e5724c55409bb3d5a32b203b3afe8587eaf5dafb93a5fed8ecda0d6"
1547+
url: "https://pub.dev"
1548+
source: hosted
1549+
version: "1.1.4"
15261550
window_manager:
15271551
dependency: transitive
15281552
description:

packages/flet/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
# 0.26.0
2+
3+
* Flutter extensions: `flet_*` packages moved to separate repositories ([#4721](https://github.com/flet-dev/flet/pull/4721))
4+
* Automatic installation of Flutter, JDK and Android SDK ([#4721](https://github.com/flet-dev/flet/pull/4721))
5+
* Migrated to Flutter 3.27.0 ([#4593](https://github.com/flet-dev/flet/pull/4593))
6+
* New control properties, Flutter 3.27 fixes ([#4703](https://github.com/flet-dev/flet/pull/4703))
7+
* Optional on-demand creation of `ListView.controls` ([#3931](https://github.com/flet-dev/flet/issues/3931))
8+
* Reset `InteractiveViewer` tranformations ([#4391](https://github.com/flet-dev/flet/issues/4391))
9+
* Passthrough of mouse events from main window to other applications ([#1438](https://github.com/flet-dev/flet/issues/1438))
10+
* Remove v0.26.0-related deprecations ([#4456](https://github.com/flet-dev/flet/issues/4456))
11+
* Implemented `Window.ignore_mouse_events` ([#4465](https://github.com/flet-dev/flet/pull/4465))
12+
* Adding Google/Android TV platform support ([#4581](https://github.com/flet-dev/flet/pull/4581))
13+
* Remove `Optional[]` from predefined typing `*Value`s ([#4702](https://github.com/flet-dev/flet/pull/4702))
14+
* Throttle `InteractiveViewer` update events ([#4704](https://github.com/flet-dev/flet/pull/4704))
15+
* Fixed: Update project_dependencies.py ([#4459](https://github.com/flet-dev/flet/pull/4459))
16+
* Fixed: `SafeArea` object has no attribute `_SafeArea__minimum` ([#4500](https://github.com/flet-dev/flet/pull/4500))
17+
* Fixed: Tooltip corruption in `Segment` and `BarChartRod` on `update()` ([#4525](https://github.com/flet-dev/flet/pull/4525))
18+
* Fixed: Setting `CheckBox.border_side.stroke_align` to an Enum fails ([#4526](https://github.com/flet-dev/flet/pull/4526))
19+
* Fixed: `ControlState` should be resolved based on user-defined order ([#4556](https://github.com/flet-dev/flet/pull/4556))
20+
* Fixed: broken `Dismissible.dismiss_direction` ([#4557](https://github.com/flet-dev/flet/pull/4557))
21+
* Fixed: Fix Rive not updating ([#4582](https://github.com/flet-dev/flet/pull/4582))
22+
* Fixed: `DatePicker` regression with first and last dates ([#4661](https://github.com/flet-dev/flet/pull/4661))
23+
* `flet build` command: Copy `flutter-packages`, support for platform-specific dependencies ([#4667](https://github.com/flet-dev/flet/pull/4667))
24+
* Fixed: `CupertinoBottomSheet` applies a red color and yellow underline to `Text` content ([#4673](https://github.com/flet-dev/flet/pull/4673))
25+
* Fixed: setting `ButtonTheme` displays a grey screen ([#4731](https://github.com/flet-dev/flet/pull/4731))
26+
* Fixed: `Textfield` input border color considers user-specified `border_color` property ([#4735](https://github.com/flet-dev/flet/pull/4735))
27+
* Fixed: make `Tooltip.message` a required parameter ([#4736](https://github.com/flet-dev/flet/pull/4736))
28+
129
# 0.25.2
230

331
## Bug fixes

packages/flet/lib/src/controls/chip.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class _ChipControlState extends State<ChipControl> {
144144
visualDensity:
145145
parseVisualDensity(widget.control.attrString("visualDensity")),
146146
avatarBoxConstraints:
147-
parseBoxConstraints(widget.control, "avatarSizeConstraints"),
147+
parseBoxConstraints(widget.control, "leadingSizeConstraints"),
148148
deleteIconBoxConstraints:
149149
parseBoxConstraints(widget.control, "deleteIconSizeConstraints"),
150150
chipAnimationStyle: ChipAnimationStyle(
@@ -153,7 +153,7 @@ class _ChipControlState extends State<ChipControl> {
153153
selectAnimation:
154154
parseAnimationStyle(widget.control, "selectAnimationStyle"),
155155
avatarDrawerAnimation: parseAnimationStyle(
156-
widget.control, "avatarDrawerAnimationStyle"),
156+
widget.control, "leadingDrawerAnimationStyle"),
157157
deleteDrawerAnimation: parseAnimationStyle(
158158
widget.control, "deleteDrawerAnimationStyle"),
159159
),

packages/flet/lib/src/controls/interactive_viewer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class _InteractiveViewerControlState extends State<InteractiveViewerControl>
160160
onInteractionUpdate: !disabled
161161
? (ScaleUpdateDetails details) {
162162
var interactionUpdateInterval =
163-
widget.control.attrInt("interactionUpdateInterval", 0)!;
163+
widget.control.attrInt("interactionUpdateInterval", 200)!;
164164
var now = DateTime.now().millisecondsSinceEpoch;
165165
if (now - _interactionUpdateTimestamp >
166166
interactionUpdateInterval) {

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.25.2
5+
version: 0.26.0
66

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

sdk/python/packages/flet-cli/src/flet_cli/commands/create.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ def add_arguments(self, parser: argparse.ArgumentParser) -> None:
4646
help="template to use for new Flet project",
4747
required=False,
4848
)
49-
parser.add_argument(
50-
"--package-manager",
51-
dest="package_manager",
52-
choices=["uv", "poetry"],
53-
help="Python project package manager",
54-
required=False,
55-
)
5649
parser.add_argument(
5750
"--template-ref",
5851
dest="template_ref",
@@ -67,7 +60,6 @@ def handle(self, options: argparse.Namespace) -> None:
6760

6861
template_data = {
6962
"template_name": options.template,
70-
"package_manager": options.package_manager,
7163
"flet_version": flet.version.version,
7264
"sep": os.sep,
7365
}

0 commit comments

Comments
 (0)