当前位置:网站首页>Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
2022-07-07 09:46:00 【知识大胖】
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
Flet是什么
Flet 是一个框架,使您能够轻松地以您喜欢的语言构建实时 Web、移动和桌面应用程序,并与您的团队安全地共享它们。无需前端经验。
什么是Divider
一条细的水平线,两边都有填充,这代表了一个分隔符。
实战代码

import flet
from flet import Column, Container, Divider, Page, alignment, colors
def main(page: Page):
page.add(
Column(
[
Container(
bgcolor=colors.AMBER,
alignment=alignment.center,
expand=True,
),
Divider(),
Container(bgcolor=colors.PINK, alignment=alignment.center, expand=True),
Divider(height=1, color="white"),
Container(
边栏推荐
- How to add aplayer music player in blog
- How much do you know about excel formula?
- 對比學習之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
- 基于华为云IOT设计智能称重系统(STM32)
- In depth learning autumn recruitment interview questions collection (1)
- STM32 entry development NEC infrared protocol decoding (ultra low cost wireless transmission scheme)
- 对比学习之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
- Electron adding SQLite database
- 'module 'object is not callable error
- TDengine 社区问题双周精选 | 第二期
猜你喜欢

关于测试人生的一站式发展建议

Test the foundation of development, and teach you to prepare for a fully functional web platform environment

测试优惠券要怎么写测试用例?

What development models did you know during the interview? Just read this one

Technology sharing | packet capturing analysis TCP protocol

SwiftUI Swift 内功之如何在 Swift 中进行自动三角函数计算

如何在博客中添加Aplayer音乐播放器

Suggestions on one-stop development of testing life

相机标定(2): 单目相机标定总结

【最短路】ACwing 1127. 香甜的黄油(堆优化的dijsktra或spfa)
随机推荐
Flet教程之 19 VerticalDivider 分隔符组件 基础入门(教程含源码)
千人规模互联网公司研发效能成功之路
Easyui学习整理笔记
聊聊SOC启动(七) uboot启动流程三
请查收.NET MAUI 的最新学习资源
In my limited software testing experience, a full-time summary of automation testing experience
Automated testing framework
Two week selection of tdengine community issues | phase II
How to write test cases for test coupons?
简单介绍一下闭包及它的一些应用场景
Android interview knowledge points
Stm32f1 and stm32subeide programming example -max7219 drives 8-bit 7-segment nixie tube (based on SPI)
Technology sharing | packet capturing analysis TCP protocol
QT implements the delete method of the container
R language uses the quantile function to calculate the quantile of the score value (20%, 40%, 60%, 80%), uses the logical operator to encode the corresponding quantile interval (quantile) into the cla
What development models did you know during the interview? Just read this one
Activity lifecycle
分布式数据库主从配置(MySQL)
Android 面试知识点
There are ways to improve self-discipline and self-control