当前位置:网站首页>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)
边栏推荐
- Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
- Electron adding SQLite database
- Have you ever met flick Oracle CDC, read a table without update operation, and read it repeatedly every ten seconds
- STM32 entry development uses IIC hardware timing to read and write AT24C08 (EEPROM)
- STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于SPI)
- How to add aplayer music player in blog
- sink 消费 到 MySQL, 数据库表里面已经设置了 自增主键, flink 里面,如何 操作?
- Cmu15445 (fall 2019) project 2 - hash table details
- 【愚公系列】2022年7月 Go教学课程 005-变量
- How to connect 5V serial port to 3.3V MCU serial port?
猜你喜欢
禁锢自己的因素,原来有这么多
Rationaldmis2022 advanced programming macro program
一起探索云服务之云数据库
Solve the problem that vscode can only open two tabs
The running kubernetes cluster wants to adjust the network segment address of pod
SwiftUI 4 新功能之掌握 WeatherKit 和 Swift Charts
Onedns helps college industry network security
聊聊SOC启动(十一) 内核初始化
Talk about SOC startup (IX) adding a new board to uboot
.NET MAUI 性能提升
随机推荐
千人规模互联网公司研发效能成功之路
[shortest circuit] acwing 1127 Sweet butter (heap optimized dijsktra or SPFA)
Internet Protocol
Enclosed please find. Net Maui's latest learning resources
Time bomb inside the software: 0-day log4shell is just the tip of the iceberg
SwiftUI 教程之如何在 2 秒内实现自动滚动功能
Use references
相机标定(2): 单目相机标定总结
Camera calibration (2): summary of monocular camera calibration
About how to install mysql8.0 on the cloud server (Tencent cloud here) and enable local remote connection
The Oracle message permission under the local Navicat connection liunx is insufficient
【紋理特征提取】基於matlab局部二值模式LBP圖像紋理特征提取【含Matlab源碼 1931期】
Stm32f1 and stm32subeide programming example -max7219 drives 8-bit 7-segment nixie tube (based on SPI)
R語言使用magick包的image_mosaic函數和image_flatten函數把多張圖片堆疊在一起形成堆疊組合圖像(Stack layers on top of each other)
Summed up 200 Classic machine learning interview questions (with reference answers)
Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)
electron 添加 SQLite 数据库
【最短路】ACwing 1127. 香甜的黄油(堆优化的dijsktra或spfa)
R语言使用quantile函数计算评分值的分位数(20%、40%、60%、80%)、使用逻辑操作符将对应的分位区间(quantile)编码为分类值生成新的字段、strsplit函数将学生的名和姓拆分
Test the foundation of development, and teach you to prepare for a fully functional web platform environment