当前位置:网站首页>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)
边栏推荐
- Design intelligent weighing system based on Huawei cloud IOT (STM32)
- Briefly introduce closures and some application scenarios
- 人大金仓受邀参加《航天七〇六“我与航天电脑有约”全国合作伙伴大会》
- Suggestions on one-stop development of testing life
- 千人规模互联网公司研发效能成功之路
- STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于SPI)
- Tsinghua Yaoban programmers, online marriage was scolded?
- Test the foundation of development, and teach you to prepare for a fully functional web platform environment
- Flet教程之 15 GridView 基础入门(教程含源码)
- Mise en œuvre du codage Huffman et du décodage avec interface graphique par MATLAB
猜你喜欢
【全栈计划 —— 编程语言之C#】基础入门知识一文懂
Talk about SOC startup (x) kernel startup pilot knowledge
[data clustering] realize data clustering analysis based on multiverse optimization DBSCAN with matlab code
Explore cloud database of cloud services together
SwiftUI 教程之如何在 2 秒内实现自动滚动功能
MATLAB實現Huffman編碼譯碼含GUI界面
一起探索云服务之云数据库
Cmu15445 (fall 2019) project 2 - hash table details
Mise en œuvre du codage Huffman et du décodage avec interface graphique par MATLAB
Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)
随机推荐
Distributed database master-slave configuration (MySQL)
Steps of redis installation and self startup configuration under CentOS system
The Oracle message permission under the local Navicat connection liunx is insufficient
[system design] index monitoring and alarm system
Flet教程之 14 ListTile 基础入门(教程含源码)
Enclosed please find. Net Maui's latest learning resources
QT | multiple windows share a prompt box class
千人規模互聯網公司研發效能成功之路
Talk about SOC startup (11) kernel initialization
Zhou Yajin, a top safety scholar of Zhejiang University, is a curiosity driven activist
大佬们有没有人遇到过 flink oracle cdc,读取一个没有更新操作的表,隔十几秒就重复读取
STM32 entry development write DS18B20 temperature sensor driver (read ambient temperature, support cascade)
Cmu15445 (fall 2019) project 2 - hash table details
Talk about SOC startup (VI) uboot startup process II
MySQL安装常见报错处理大全
Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
从工具升级为解决方案,有赞的新站位指向新价值
UP Meta—Web3.0世界创新型元宇宙金融协议
Use references
SwiftUI 教程之如何在 2 秒内实现自动滚动功能