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

html网站建设实录网页广告关不掉怎么办

html网站建设实录,网页广告关不掉怎么办,wordpress加密修改密码,北京优化网站常用基本属性 属性名含义是否必须items底部导航栏的子项List是currentIndex当前显示索引否onTap底部导航栏的点击事件, Function(int)否type底部导航栏类型,定义 [BottomNavigationBar] 的布局和行为否selectedItemColor选中项图标和label的颜色否unsel…

常用基本属性

属性名含义是否必须
items底部导航栏的子项List
currentIndex当前显示索引
onTap底部导航栏的点击事件, Function(int)
type底部导航栏类型,定义 [BottomNavigationBar] 的布局和行为
selectedItemColor选中项图标和label的颜色
unselectedItemColor未选中项图标和label的颜色
iconSize图标大小
backgroundColor底部导航栏背景色
showSelectedLabels是否显示选中项的label
showUnselectedLabels是否显示未选中项的label
selectedIconTheme选中项 图标的主题 设置
unselectedIconTheme选中项 图标的主题 设置
selectedFontSize选中项 文字大小 设置
unselectedFontSize未选中项 文字大小 设置
selectedLabelStyle选中项 文字样式 设置
unselectedLabelStyle未选中项 文字样式 设置
mouseCursor当鼠标指针进入或悬停在屏幕上时的光标
enableFeedback检测到的手势是否应提供声音和/或触觉反馈

示例

效果一

当选中时图标文字变色,未选中时不显示文字
在这里插入图片描述

	bottomNavigationBar: BottomNavigationBar(selectedItemColor: Colors.red, // 选中时unselectedItemColor: Colors.black, // 未选中currentIndex: _currentIndex,onTap: (value) {setState(() {_currentIndex = value;});},items: const [BottomNavigationBarItem(icon: Icon(Icons.home),label: 'Home',),// ...],),

效果二

显示图标和文字,选中变色
在这里插入图片描述

可设置type: BottomNavigationBarType.fixed固定或设置showUnselectedLabels: true

	bottomNavigationBar: BottomNavigationBar(selectedItemColor: Colors.red, // 选中时unselectedItemColor: Colors.black, // 未选中type: BottomNavigationBarType.fixed,  // 固定currentIndex: _currentIndex,onTap: (value) {setState(() {_currentIndex = value;});},items: const [BottomNavigationBarItem(icon: Icon(Icons.home),label: 'Home',),// ...],),

效果三

显示图标和文字,设置背景
在这里插入图片描述
type: BottomNavigationBarType.fixed必须与backgroundColor配合使用,背景才生效

	bottomNavigationBar: BottomNavigationBar(selectedItemColor: Colors.red, // 选中时unselectedItemColor: Colors.black, // 未选中type: BottomNavigationBarType.fixed,  // 固定backgroundColor: Colors.amber,  // 背景色currentIndex: _currentIndex,onTap: (value) {setState(() {_currentIndex = value;});},items: const [BottomNavigationBarItem(icon: Icon(Icons.home),label: 'Home',),// ...],),

完整示例

class PageWidget extends StatefulWidget {const PageWidget({super.key});State<PageWidget> createState() => _PageWidgetState();
}class _PageWidgetState extends State<PageWidget> {int _currentIndex = 0;Widget _getPage(index) {final List<Widget> _pages = <Widget>[Container(color: Colors.red,child: ElevatedButton(onPressed: () {Navigator.pushNamed(context, '/user-page');},child: const Text('User Page'),)),Container(color: Colors.green,),Container(color: Colors.blue,),Container(color: Colors.yellow,),];return _pages[index];}Widget build(BuildContext context) {return Scaffold(appBar: AppBar(title: const Text('Page Widget'),),bottomNavigationBar: BottomNavigationBar(backgroundColor: Colors.amber,type: BottomNavigationBarType.fixed,// showSelectedLabels: true,// showUnselectedLabels: true,selectedItemColor: Colors.red,unselectedItemColor: Colors.black,currentIndex: _currentIndex,onTap: (value) {setState(() {_currentIndex = value;});},items: const [BottomNavigationBarItem(icon: Icon(Icons.home),label: 'Home',),BottomNavigationBarItem(icon: Icon(Icons.business),label: 'Business',),BottomNavigationBarItem(icon: Icon(Icons.school),label: 'School',),BottomNavigationBarItem(icon: Icon(Icons.account_circle),label: 'User',),],),body: _getPage(_currentIndex),);}
}
http://www.yayakq.cn/news/939161/

相关文章:

  • 武昌网站建设阿凡达网站设计
  • 天水有做网站的地方吗网站申请了如何上传到服务器
  • 网站建站那个好中国建筑招聘官方网站
  • 宁波h5模板建站wordpress主从库
  • 网站制作与建设教程下载软件工程师是做什么的
  • 怎么制作自己的网站网页济南品牌网站建设公司
  • 中山市城乡和住房建设局网站用添加视频到wordpress
  • 企业网站seo价格公众号怎么开通直播
  • 门户网站开发流程加工平台搭设规范要求
  • 深圳外贸网站定制兰州网站制作要多少钱
  • 上海金瑞建设集团网站wordpress 点赞打赏
  • 用dreamwever做网站emlog友情链接代码
  • 建e网站电子商务网站建设程序的开发
  • 营销型网站 平台中国建设银行信用卡电话
  • 济南网站建设方案书炫丽的网站
  • 一站式采购平台官网搜索引擎查询
  • 做网站的上海公司徐州建站公司
  • 哪些网站的简历做的比较好wordpress 关闭工具栏
  • asp网站报错信息网站推广公司推荐
  • 建网站商城平台株洲seo网络优化招聘网
  • 泉州网站建设网络推广大连seo外包公司
  • 网站建设产业pest分析自媒体怎么入门
  • 乡村建设的网站学做点心的网站
  • 锡林浩特网站建设宁波依众网络科技有限公司
  • 重庆夹夹虫网络公司网站建设建设房产网站
  • 邢台中高风险地区查询搜索引擎优化到底是优化什么
  • 赣州网站维护wordpress 数据库查询插件
  • 中文企业展示网站模板网站以前在百度能搜索不到了
  • 开发网站类型百度一下你就知道手机版官网
  • 如何做竞价网站做暧暧视频网站w