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 build issues in 0.26.0-dev #4727

Closed
FeodorFitsner opened this issue Jan 17, 2025 · 2 comments · Fixed by #4748
Closed

flet build issues in 0.26.0-dev #4727

FeodorFitsner opened this issue Jan 17, 2025 · 2 comments · Fixed by #4748
Assignees

Comments

@FeodorFitsner
Copy link
Contributor

FeodorFitsner commented Jan 17, 2025

  1. Cannot override assets section in pubspec.yaml. This should work:
[tool.flet.flutter.pubspec.flutter]
assets = []
  1. Enable desktop after flutter installation. See flutter config --help.
  2. Set JDK and Android paths. See flutter config --help.
  3. flet-* packages should have no version constraint for flet dependency.
@FeodorFitsner FeodorFitsner self-assigned this Jan 17, 2025
@Muddassir-Farooq-official

snackbar is also not workiung in pre release

FeodorFitsner added a commit that referenced this issue Jan 20, 2025
@ndonkoHenri ndonkoHenri moved this from 🆕 New to ✅ Done in Flet Development Jan 21, 2025
@ndonkoHenri ndonkoHenri linked a pull request Jan 21, 2025 that will close this issue
@FeodorFitsner
Copy link
Contributor Author

Snackbar example on the website is outdated.

The working example:

import flet as ft


class Data:
    def __init__(self) -> None:
        self.counter = 0


d = Data()


def main(page):

    def on_click(e):
        snack_bar = ft.SnackBar(ft.Text(f"Hello {d.counter}"))
        page.open(snack_bar)
        d.counter += 1
        page.update()

    page.add(ft.ElevatedButton("Open SnackBar", on_click=on_click))


ft.app(main)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants