当前位置:网站首页>Flet tutorial 17 basic introduction to card components (tutorial includes source code)
Flet tutorial 17 basic introduction to card components (tutorial includes source code)
2022-07-07 11:55:00 【Knowledge fatness】
Flet What is it?
Flet It's a framework , Make it easy for you to build real-time in your favorite language Web、 Mobile and desktop applications , And share them safely with your team . No front-end experience .
What is? GridView
Panel with slight rounded corners and elevation shadows .
Combat code
import flet
from flet import Image, Page, GridView, border_radius
def main(page: Page):
page.title = "GridView Example"
page.theme_mode = "dark"
page.padding = 50
page.update()
images = GridView(
expand=1,
runs_count=5,
max_extent=150,
child_aspect_ratio=1.0,
spacing=5,
run_spacing=5,
)
page.add(images)
for i in range(0, 60):
images.controls.append(
Image(
src=f"https://picsum.photos/150/150?{i}",
fit="none",
repeat="noRepeat",
border_radius=border_radius.all(10),
)
)
page.update()
flet.app(target=main, view=flet.WEB_BROWSER)
边栏推荐
- Talk about SOC startup (VII) uboot startup process III
- 博客搬家到知乎
- How to write test cases for test coupons?
- Network protocol concept
- R語言使用magick包的image_mosaic函數和image_flatten函數把多張圖片堆疊在一起形成堆疊組合圖像(Stack layers on top of each other)
- Flet教程之 16 Tabs 选项卡控件 基础入门(教程含源码)
- 浙江大学周亚金:“又破又立”的顶尖安全学者,好奇心驱动的行动派
- Camera calibration (1): basic principles of monocular camera calibration and Zhang Zhengyou calibration
- About how to install mysql8.0 on the cloud server (Tencent cloud here) and enable local remote connection
- 问下flinkcdc2.2.0的版本,支持并发,这个并发是指多并行度吗,现在发现,mysqlcdc全
猜你喜欢
How much do you know about excel formula?
请查收.NET MAUI 的最新学习资源
【系统设计】指标监控和告警系统
Time bomb inside the software: 0-day log4shell is just the tip of the iceberg
Swiftui swift internal skill how to perform automatic trigonometric function calculation in swift
人大金仓受邀参加《航天七〇六“我与航天电脑有约”全国合作伙伴大会》
Flet教程之 15 GridView 基础入门(教程含源码)
MATLAB实现Huffman编码译码含GUI界面
STM32F1与STM32CubeIDE编程实例-315M超再生无线遥控模块驱动
The running kubernetes cluster wants to adjust the network segment address of pod
随机推荐
【问道】编译原理
Zhou Yajin, a top safety scholar of Zhejiang University, is a curiosity driven activist
[system design] index monitoring and alarm system
超标量处理器设计 姚永斌 第10章 指令提交 摘录
Swiftui swift internal skill: five skills of using opaque type in swift
竟然有一半的人不知道 for 与 foreach 的区别???
La voie du succès de la R & D des entreprises Internet à l’échelle des milliers de personnes
Complete collection of common error handling in MySQL installation
How much do you know about excel formula?
112.网络安全渗透测试—[权限提升篇10]—[Windows 2003 LPK.DDL劫持提权&msf本地提权]
In my limited software testing experience, a full-time summary of automation testing experience
人大金仓受邀参加《航天七〇六“我与航天电脑有约”全国合作伙伴大会》
HCIA复习整理
5V串口接3.3V单片机串口怎么搞?
MATLAB實現Huffman編碼譯碼含GUI界面
Mise en œuvre du codage Huffman et du décodage avec interface graphique par MATLAB
When sink is consumed in mysql, the self incrementing primary key has been set in the database table. How to operate in Flink?
Half of the people don't know the difference between for and foreach???
Use references
Various uses of vim are very practical. I learned and summarized them in my work