当前位置:网站首页>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是否显示在页面的顶部
})
边栏推荐
- 延迟加载js方式async与defer区别
- Develop your own node package
- Paparazzi: Surface Editing by way of Multi-View Image Processing
- 为什么刚考完PMP,就开始准备软考了?
- JeeSite新建报表
- Mini Program_Dynamic setting of tabBar theme skin
- [MRCTF2020] Ezpop (detailed)
- How to identify false evidence and evidence?
- 【8.4】代码源 - 【数学】【历法】【删库】【不朴素的数列(Bonus)】
- Is the NPDP certificate high in gold content?Compared to PMP?
猜你喜欢

开发属于自己的node包

The solution to the failure to read channel information when dedecms generates a message in the background

小程序_动态设置tabBar主题皮肤

The log causes these pits in the thread block, you have to guard against

Redis哨兵模式配置文件详解

Analyses the mainstream across technology solutions

App快速开发建设心得:小程序+自定义插件的重要性

多御安全浏览器 V10.8.3.1 版正式发布,优化多项内容

【学生毕业设计】基于web学生信息管理系统网站的设计与实现(13个页面)

【cesium】加载并定位 3D Tileset
随机推荐
Mysql的undo log详解
Talk about 20 common problems in data governance
Qixi Festival code confession
作业8.4 进程间的通信 管道与信号
How to deal with DNS hijacking?
DNS被劫持如何处理?
[极客大挑战 2019]FinalSQL
[CISCN2019 South China Division]Web11
The log causes these pits in the thread block, you have to guard against
UI自动化测试 App的WebView页面中,当搜索栏无搜索按钮时处理方法
多御安全浏览器 V10.8.3.1 版正式发布,优化多项内容
Error creating bean with name ‘configDataContextRefresher‘ defined in class path resource
ESP32 485光照度
七夕节赚徽章拉
flink读取mongodb数据源
社区分享|腾讯海外游戏基于JumpServer构建游戏安全运营能力
8.04 Day35-----MVC三层架构
Day14 jenkins deployment
C+ +核心编程
dedecms报错The each() function is deprecated