当前位置:网站首页>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是否显示在页面的顶部
})
边栏推荐
- token, jwt, oauth2, session parsing
- upload上传图片到腾讯云,如何上传图片
- [informix] Resolving startup errors and solutions
- Mysql的redo log详解
- The production method of the powered small sailboat is simple, the production method of the electric small sailboat
- bytebuffer 使用demo
- The first performance test practice, there are "100 million" a little nervous
- 二叉树基本性质+oj题解析
- A 35-year-old software testing engineer with a monthly salary of less than 2W, resigns and is afraid of not finding a job, what should he do?
- App快速开发建设心得:小程序+自定义插件的重要性
猜你喜欢
随机推荐
关于sklearn库的安装
请写出SparkSQL语句
mysql数据库表什么字段类型的存储长度最大?
不看后悔,appium自动化环境完美搭建
mutillidae download and installation
【 8.4 】 source code - [math] [calendar] [delete library 】 【 is not a simple sequence (Bonus) 】
[MRCTF2020] PYWebsite
【cesium】加载并定位 3D Tileset
多列属性column元素的可见性:display、visibility、opacity、垂直对齐方式:vertical-align、z-index 越大越显示在上层
开发属于自己的node包
MySql index learning and use; (I think it is detailed enough)
upload上传图片到腾讯云,如何上传图片
Mysql's redo log detailed explanation
NPDP证书含金量高吗?跟PMP相比?
[CISCN2019 South China Division]Web11
About the installation of sklearn library
[MRCTF2020]Ezpop(详解)
[informix] Resolving startup errors and solutions
Feature preprocessing
Please write the SparkSQL statement

![[BSidesCF 2019] Kookie](/img/29/19e7c244feb86b37ab32a53aa11f25.png)

![[SWPU2019]Web1](/img/06/36e69a2d7d5475a6749a7d81edf50f.png)


![[MRCTF2020] PYWebsite](/img/d4/57e8e5ee45b742894679f3f5671516.png)


