当前位置:网站首页>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是否显示在页面的顶部
})
边栏推荐
猜你喜欢
Mysql的undo log详解
bytebuffer 内部结构
how to measure distance from point to face in creo
Haproxy搭建Web群集
基于Web的商城后台管理系统的设计与实现
Machine Learning Overview
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
Redis哨兵模式配置文件详解
工业级远距离无线传输装置的功能有哪些?
日志导致线程Block的这些坑,你不得不防
随机推荐
Mini Program_Dynamic setting of tabBar theme skin
dedecms后台生成提示读取频道信息失败的解决方法
NPDP证书含金量高吗?跟PMP相比?
bytebuffer internal structure
作业8.4 进程间的通信 管道与信号
请写出SparkSQL语句
UI自动化测试 App的WebView页面中,当搜索栏无搜索按钮时处理方法
Bytebuffer put flip compact clear method demonstration
[informix] Resolving startup errors and solutions
Feature preprocessing
C++ core programming
How to identify false evidence and evidence?
C language - vernacular to understand the original code, inverse code and complement code
Develop your own node package
Mvi架构浅析
Day019 Method overriding and introduction of related classes
[MRCTF2020] Ezpop (detailed)
creo怎么测量点到面的距离
【cesium】3D Tileset 模型加载并与模型树关联
概率论的学习和整理8: 几何分布和超几何分布