Skip to content

Conversation

@Beautifulone0
Copy link

This PR updates the “Using Pages in FletX” documentation to make it more friendly and beginner-focused.

Changes made:

  • Added an engaging introduction explaining what FletXPages are.
  • Included simple and progressive examples (Hello Page, Lifecycle Hooks, Controllers, and Counter Page).
  • Explained navigation, reactive state, and page utilities clearly.
  • Added best practices and a “Next Steps” section with helpful links.
  • Improved structure, readability, and pedagogy.

Goal:

Make the documentation more approachable for first-time users and help developers quickly understand how to build and manage pages effectively in FletX.

Copy link
Contributor

@Einswilli Einswilli left a comment

Choose a reason for hiding this comment

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

First of all Great job!
The documentation should cover all the features of a FletXPage, including reactive events, listeners, and effects like watch, watch_multiple, etc., performance stats, navigation, and widget builders such as build_app_bar, build_floating_action_button, build_bottom_app_bar, and others.


``` python
import flet as ft
from fletx import FletXPage, FletX
Copy link
Contributor

Choose a reason for hiding this comment

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

FletXPage must be imported from fletx.core.

@Beautifulone0
Copy link
Author

Update: Implemented all reviewer feedback

Changes made:

  • Updated import statement now using FletXPage from fletx.core
  • Adjusted refresh() method to call super().refresh(_) before reloading data
  • Replaced manual increment logic (self.count.value += 1) with self.count.increment()
  • Ensured code examples align with the latest FletX API and style conventions

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.

2 participants