How To Create REUSABLE App Components In Python (Flet Tutorial)

preview_player
Показать описание
In this lesson we will be learning how to create reusable components in Flet. As our apps get bigger and bigger it’s important that we start making sure that all our components are as reusable as possible, and if we keep creating everything in our main entry point, things can get out of control pretty fast.

▶ Become job-ready with Python:

▶ Follow me on Instagram:

00:00 Intro
00:27 App preview
01:00 New project
01:44 Main entry point
02:35 Custom component
05:58 Using our custom component
07:20 Summing it up
Рекомендации по теме
Комментарии
Автор

Amazing!! Your tutorials have really given me the inspiration to start coding with python and build some small projects in flet :)

rafamartindominguez
Автор

This is the kind of video we need.especially for me as a beginner

Maesdy
Автор

I'm here because flet is my next app development tool. Good job!

linuxeducation
Автор

This is a very smart method.
I am using flet for a project that will require multiple window, like a main layout and then another for settings. I am struggling with passing the variable values from one window to another. I am still learning python and flet. Can you create a tutorial for creating multiple windows and layouts? That would be very helpful for me.

anishpillai
Автор

Good. You should also start the program using a class object instead of creating a `main` function.

dipeshsamrawat
Автор

Do all flutter packages work with Flet?

For example, I'd like to do a real-time Windows desktop application that gets data from the usb/serial and updates either a gauge (kdgaugeview , syncfusion_flutter_gauges ) or if not possible... a line-chart (fl_chart).

Have never used flutter, but I imagine the code has to be specifically written to either use mobile hardware, or Windows desktop hardware (pci, usb, etc)... i.e. it's not as simple as doing:
flutter config --enable-windows-desktop

bennguyen
Автор

For horizontal alignment you need to use CrossAxisAlignment instead of mainaxis

lucasx
Автор

Thank you for the video ! In your opinion, which is more promising in terms of scalability and convenience? Reflex or Flet ? Thanks

YouArgument
Автор

Wow, great tutorial, but I really love how your Visual Studio auto formats the code, do you have a setup tutorial or can you make one please, especially at the end, love how it adds the parameter name on line 30 and 31

sagshah
Автор

A shame user control is deprecated. You just directly inherit from the control, eg. Ft Row

danielcrompton
Автор

Please teach us on how to package it to apk

EvelynOsokolo
Автор

Es posible usar flet para hacer un editor de tile maps?

SatroDev
Автор

Flet is awesome. But will wait until it gets a bit more mature.

aliasgar.burhani
Автор

Es posible usar flet para hacer un editor de tile maps?

SatroDev