Skip to content

fix: correct parameter order in a parseTextStyle function call #5566

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

Merged
merged 4 commits into from
Aug 19, 2025

Conversation

ndonkoHenri
Copy link
Contributor

@ndonkoHenri ndonkoHenri commented Aug 17, 2025

Fix #5565

Summary by Sourcery

Fix parseTextStyle parameter order and reorganize Python SDK Taskfile tasks for improved clarity

Bug Fixes:

  • Correct the parameter order in the parseTextStyle function call

Enhancements:

  • Restructure Taskfile.yml: rename pyproject-setup to install, rename tests to unit-tests, and introduce integration-tests and control-integration-tests with standardized aliases

Copy link
Contributor

@Copilot 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 pull request fixes incorrect parameter order in a parseTextStyle function call as indicated by issue #5565. The fix corrects the order of parameters from (theme, jv) to (jv, theme) to match the expected function signature.

  • Corrected parameter order in parseTextStyle function call
  • Reorganized Python development tasks to improve clarity and usability

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/flet/lib/src/utils/text.dart Fixed parameter order in parseTextStyle function call
sdk/python/Taskfile.yml Reorganized task names and added aliases for better development workflow

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

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

@FeodorFitsner
Copy link
Contributor

Could you add an integration test for the fixed case please?

Copy link

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

Deploying flet-docs with  Cloudflare Pages  Cloudflare Pages

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

View logs

@FeodorFitsner FeodorFitsner merged commit 868e2ad into main Aug 19, 2025
3 of 5 checks passed
@FeodorFitsner FeodorFitsner deleted the fix-button branch August 19, 2025 18:07
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: grey screen when using ButtonStyle.text_style
2 participants