当前位置:网站首页>Flet教程之 09 NavigationRail 基础入门(教程含源码)
Flet教程之 09 NavigationRail 基础入门(教程含源码)
2022-07-05 15:47:00 【知识大胖】
Flet是什么
Flet 是一个框架,使您能够轻松地以您喜欢的语言构建实时 Web、移动和桌面应用程序,并与您的团队安全地共享它们。无需前端经验。
什么是NavigationRail

一种材质小部件,旨在显示在应用程序的左侧或右侧,以在少量视图之间导航,通常在三到五个之间。
实战代码
import flet
from flet import (
AppBar,
Icon,
IconButton,
Page,
PopupMenuButton,
PopupMenuItem,
Text,
colors,
icons,
)
def main(page: Page):
def check_item_clicked(e):
e.control.checked = not e.control.checked
page.update()
page.appbar = AppBar(
leading=Icon(icons.PALETTE),
leading_width=40,
title=Text("AppBar Example"),
center_title=False,
bgcolor=colors.SURFACE_VARIANT,
actions=[
IconButton(icons.WB_SUNNY_OUTLINED),
IconB边栏推荐
- You should have your own persistence
- 开发中Boolean类型使用遇到的坑
- Single merchant v4.4 has the same original intention and strength!
- 【漏洞预警】CVE-2022-26134 Confluence 远程代码执行漏洞POC验证与修复过程
- Single merchant v4.4 has the same original intention and strength!
- 国泰君安网上开户安全吗
- Record a 'very strange' troubleshooting process of cloud security group rules
- Reduce the cost by 40%! Container practice of redis multi tenant cluster
- 视觉体验全面升级,豪威集团与英特尔Evo 3.0共同加速PC产业变革
- 对象和类的关系
猜你喜欢

我们为什么要学习数学建模?

具有倍数关系的时钟切换

List de duplication and count the number

Clock switching with multiple relationship

OneForAll安装使用

SQL injection sqllabs (basic challenges) 11-20

How difficult is it to pass the certification of Intel Evo 3.0? Yilian technology tells you

项目中批量update

obj集合转为实体集合

Intelligent metal detector based on openharmony
随机推荐
abstract关键字和哪些关键字会发生冲突呢
Cartoon: what is blue-green deployment?
公司自用的国产API管理神器
Parameter type setting error during batch update in project SQL
研发效能度量指标构成及效能度量方法论
19.[STM32]HC_SR04超声波测距_定时器方式(OLED显示)
Reduce the cost by 40%! Container practice of redis multi tenant cluster
异常com.alibaba.fastjson.JSONException: not match : - =
Obj resolves to a set
迁移/home分区
APICloud云调试解决方案
ES6深入—ES6 Class 类
17.[STM32]仅用三根线带你驱动LCD1602液晶
Intel 13th generation Raptor Lake processor information exposure: more cores, larger cache
Is it safe for Guotai Junan to open an account online
10 minutes to help you get ZABBIX monitoring platform alarm pushed to nail group
vlunhub- BoredHackerBlog Social Network
Cartoon: what is service fusing?
助力数字经济发展,夯实数字人才底座—数字人才大赛在昆成功举办
One click installation script enables rapid deployment of graylog server 4.2.10 stand-alone version