当前位置: 首页 > news >正文

四川省网站建设_网站建设公司_网站建设_seo优化

网站建设属于什么行业分类,网站建设与维护期末试卷,万网域名官网,自学建百度首页网站Scaffold简介 相当于界面的主体#xff08;类似于安卓最外层PhoneWindow#xff09;#xff0c;组件的展示都必须依附于它。 使用场景#xff1a; 每一个界面都是脚手架#xff0c;通过它来进行架构实现#xff0c;优美的布局效果。 属性作用appBar顶部的标题栏body显示整…Scaffold简介 相当于界面的主体类似于安卓最外层PhoneWindow组件的展示都必须依附于它。 使用场景 每一个界面都是脚手架通过它来进行架构实现优美的布局效果。 属性作用appBar顶部的标题栏body显示整体布局floatingActionButton右下角按钮floatingActionButtonLocation按钮的位置floatingActionButtonAnimator按钮动画drawer左侧滑动组件onDrawerChanged滑动事件监听endDrawer右侧滑动组件onEndDrawerChanged编辑完成bottomNavigationBar底部菜单组件backgroundColor背景色persistentFooterButtons显示在基架底部的一组按钮resizeToAvoidBottomInset如果脚手架上方显示屏幕键盘则可以调整机身大小以避免与键盘重叠从而防止机身内部的小部件被键盘遮挡。 endDrawer 属性效果 endDrawer: Container(color: Colors.white,width: 200,child: Center(child: Column(children: [Text(测试endDrawer),Text(测试endDrawer),],),),)floatingActionButton 属性 floatingActionButtonLocation: 属性 startFloat、centerFloat、endFloat、 等几个属性 floatingActionButtonLocation: FloatingActionButtonLocation.endFloat, floatingActionButton: FloatingActionButton(onPressed: () {},tooltip: Increment,child: const Icon(Icons.add),)body 属性代表布局的身体相当于红色这一区域 backgroundColor 整体红色区域部分的背景颜色 drawer 左侧滑动组件 drawer: Container(color: Colors.white,width: 200,child: Center(child: Column(children: [Text(测试drawer),Text(测试drawer),],),),),bottomNavigationBar 底部菜单栏按钮 bottomNavigationBar: BottomNavigationBar(items: const BottomNavigationBarItem[BottomNavigationBarItem(icon: Icon(Icons.home),label: 首页,),BottomNavigationBarItem(icon: Icon(Icons.search),label: 搜索,),BottomNavigationBarItem(icon: Icon(Icons.settings),label: 设置,),],currentIndex: _selectedIndex,selectedItemColor: Colors.blue,onTap: (index) {setState(() {_selectedIndex index;});},)persistentFooterButtons: 显示在基架底部的一组按钮。 persistentFooterAlignment: AlignmentDirectional.bottomEnd,persistentFooterButtons: [TextButton(onPressed: () {// 按钮1的点击事件处理逻辑},child: Text(按钮1),),TextButton(onPressed: () {// 按钮2的点击事件处理逻辑},child: Text(按钮2),),],整体代码块 import package:flutter/material.dart;class ScaffoldPage extends StatefulWidget {const ScaffoldPage({Key? key}) : super(key: key);overrideStateScaffoldPage createState() _ScaffoldPageState(); }class _ScaffoldPageState extends StateScaffoldPage {int _selectedIndex 0;ListWidget _widgetOptions [// 每个选项对应的页面或小部件// 可以根据需要替换为自己的页面或小部件Text(首页),Text(搜索),Text(设置),];overrideWidget build(BuildContext context) {return Scaffold(appBar: AppBar(title: const Text(测试脚手架),),backgroundColor: Colors.blueAccent,body: Center(child: _widgetOptions.elementAt(_selectedIndex),),endDrawer: Container(color: Colors.white,width: 200,child: Center(child: Column(children: [Text(测试endDrawer),Text(测试endDrawer),],),),),drawer: Container(color: Colors.white,width: 200,child: Center(child: Column(children: [Text(测试drawer),Text(测试drawer),],),),),bottomNavigationBar: BottomNavigationBar(items: const BottomNavigationBarItem[BottomNavigationBarItem(icon: Icon(Icons.home),label: 首页,),BottomNavigationBarItem(icon: Icon(Icons.search),label: 搜索,),BottomNavigationBarItem(icon: Icon(Icons.settings),label: 设置,),],currentIndex: _selectedIndex,selectedItemColor: Colors.blue,onTap: (index) {setState(() {_selectedIndex index;});},),floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,floatingActionButton: FloatingActionButton(onPressed: () {},tooltip: Increment,child: const Icon(Icons.add),),persistentFooterAlignment: AlignmentDirectional.bottomEnd,persistentFooterButtons: [TextButton(onPressed: () {// 按钮1的点击事件处理逻辑},child: Text(按钮1),),TextButton(onPressed: () {// 按钮2的点击事件处理逻辑},child: Text(按钮2),),],);} } 项目地址 https://github.com/z244370114/flutter_demo
http://www.ihoyoo.com/news/118764.html

相关文章:

  • 做视频网站用什么服务器配置仿制手机网站教程
  • 海外医疗兼职网站建设长沙找人做网站
  • 南昌建站方案直播电商玩法介绍
  • 国外做电商平台的网站有什么自己的网站怎么做模板
  • 江苏建设网站肇庆做网站建设
  • 长沙php的网站建设公司wordpress怎么安装老版编辑器
  • 重庆网上注册公司重庆官网优化乐育公司
  • wordpress站内信群发无法访问此网站是什么原因
  • 帮企业做网站的wordpress 图文直播插件
  • 拼团手机网站开发上海优化公司
  • 汕头网站网站建设智联人才招聘网
  • 外贸网站建设制作phpcms 调用网站名称
  • 网站合同书百度免费域名注册网站
  • 网站备案ps什么网站需要备案
  • 做企业网站 需要用服务器吗建设四川网站
  • 兰州网站公司杭州市建设工程造价管理协会网站
  • 重庆企业网站优化不会编程怎么做网站
  • 湘潭网站优化wordpress 插件 教程
  • 个人网站建设教学视频国内知名展示设计公司
  • 万网 网站广州市手机网站建设品牌
  • 备案网站负责人必须为法人吗百度收录网站名字
  • 怎么样建立网站方案免费搭建自助网站
  • wordpress主题漏洞莱芜网站优化加徽信xiala5
  • 未来中森网站建设公司贵州建设厅二建考试网站
  • 公司网站seo怎么做天元建设集团有限公司市值
  • 罗湖商城网站建设哪家公司便宜点手机软件怎么做出来的
  • 才做的网站怎么搜不到网站建设基本流程详细说明
  • 网站建设互联wordpress 重制密码
  • 全景网站开发待遇建设通网站电话
  • icp备案网站建设方案书苏州公司注册代理