当前位置:网站首页>Flutter学习4-基本UI组件
Flutter学习4-基本UI组件
2022-08-05 04:49:00 【hn_lgc】
Scaffold Scaffold 翻译过来就是脚手架的意思,就是一个基础界面,打包了一个界面需要的的常见元素,比如标题栏,FloatButton 抽屉菜单,底部工具栏等
const Scaffold({
Key key,
this.appBar, // 标题栏
this.body, // 用于显示当前界面主要内容的Widget
this.floatingActionButton, // 一个悬浮在body上的按钮,默认显示在右下角
this.floatingActionButtonLocation, // 用于设置floatingActionButton显示的位置
this.floatingActionButtonAnimator, // floatingActionButton移动到一个新的位置时的动画
this.persistentFooterButtons, // 多状态按钮
this.drawer, // 左侧的抽屉菜单
this.endDrawer, // 右’侧的抽屉菜单
this.bottomNavigationBar,// 底部导航栏。
this.bottomSheet, // 显示在底部的工具栏
this.backgroundColor,// 内容的背景颜色
this.resizeToAvoidBottomPadding = true, // 控制界面内容 body 是否重新布局来避免底部被覆盖,比如当键盘显示的时候,重新布局避免被键盘盖住内容。
this.primary = true,// Scaffold是否显示在页面的顶部
})
边栏推荐
猜你喜欢

如何解决复杂的分销分账问题?

how to measure distance from point to face in creo

bytebuffer 使用demo

【8.4】代码源 - 【数学】【历法】【删库】【不朴素的数列(Bonus)】

Event parse tree Drain3 usage and explanation

mutillidae下载及安装

No regrets, the appium automation environment is perfectly built

In the WebView page of the UI automation test App, the processing method when the search bar has no search button

Day019 方法重写与相关类的介绍

The solution to the failure to read channel information when dedecms generates a message in the background
随机推荐
dedecms后台生成提示读取频道信息失败的解决方法
[8.3] Code Source - [meow ~ meow ~ meow~] [tree] [and]
Talk about 20 common problems in data governance
【8.3】代码源 - 【喵 ~ 喵 ~ 喵~】【树】【与】
[MRCTF2020] Ezpop (detailed)
Cron(Crontab)--use/tutorial/example
What is ASEMI photovoltaic diode, the role of photovoltaic diode
Is the NPDP certificate high in gold content?Compared to PMP?
算法---一和零(Kotlin)
DNS被劫持如何处理?
社区分享|腾讯海外游戏基于JumpServer构建游戏安全运营能力
There are a lot of 4T hard drives remaining, prompting "No space left on device" insufficient disk space
The log causes these pits in the thread block, you have to guard against
Develop your own node package
for..in和for..of的区别
NPDP证书含金量高吗?跟PMP相比?
Redis哨兵模式配置文件详解
将故事写成我们
Visibility of multi-column attribute column elements: display, visibility, opacity, vertical alignment: vertical-align, z-index The larger it is, the more it will be displayed on the upper layer
Why did you start preparing for the soft exam just after the PMP exam?