当前位置:网站首页>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)
边栏推荐
- HCIA复习整理
- La voie du succès de la R & D des entreprises Internet à l’échelle des milliers de personnes
- STM32 entry development write DS18B20 temperature sensor driver (read ambient temperature, support cascade)
- Le Cluster kubernets en cours d'exécution veut ajuster l'adresse du segment réseau du pod
- 聊聊SOC启动(七) uboot启动流程三
- Time bomb inside the software: 0-day log4shell is just the tip of the iceberg
- There are ways to improve self-discipline and self-control
- Camera calibration (2): summary of monocular camera calibration
- 相机标定(1): 单目相机标定及张正友标定基本原理
- How to add aplayer music player in blog
猜你喜欢

Use metersphere to keep your testing work efficient

人大金仓受邀参加《航天七〇六“我与航天电脑有约”全国合作伙伴大会》

从工具升级为解决方案,有赞的新站位指向新价值

【滤波跟踪】捷联惯导纯惯导解算matlab实现

There are so many factors that imprison you

Complete collection of common error handling in MySQL installation

Visual Studio 2019 (LocalDB)\MSSQLLocalDB SQL Server 2014 数据库版本为852无法打开,此服务器支持782版及更低版本

Tsinghua Yaoban programmers, online marriage was scolded?

Talk about SOC startup (11) kernel initialization
![[filter tracking] comparison between EKF and UKF based on MATLAB extended Kalman filter [including Matlab source code 1933]](/img/90/ef2400754cbf3771535196f6822992.jpg)
[filter tracking] comparison between EKF and UKF based on MATLAB extended Kalman filter [including Matlab source code 1933]
随机推荐
Reasons for the failure of web side automation test
Software design - "high cohesion and low coupling"
Ask about the version of flinkcdc2.2.0, which supports concurrency. Does this concurrency mean Multiple Parallelism? Now I find that mysqlcdc is full
【纹理特征提取】基于matlab局部二值模式LBP图像纹理特征提取【含Matlab源码 1931期】
Camera calibration (2): summary of monocular camera calibration
【滤波跟踪】捷联惯导纯惯导解算matlab实现
How to add aplayer music player in blog
Suggestions on one-stop development of testing life
核舟记(一):当“男妈妈”走进现实,生物科技革命能解放女性吗?
正在運行的Kubernetes集群想要調整Pod的網段地址
Explore cloud database of cloud services together
从工具升级为解决方案,有赞的新站位指向新价值
聊聊SOC启动(六)uboot启动流程二
[question] Compilation Principle
【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
Camera calibration (1): basic principles of monocular camera calibration and Zhang Zhengyou calibration
清华姚班程序员,网上征婚被骂?
《论文阅读》Neural Approaches to Conversational AI(1)
UP Meta—Web3.0世界创新型元宇宙金融协议
Common SQL statement collation: MySQL