Skip to content

Conversation

@ndonkoHenri
Copy link
Contributor

@ndonkoHenri ndonkoHenri commented Aug 12, 2025

Close #5538

Summary by Sourcery

Update documentation tooling, fix ElevatedButton validation logic, and enhance Taskfile usability

Bug Fixes:

  • Correct validation logic in ElevatedButton.before_update to fix style, color, bgcolor, and elevation checks

Build:

  • Add mkdocs-external-images plugin dependency for documentation in pyproject.toml

Chores:

  • Add 'help' alias to Taskfile tasks listing

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've reviewed this pull request using the Sourcery rules engine

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a logical bug in the ElevatedButton control and adds a new alias for task listing.

  • Fixed a critical logical error in the ElevatedButton validation where is None was incorrectly used instead of is not None
  • Added mkdocs-external-images dependency for documentation generation
  • Added convenience "help" alias for the task list command

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
sdk/python/packages/flet/src/flet/controls/material/elevated_button.py Fixed logical bug by changing is None to is not None in style validation
sdk/python/pyproject.toml Added mkdocs-external-images dependency from git repository
sdk/python/Taskfile.yml Added "help" alias for the task list command

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@FeodorFitsner
Copy link
Contributor

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 12, 2025

Deploying flet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1ced37e
Status: ✅  Deploy successful!
Preview URL: https://c65c2a3d.flet-docs.pages.dev
Branch Preview URL: https://v1-fix-button.flet-docs.pages.dev

View logs

@FeodorFitsner
Copy link
Contributor

Can you add an integration test specifically testing the scenario in #5538.

@FeodorFitsner FeodorFitsner merged commit fadde0b into main Aug 13, 2025
3 checks passed
@FeodorFitsner FeodorFitsner deleted the v1-fix-button branch August 13, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v1: ElevatedButton's style property is ignored in some cases

3 participants