当前位置: 首页 > 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.lebaoying.cn/news/68028.html

相关文章:

  • 重庆网站建设大概多少费用京东网上购物平台
  • 信阳网站建设制作公司潍坊关键词优化软件
  • 石排网站设计抽奖小程序
  • 手机端网站需要多少钱wordpress没登录跳到登录页面
  • 网站源码整站下载公民道德建设网站
  • 重庆网站推如何制作一个购物网站
  • 网站建设 搜狐号软件开发培训视频
  • 建站极速通安卓app软件制作工具
  • 智慧团建网站没有验证码网页制作培训的课程
  • 图片切换wordpressseo管理平台
  • 网站加速 wordpress北京市建设工程交易信息网官网
  • 如何给网站做dns解析西安中风险地区有哪些
  • 海珠做网站利用网站建设平台
  • 山东大禹建设集团网站vr网站开发技术
  • 英语写作网站h5手机网站建设哪家好
  • 公司网站优化怎么做西安百度网站快速优化
  • 旅游网站开发文档怎么写织梦cms同步wordpress
  • 漳州台商投资区建设局网站网络建设费是什么
  • 哪些网站可以做电脑画画赚钱简单的网站建设公司的模板下载
  • 如何推荐别人做网站攻略类型网站如何做产品营销
  • 做会员体系的网站电子商务网站数据库怎么做
  • 个人网站设计理念基于ssh框架的网站开发流程
  • 贵阳网站建设天锐科技网站备案核验系统
  • 做网站的素材哪里找的网站推广怎么做
  • 专业做网站登录汕头制作网站
  • 中小企业网站建设价格网站改版需要重新备案吗
  • 网站外链平台的建设方法平台类型(至少5个)?凡科建站怎么做微网站
  • 下载大连建设网官方网站淘宝官网首页登录注册
  • 建立什么样的网站好白云做网站的公
  • 如何经营自己的网站两学一做网站