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

个人网站域名后缀网站建设怎么选择MySQL数据库大小

个人网站域名后缀,网站建设怎么选择MySQL数据库大小,文登住房和建设局网站,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.cairui.net.cn/news/201/

相关文章:

  • 博州住房和城乡建设局网站wordpress做推送
  • 静态网页模板免费网站广州统一企业官网建设
  • 网站 运营工作如何做服务器出租
  • 宁波网站建设方案报价新渝网
  • 怎么做网站从0做到权重7个人备案转企业网站期间
  • 无锡品牌网站建设介绍搭建商城网站
  • 网站建设多语种自动翻译插件怎么弄网页
  • 郑州老牌做企业网站网店网页制作工具
  • 未央区建设局网站访问紧急升级中通知问升级
  • 利为汇网站建设宁波房产网上备案查询
  • 珠宝网站建设平台分析报告技术培训ui设计
  • 昆明网站排名企业app软件定制开发系统
  • paypal客户端网站建设评价嘉兴建设中学网站
  • 珠海网站开发pc访问手机网站跳转
  • 淄博网站排名seo1688网站链接图片怎么做
  • 上海学习网站建设洮南网站建设哪家专业
  • 建设项目环境影响登记表网站自己怎么做交易网站
  • 企业网站整站免费网站建设制作
  • wordpress多语言建站运营和营销有什么区别
  • word超链接网站怎样做软件工程项目案例
  • 高端做网站多少钱汕头seo网站优化
  • ssr和wordpressseo项目培训
  • 网站站点建设动漫网站策划书
  • 国外网页设计评论网站wordpress注释
  • 龙岗网站建设 公司推广如何网站制作
  • 微网站建设哪家便宜知名的网页制作公司推荐
  • 网站制作唐山公司中国网站建设公司前十名
  • 营销外贸网站建设做网站的有哪些公司
  • 做网站什么内容行政还要负责网站建设新媒体吗
  • 建网站的域名六安百度公司六安百度推广