flet-dev / website Goto Github PK
View Code? Open in Web Editor NEWflet.dev project website
License: MIT License
flet.dev project website
License: MIT License
I'm not exactly sure how deep this problem goes, but what I've noticed is that ft.MainAxisAlignment.CENTER which is used in the documentation gives an error. And looking at the examples repo, I noticed it's mostly been with a string of "center".
This unfortunately made me really question if I want to go down the road of learning Flet. And honestly, I'm glad I gave it the time to figure out this problem, coz honestly it's a great framework. And I'm just mentioning this as it could really damage the onboarding of new developers.
This issue is also exasperated by Github Copilot
- [SALT]: Are you sure about the planned "multilanguage support"?
This will make docs etc a lot more involved and require lots of redundant/repeated work.- [CNTD]: If yes, then some way to compile to different targets seems worth trying.
See shen Yggdrasil - it will cover python, C/C++, JVM (java vm), JS (JavaScript), & Lisp in one go.Re: "multilanguage support" - that was the "grand" idea
currently it's unreachable goal
adopting Flet for a different language is like starting all over again
- Originally posted by @FeodorFitsner in #141 (comment)
Sources:
Lines 54 to 62 in c5ab4c4
Line 90 in c5ab4c4
Lines 64 to 67 in c5ab4c4
Tutorials Trello Clone
website/docs/tutorials/trello-clone.md
Line 14 in c5ab4c4
Kind of a ping until it is done. ๐
There is an error in the NavigationRail code sample https://flet.dev/docs/controls/navigationrail#examples.
The code
destinations=[
NavigationRailDestination(
icon=ft.icons.FAVORITE_BORDER, selected_icon=ft.icons.FAVORITE, label="First"
),
NavigationRailDestination(
icon_content=ft.Icon(ft.icons.BOOKMARK_BORDER),
selected_icon_content=ft.Icon(ft.icons.BOOKMARK),
label="Second",
),
NavigationRailDestination(
icon=ft.icons.SETTINGS_OUTLINED,
selected_icon_content=ft.Icon(ft.icons.SETTINGS),
label_content=ft.Text("Settings"),
),
],
has to be changed to
destinations = [
ft.NavigationRailDestination(
icon=ft.icons.FAVORITE_BORDER, selected_icon=ft.icons.FAVORITE, label="First"
),
ft.NavigationRailDestination(
icon_content=ft.Icon(ft.icons.BOOKMARK_BORDER),
selected_icon_content=ft.Icon(ft.icons.BOOKMARK),
label="Second",
),
ft.NavigationRailDestination(
icon=ft.icons.SETTINGS_OUTLINED,
selected_icon_content=ft.Icon(ft.icons.SETTINGS),
label_content=ft.Text("Settings"),
),
],
The ft.
is missing in front of the NavigationRailDestination
.
Flet accessibility section's example doesn't work as excpected when you press "Ctrl" + "S"
I run exactly this example and it's has a weird behaviour
import flet as ft
def main(page: ft.Page):
page.title = "Flet counter example"
page.vertical_alignment = ft.MainAxisAlignment.CENTER
page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
def on_keyboard(e: ft.KeyboardEvent):
print(e)
if e.key == "S" and e.ctrl:
page.show_semantics_debugger = not page.show_semantics_debugger
page.update()
page.on_keyboard_event = on_keyboard
txt_number = ft.Text("0", size=40)
def button_click(e):
txt_number.value = str(int(txt_number.value) + 1)
page.update()
page.add(
txt_number,
ft.Text("Press CTRL+S to toggle semantics debugger"),
ft.FloatingActionButton(
icon=ft.icons.ADD, tooltip="Increment number", on_click=button_click
),
)
ft.app(target=main, view=ft.AppView.WEB_BROWSER)
when I click anywhere on the screen after pressing "ctrl" + "s", the mouse pointer show a blue circle.
I want to build my own fork.
I only need to build it on Windows, but others might want to build flet on other platforms.
Prior to this,
Point I am trying to make is:
this flow of docs given below does NOT make any sense to a newcomer.
it first teaches it all in the POP way, then doesn't even mention about OOP way,
and leaves the learner hanging in between.
only for per to eventually decide it's too complicated to manage, and leave.
the person is not guided towards a particular proper tutorial at any place.
the tutorials don't have any order numbering, nor a "start here" label at the tutorial picker page.
even the tutorials - I am assuming the Python - To-Do to be the first one -
starts again from scratch from installing flet; a step already covered in the introduction
oh, and the "how-it-works" doesn't even get any surface it seems.
- "0. Introduction" (example 1: counter :: POP)
> "Tutorials > Want to learn how to build a real app?"
(tutorials? yes yes, sure please :))
> "1. Py Getting Started" (example 2: Name input :: POP)
(hmm, Tutorial & Getting Started, sounds same :D let's proceed :))
> "but it's a matter of personal preference :)"
(umh, is that it? doesn't feel like it.)
(wow, such an abrupt stop! where to go next?)
> "Testing on iOS"
(whattt? oh it's flet-python documentation)
> "Tutorials"
(so many, umh which one to pick now??)
<trying randomly>
> "Python To-Do"
(OOP - the right way) ...
back to the topic - an abbreviation i just coined on the fly lol. don't know if it's real in the wild web. โฉ
From this page, clicking the link in the description to the style prop of the elevated button says page not found. Tried to fix it, but what I saw in the markdown file seems alright:
--- See ElevatedButton.style](elevatedbutton#style)
Don't know where the issue is.. :)
Link to md file: https://github.com/flet-dev/website/blob/main/docs/controls/elevatedbutton.md
Please @FeodorFitsner, when a new prop/method/event is added, we need to document them directly. The devs need to know the existence of each prop. And you know better than me, that we greatly rely on the online documentation for explanations (no docs in code). Below are some page props not found in the online docs. Please document them(keeping the alphabetical ordering in mind).
Hope I didn't miss any.
debug
platform_brightness
error()
design
bottom_sheet
fetch_page_details()
get_control()
insert()
login()
logout()
name
navigation_bar
on_login
on_logout
on_platform_brigthness_change
on_scroll_interval
query
remove()
remove_at()
session
url
Add a list of supported file formats in the Audio
control docs.
Hello every developer in flet-dev, here is a proposal about allow translation for flet's homepage.
Today's web may meet with localization problem in many situation, if their user from all over the world. Some project mainly maintained by some company will use English only, such as google's go.dev or dart.dev , while another popular programming language like rust, ruby, nodejs and even vue.js, all of them are becoming more friendly to user from different countries or region. Here I'll use S-Chinese as example:
Maybe you'll feel strange when just see those square character. For me, my language is S-Chinese, I can read English and write a piece of text, but if I can explore flet or read the docs in my native language, it will be happy and more relaxable, more willing to learn this framework, and let me know that at least one developer who using my native language has been active on this open source project.
I looks for flet-dev organization's current 6 repository and haven't found where to raise a proposal, so I open this issue, and want to listen to flet's maintainer's advice. Thank you for reading this.
Thew doc says this: "Every control has disabled property which is false by default - control and all its children are enabled. " It turns out the ft.Tab() doesn't have a disabled property!
In fact to do something like disabling a tab requires jumping through some hoops to make it work. You actually have to create a container for the tab, and disables it.This is pretty bogus because the user can go to a tab that has been disabled. One can capture the on_selected property and force it to a particular value, but this too is bogus. What happens is the selected tab is displayed and then you force it to another tab.
It would be so much nicer if the Tab had the disabled property and just wouldn't allow the tab to be selected.
For example: google github_web markdown leads to
Following that document one could expect a Table Of Contents to appear as in:
"When you use two or more headings, GitHub automatically generates a table of contents that you can access by clicking within the file header. "
Since the documentation does not specify what to expect from any of the extensions I don't know what to expect from any symbol not directly mentioned in the example.
website/docs/tutorials/python-calculator.md
Line 217 in 2eed1d3
e.data
is always an empty string. e.control.data
gives you the expected value.
I'm just curious.
The link in the description is broken.
Instead of just column#on_scroll
I think it should be docs/controls/column#on_scroll
.
The unchanged code has forced line breaks and there are issues with trailing commas and semicolons. Once I format it, the code files themselves that have not changed will also be modified due to formatting issues. They cannot be merged directly, conflicts will occur and need to be done manually. Adjustment, this is very troublesome. At first glance, it seems to be a format problem.
This is the default configuration of the vscode plug-in
For *.js
{
"arrowParens": "avoid",
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"singleAttributePerLine": false,
"bracketSameLine": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": true,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"embeddedLanguageFormatting": "auto",
"vueIndentScriptAndStyle": false,
"filepath": "/Users/alan/gitproj/website/src/components/signup-form/index.js",
"parser": "babel"
}
Some properties are missing documentation.
It would be easier if types of properties are also given in the documentation.
Perhaps like this:
value: str
The text displayed.
(From the Text
documentation page.)
The volume
property of ft.Audio
is misplaced in the Methods section rather than Properties section
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.