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

The link to the Trolli live demo in the gallery is broken #1553

Closed
mardukbp opened this issue Jul 5, 2023 · 5 comments
Closed

The link to the Trolli live demo in the gallery is broken #1553

mardukbp opened this issue Jul 5, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@mardukbp
Copy link

mardukbp commented Jul 5, 2023

Description

Visiting the Trolli live demo at https://gallery.flet.dev/trolli/#/ results in an error page as shown in the screenshot below.

Code example to reproduce the issue:

N.A.

Describe the results you received:

grafik

Describe the results you expected:

The Trolli app should load.

Additional information you deem important (e.g. issue happens only occasionally):

The link in the GH repo works: https://flet-trolli.fly.dev/#

Flet version (pip show flet):

N.A.

Operating system:

Windows 10 Home

Additional environment details:

Firefox 115

@mardukbp mardukbp changed the title The Trolli live demo is broken The link to the Trolli live demo in the gallery is broken Jul 5, 2023
@FeodorFitsner FeodorFitsner added the bug Something isn't working label Jul 6, 2023
@FeodorFitsner
Copy link
Contributor

Related issue: flet-dev/examples#87

@litalidev
Copy link

Just a simple debug, app.page was cleared after page.update in main.py (line:83):

git diff main.py

diff --git a/python/apps/trolli/src/main.py b/python/apps/trolli/src/main.py
index 6fa563f..5d9e507 100644
--- a/python/apps/trolli/src/main.py
+++ b/python/apps/trolli/src/main.py
@@ -80,7 +80,9 @@ class TrelloApp(UserControl):
bgcolor=colors.BLUE_GREY_200,
)
)

  •    print('xxx3', self.page)
       self.page.update()
    
  •    print('xxx4', self.page)
       # create an initial board for demonstration if no boards
       if len(self.boards) == 0:
           self.create_new_board("My First Board")
    

(flet1) P:\prj\python\flet\examples\python\apps\trolli\src>python main.py
xxx3 page {'id': 'page', 'route': '/', 'pwa': 'false', 'web': 'false', 'platform': 'windows', 'width': '0.0', 'height': '0.0', 'windowwidth': '1280.0', 'windowheight': '720.0', 'windowtop': '10.0', 'windowleft': '10.0', 'clientip': '', 'clientuseragent': '', 'title': 'Flet Trello clone', 'fonts': '{"Pacifico":"Pacifico-Regular.ttf"}', 'theme': '{"font_family":"Verdana","visual_density":"standard","page_transitions":{"windows":"cupertino"}}'}
xxx4 None

@Trae8899
Copy link

Trae8899 commented Aug 10, 2023

i also have same problem

pa=self.page print(pa) pa.update() print(pa) print (self.page)

page {'id': 'page', 'route': '/', 'pwa': 'false', 'web': 'false', 'debug': 'false', 'platform': 'windows', 'platformbrightness': 'light', 'width': '0.0', 'height': '0.0', 'windowwidth': '1280.0', 'windowheight': '720.0', 'windowtop': '10.0', 'windowleft': '10.0', 'clientip': '', 'clientuseragent': '', 'title': 'PIPE ALL', 'thememode': 'light', 'fonts': '{"Pacifico":"Pacifico-Regular.ttf"}', 'theme': '{"color_scheme_seed":"blue","visual_density":"standard","page_transitions":{"windows":"cupertino"}}'}
page {'id': 'page', 'route': '/', 'pwa': 'false', 'web': 'false', 'debug': 'false', 'platform': 'windows', 'platformbrightness': 'light', 'width': '1264.0', 'height': '681.0', 'windowwidth': '1280.0', 'windowheight': '720.0', 'windowtop': '10.0', 'windowleft': '10.0', 'clientip': '', 'clientuseragent': '', 'title': 'PIPE ALL', 'thememode': 'light', 'fonts': '{"Pacifico":"Pacifico-Regular.ttf"}', 'theme': '{"color_scheme_seed":"blue","visual_density":"standard","page_transitions":{"windows":"cupertino"}}', 'windowminimized': 'false', 'windowmaximized': 'false', 'windowfocused': 'false', 'windowfullscreen': 'false'}
None

suddenly page is changed to none type

@FeodorFitsner
Copy link
Contributor

Trolli has been temporarily removed from Gallery for "restoration" 😎

@brycepg
Copy link

brycepg commented Nov 27, 2023

This page still links to the demo: https://flet.dev/docs/tutorials/trello-clone

same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants