Skip to content

Commit b79228c

Browse files
1st class Flet charts based on fl_chart package (#1255)
* Line chart initial commit * More chart classes * LineChart Python model * Use custom flutter_svg library * aspect_ratio added to all controls * AspectRatio on Flutter side * Changed flutter_svg reference to flet-fixes branch * Charts moved to flet-core package * Remove --allow-releaseinfo-change flag * LineChart Python classes * LineChart stub control added * LineChart prototype * LineChart complete * LineChart datapoint tooltips * LineChart.on_chart_event * Fix tests * shadow and dash_pattern * spot indicators for line chart * Dot marker style * Line chart point * Point gradients * Show below/above lines * selected below line * selected points on non-interactive charts * Linechart adjusted for "monthly sales" example * pip install --upgrade pip * cutoff Y * point_line_start/end * Renamings for BarChart * BarChart data model python and dart * BarChart first steps * BarChart tooltip and touch event * PieChart * remove show_title from piechart * remove interactive and border from piechart * Added shadow to TextStyle * Automatic sizing of line and bar charts * Bump Flet version to 0.5.0, update changelog * Bump Pyodide 0.23 Closes #1241 * Updated changelog with Pyodide 0.23 * Fixed memory leak when deleting orphaned controls Fix #1223 * Remove all page references * Reliably remove closed sessions from memory * Changelog updated with memory leak fixes Fix #1223, Fix #969 * Cleaup imports
1 parent bda358c commit b79228c

Some content is hidden

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

54 files changed

+3863
-62
lines changed

.appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ for:
222222
- job_name: Build Flet for Linux
223223

224224
install:
225-
- sudo apt update --allow-releaseinfo-change
225+
- sudo apt update
226226
- sudo apt install -y libgtk-3-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
227227
- flutter upgrade
228228

@@ -254,7 +254,7 @@ for:
254254

255255
install:
256256
# Flutter SDK
257-
- sudo apt update --allow-releaseinfo-change
257+
- sudo apt update
258258
- sudo apt install -y clang libgtk-3-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
259259
- git clone https://github.com/flutter/flutter.git -b stable "$HOME/flutter"
260260
- export PATH="$PATH:$HOME/flutter/bin"
@@ -421,6 +421,7 @@ for:
421421
install:
422422
- python --version
423423
- cd sdk/python
424+
- pip install --upgrade pip
424425
- pip install poetry
425426
- poetry install
426427

CHANGELOG.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Flet changelog
22

3+
## 0.5.0
4+
5+
* Fixed: Memory usage continues to increase. ([#1223](https://github.com/flet-dev/flet/issues/1223))
6+
* Fixed: possible memory leak ([#969](https://github.com/flet-dev/flet/issues/969))
7+
* Color values can contain opacity, e.g. `color=red,0.5` or `ft.colors.with_opacity(0.5, "red")`
8+
* 1st class Flet charts based on fl_chart package ([#1255](https://github.com/flet-dev/flet/issues/1255))
9+
* Pyodide 0.23
10+
* Use named loggers in Python ([#1157](https://github.com/flet-dev/flet/issues/1157))
11+
* Fix Contribution guide as PDM is no longer used ([#1124](https://github.com/flet-dev/flet/issues/1124))
12+
* Added focus() method, focus and blur events to Elevated, Outlined, Text and Icon buttons ([#1079](https://github.com/flet-dev/flet/issues/1079))
13+
* New Card props: color, shadow_color, surface_tint_color ([#1078](https://github.com/flet-dev/flet/issues/1078))
14+
* Added WindowDragArea.maximizable property ([#1077](https://github.com/flet-dev/flet/issues/1077))
15+
* Added Container.blur and Container.shadow properties ([#1076](https://github.com/flet-dev/flet/issues/1076))
16+
* Add template for Q&A discussions ([#1070](https://github.com/flet-dev/flet/issues/1070))
17+
318
## 0.4.2
419

520
* Fix reading versioninfo for PyInstaller 5.8.0
@@ -12,12 +27,12 @@
1227
* Fix encode() import in PyInstaller integration
1328
* Fix "ConnectionAbortedError" error on Windows
1429
* Consistent licensing across the code - Apache 2.0
15-
* Fix assets loading in a sub-directory app ([#1019](https://github.com/flet-dev/flet/issues/1019)
16-
* Add --distpath option to flet pack and flet publish commands ([#1018](https://github.com/flet-dev/flet/issues/1018)
17-
* Updating manifest.json when using flet publish ([#1014](https://github.com/flet-dev/flet/issues/1014)
18-
* Fix "Address already in use" error on flet run hot reload ([#1007](https://github.com/flet-dev/flet/issues/1007)
19-
* Force Python sub-process to run with UTF-8 encoding ([#1002](https://github.com/flet-dev/flet/issues/1002)
20-
* Fix: View with content crashes in some routing scenarios ([#1001](https://github.com/flet-dev/flet/issues/1001)
30+
* Fix assets loading in a sub-directory app ([#1019](https://github.com/flet-dev/flet/issues/1019))
31+
* Add --distpath option to flet pack and flet publish commands ([#1018](https://github.com/flet-dev/flet/issues/1018))
32+
* Updating manifest.json when using flet publish ([#1014](https://github.com/flet-dev/flet/issues/1014))
33+
* Fix "Address already in use" error on flet run hot reload ([#1007](https://github.com/flet-dev/flet/issues/1007))
34+
* Force Python sub-process to run with UTF-8 encoding ([#1002](https://github.com/flet-dev/flet/issues/1002))
35+
* Fix: View with content crashes in some routing scenarios ([#1001](https://github.com/flet-dev/flet/issues/1001))
2136

2237
## 0.4.0
2338

client/pubspec.lock

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,21 @@ packages:
161161
url: "https://pub.dev"
162162
source: hosted
163163
version: "5.2.5"
164+
fl_chart:
165+
dependency: transitive
166+
description:
167+
name: fl_chart
168+
sha256: e97c5b850ad056e9b3a85d3afeb44c239a83aa994a90723940dac82234f2efaf
169+
url: "https://pub.dev"
170+
source: hosted
171+
version: "0.61.0"
164172
flet:
165173
dependency: "direct main"
166174
description:
167175
path: "../package"
168176
relative: true
169177
source: path
170-
version: "0.4.2"
178+
version: "0.5.0"
171179
flutter:
172180
dependency: "direct main"
173181
description: flutter

client/web/python-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
importScripts("https://cdn.jsdelivr.net/pyodide/v0.22.1/full/pyodide.js");
1+
importScripts("https://cdn.jsdelivr.net/pyodide/v0.23.0/full/pyodide.js");
22

33
self.micropipIncludePre = false;
44
self.pythonModuleName = null;

package/CHANGELOG.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 0.5.0
2+
3+
* Fixed: Memory usage continues to increase. ([#1223](https://github.com/flet-dev/flet/issues/1223))
4+
* Fixed: possible memory leak ([#969](https://github.com/flet-dev/flet/issues/969))
5+
* Color values can contain opacity, e.g. `color=red,0.5` or `ft.colors.with_opacity(0.5, "red")`
6+
* 1st class Flet charts based on fl_chart package ([#1255](https://github.com/flet-dev/flet/issues/1255))
7+
* Pyodide 0.23
8+
* Use named loggers in Python ([#1157](https://github.com/flet-dev/flet/issues/1157))
9+
* Fix Contribution guide as PDM is no longer used ([#1124](https://github.com/flet-dev/flet/issues/1124))
10+
* Added focus() method, focus and blur events to Elevated, Outlined, Text and Icon buttons ([#1079](https://github.com/flet-dev/flet/issues/1079))
11+
* New Card props: color, shadow_color, surface_tint_color ([#1078](https://github.com/flet-dev/flet/issues/1078))
12+
* Added WindowDragArea.maximizable property ([#1077](https://github.com/flet-dev/flet/issues/1077))
13+
* Added Container.blur and Container.shadow properties ([#1076](https://github.com/flet-dev/flet/issues/1076))
14+
* Add template for Q&A discussions ([#1070](https://github.com/flet-dev/flet/issues/1070))
15+
116
## 0.4.2
217

318
* Fix reading versioninfo for PyInstaller 5.8.0
@@ -10,12 +25,12 @@
1025
* Fix encode() import in PyInstaller integration
1126
* Fix "ConnectionAbortedError" error on Windows
1227
* Consistent licensing across the code - Apache 2.0
13-
* Fix assets loading in a sub-directory app ([#1019](https://github.com/flet-dev/flet/issues/1019)
14-
* Add --distpath option to flet pack and flet publish commands ([#1018](https://github.com/flet-dev/flet/issues/1018)
15-
* Updating manifest.json when using flet publish ([#1014](https://github.com/flet-dev/flet/issues/1014)
16-
* Fix "Address already in use" error on flet run hot reload ([#1007](https://github.com/flet-dev/flet/issues/1007)
17-
* Force Python sub-process to run with UTF-8 encoding ([#1002](https://github.com/flet-dev/flet/issues/1002)
18-
* Fix: View with content crashes in some routing scenarios ([#1001](https://github.com/flet-dev/flet/issues/1001)
28+
* Fix assets loading in a sub-directory app ([#1019](https://github.com/flet-dev/flet/issues/1019))
29+
* Add --distpath option to flet pack and flet publish commands ([#1018](https://github.com/flet-dev/flet/issues/1018))
30+
* Updating manifest.json when using flet publish ([#1014](https://github.com/flet-dev/flet/issues/1014))
31+
* Fix "Address already in use" error on flet run hot reload ([#1007](https://github.com/flet-dev/flet/issues/1007))
32+
* Force Python sub-process to run with UTF-8 encoding ([#1002](https://github.com/flet-dev/flet/issues/1002))
33+
* Fix: View with content crashes in some routing scenarios ([#1001](https://github.com/flet-dev/flet/issues/1001))
1934

2035
## 0.4.0
2136

0 commit comments

Comments
 (0)