Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flet 0.10.2 fixes #1864

Merged
merged 5 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Flet changelog

## 0.10.2

* Wrapped --codesign-identity & --add-binary for flet pack ([#1789](https://github.com/flet-dev/flet/issues/1789)).
* Fix incomplete code blocks in `flet_core/page.py`.
* Fix disabled color of FilledButtons.
* Add `AppView` and `WebRenderer` enums to flet-pyodide.
* Pyodide v0.24.0.

## 0.10.1

* Fix Cavas.Text drawing ([#1783](https://github.com/flet-dev/flet/issues/1783))
Expand Down
2 changes: 1 addition & 1 deletion client/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ packages:
path: "../package"
relative: true
source: path
version: "0.10.1"
version: "0.10.2"
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.23.0/full/pyodide.js");
importScripts("https://cdn.jsdelivr.net/pyodide/v0.24.0/full/pyodide.js");

self.micropipIncludePre = false;
self.pythonModuleName = null;
Expand Down
8 changes: 8 additions & 0 deletions package/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.10.2

* Wrapped --codesign-identity & --add-binary for flet pack ([#1789](https://github.com/flet-dev/flet/issues/1789)).
* Fix incomplete code blocks in `flet_core/page.py`.
* Fix disabled color of FilledButtons.
* Add `AppView` and `WebRenderer` enums to flet-pyodide.
* Pyodide v0.24.0.

## 0.10.1

* Fix Cavas.Text drawing ([#1783](https://github.com/flet-dev/flet/issues/1783))
Expand Down
2 changes: 1 addition & 1 deletion package/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flet
description: Write entire Flutter app in Python or add server-driven UI experience into existing Flutter app.
homepage: https://flet.dev
repository: https://github.com/flet-dev/flet
version: 0.10.1
version: 0.10.2

# This package supports all platforms listed below.
platforms:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ def _before_build_command(self):
):
if self.__style is None:
self.__style = ButtonStyle()
if self.__style.color != self.__color and not self.disabled:
self.__style.color = self.__color
if self.__style.bgcolor != self.__bgcolor and not self.disabled:
self.__style.bgcolor = self.__bgcolor
if self.__style.color != self.__color or self.disabled:
self.__style.color = self.__color if not self.disabled else None
if self.__style.bgcolor != self.__bgcolor or self.disabled:
self.__style.bgcolor = self.__bgcolor if not self.disabled else None
if self.__style.elevation != self.__elevation:
self.__style.elevation = self.__elevation
if self.__style is not None:
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/packages/flet-core/src/flet_core/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,7 @@ def on_scroll_interval(self) -> OptionalNumber:

@on_scroll_interval.setter
def on_scroll_interval(self, value: OptionalNumber):
self.__default_view.on_scroll_interval
self.__default_view.on_scroll_interval = value

# on_close
@property
Expand Down Expand Up @@ -1808,7 +1808,7 @@ def on_scroll(self):

@on_scroll.setter
def on_scroll(self, handler):
self.__default_view.on_scroll
self.__default_view.on_scroll = handler


class Offstage(Control):
Expand Down
8 changes: 8 additions & 0 deletions sdk/python/packages/flet-pyodide/src/flet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
from flet.flet import app, app_async
from flet_core import *
from flet_core.types import (
FLET_APP,
FLET_APP_HIDDEN,
FLET_APP_WEB,
WEB_BROWSER,
AppView,
WebRenderer,
)