当前位置:网站首页>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是否显示在页面的顶部
})
边栏推荐
猜你喜欢

LeetCode:1403. 非递增顺序的最小子序列【贪心】

四位数显表头设计

数字孪生技术在电力系统中的应用现状

Learning and finishing of probability theory 8: Geometric and hypergeometric distributions

请写出SparkSQL语句
![[BSidesCF 2019]Kookie](/img/29/19e7c244feb86b37ab32a53aa11f25.png)
[BSidesCF 2019]Kookie

MySql index learning and use; (I think it is detailed enough)
虚证、实证如何鉴别?

AUTOCAD——标注关联

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?
随机推荐
机器学习概述
Four-digit display header design
upload upload pictures to Tencent cloud, how to upload pictures
仪表板展示 | DataEase看中国:数据呈现中国资本市场
Mvi架构浅析
bytebuffer 内部结构
Day14 jenkins deployment
Qixi Festival earn badges
There are a lot of 4T hard drives remaining, prompting "No space left on device" insufficient disk space
使用IDEA连接TDengine服务器
社区分享|腾讯海外游戏基于JumpServer构建游戏安全运营能力
What is the function of industrial-grade remote wireless transmission device?
upload上传图片到腾讯云,如何上传图片
What is ASEMI photovoltaic diode, the role of photovoltaic diode
国学*周易*梅花易数 代码实现效果展示 - 梅花心易
[8.3] Code Source - [meow ~ meow ~ meow~] [tree] [and]
浅析主流跨端技术方案
mysql数据库表什么字段类型的存储长度最大?
dedecms后台生成提示读取频道信息失败的解决方法
延迟加载js方式async与defer区别