当前位置:网站首页>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边栏推荐
- 事务回滚异常
- 今日睡眠质量记录79分
- 20.[STM32]利用超声波模块和舵机实现智能垃圾桶功能
- 19.[STM32]HC_ SR04 ultrasonic ranging_ Timer mode (OLED display)
- Query the latest record in SQL
- Is it safe for Guotai Junan to open an account online
- 抽象类中子类与父类
- 国泰君安网上开户安全吗
- 数据湖(十四):Spark与Iceberg整合查询操作
- Pits encountered in the use of boolean type in development
猜你喜欢

The visual experience has been comprehensively upgraded, and Howell group and Intel Evo 3.0 have jointly accelerated the reform of the PC industry

单商户 V4.4,初心未变,实力依旧!

Why should we learn mathematical modeling?

数据湖(十四):Spark与Iceberg整合查询操作

vlunhub- BoredHackerBlog Social Network

降本40%!Redis多租户集群的容器化实践

ES6 drill down - Async functions and symbol types

后台系统发送验证码功能

抽象类和接口的区别

【网易云信】超分辨率技术在实时音视频领域的研究与实践
随机推荐
Five common negotiation strategies of consulting companies and how to safeguard their own interests
[graduation season] as a sophomore majoring in planning, I have something to say
Replknet: it's not that large convolution is bad, but that convolution is not large enough. 31x31 convolution. Let's have a look at | CVPR 2022
20. [stm32] realize the function of intelligent garbage can by using ultrasonic module and steering gear
verilog实现计算最大公约数和最小公倍数
Dataarts studio data architecture - Introduction to data standards
EDI许可证和ICP经营性证有什么区别
The list set is summed up according to a certain attribute of the object, the maximum value, etc
17.[STM32]仅用三根线带你驱动LCD1602液晶
Transaction rollback exception
抽象类和接口的区别
服务器的数据库连不上了2003,10060“Unknown error“【服务已起、防火墙已关、端口已开、netlent 端口不通】
数据湖(十四):Spark与Iceberg整合查询操作
求解汉诺塔问题【修改版】
list集合根据对象某属性求和,最大值等
给自己打打气
Reduce the cost by 40%! Container practice of redis multi tenant cluster
Some cognitive thinking
Quick completion guide for manipulator (IX): forward kinematics analysis
CISP-PTE之SQL注入(二次注入的应用)