Skip to content

Commit

Permalink
1st class Flet charts based on fl_chart package (flet-dev#1255)
Browse files Browse the repository at this point in the history
* 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 flet-dev#1241

* Updated changelog with Pyodide 0.23

* Fixed memory leak when deleting orphaned controls

Fix flet-dev#1223

* Remove all page references

* Reliably remove closed sessions from memory

* Changelog updated with memory leak fixes

Fix flet-dev#1223, Fix flet-dev#969

* Cleaup imports
  • Loading branch information
FeodorFitsner authored and zrr1999 committed Jul 17, 2024
1 parent 8550e1a commit e6daf8c
Show file tree
Hide file tree
Showing 54 changed files with 3,863 additions and 62 deletions.
5 changes: 3 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ for:
- job_name: Build Flet for Linux

install:
- sudo apt update --allow-releaseinfo-change
- sudo apt update
- 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
- flutter upgrade

Expand Down Expand Up @@ -254,7 +254,7 @@ for:

install:
# Flutter SDK
- sudo apt update --allow-releaseinfo-change
- sudo apt update
- 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
- git clone https://github.com/flutter/flutter.git -b stable "$HOME/flutter"
- export PATH="$PATH:$HOME/flutter/bin"
Expand Down Expand Up @@ -421,6 +421,7 @@ for:
install:
- python --version
- cd sdk/python
- pip install --upgrade pip
- pip install poetry
- poetry install

Expand Down
27 changes: 21 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Flet changelog

## 0.5.0

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

## 0.4.2

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

## 0.4.0

Expand Down
10 changes: 9 additions & 1 deletion client/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,21 @@ packages:
url: "https://pub.dev"
source: hosted
version: "5.2.5"
fl_chart:
dependency: transitive
description:
name: fl_chart
sha256: e97c5b850ad056e9b3a85d3afeb44c239a83aa994a90723940dac82234f2efaf
url: "https://pub.dev"
source: hosted
version: "0.61.0"
flet:
dependency: "direct main"
description:
path: "../package"
relative: true
source: path
version: "0.4.2"
version: "0.5.0"
flutter:
dependency: "direct main"
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion client/web/python-worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
importScripts("https://cdn.jsdelivr.net/pyodide/v0.22.1/full/pyodide.js");
importScripts("https://cdn.jsdelivr.net/pyodide/v0.23.0/full/pyodide.js");

self.micropipIncludePre = false;
self.pythonModuleName = null;
Expand Down
27 changes: 21 additions & 6 deletions package/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## 0.5.0

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

## 0.4.2

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

## 0.4.0

Expand Down
Loading

0 comments on commit e6daf8c

Please sign in to comment.