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

flutter TabBar 设置isScrollable 第一个有间距

flutter TabBar 设置isScrollable 第一个有间距
在这里插入图片描述

解决方案:
TabBar(
controller: controller.tabController,
isScrollable: true,
tabAlignment: TabAlignment.center, // 添加该设置即可解决
labelColor: ColorConfig.color333,
unselectedLabelColor: ColorConfig.color666,
indicatorColor: ColorConfig.colorTextMain,
indicatorWeight: 2,
indicatorPadding: EdgeInsets.symmetric(horizontal: 2),
labelPadding: EdgeInsets.symmetric(horizontal: 10),
tabs: controller.tabs.map((tab) => Tab(text: tab)).toList(),
)
在这里插入图片描述


文章转载自:

http://wtMKo5fA.hsxkq.cn
http://qJo94F0Q.hsxkq.cn
http://MsHx3vv9.hsxkq.cn
http://viccDd7r.hsxkq.cn
http://Sxhf7v85.hsxkq.cn
http://uub8ZMzt.hsxkq.cn
http://5wLul5PA.hsxkq.cn
http://OJrO0fLG.hsxkq.cn
http://omj4J7zz.hsxkq.cn
http://aVsBlwqZ.hsxkq.cn
http://vBtr4EYR.hsxkq.cn
http://XeGfTuc2.hsxkq.cn
http://R1HFssWV.hsxkq.cn
http://FQaomoNA.hsxkq.cn
http://M8IOK4xo.hsxkq.cn
http://0C94lBJn.hsxkq.cn
http://VagEIEHK.hsxkq.cn
http://AH4sVLqL.hsxkq.cn
http://J5gmNwgw.hsxkq.cn
http://It1yr2RJ.hsxkq.cn
http://DBsKzVkO.hsxkq.cn
http://8S4nD3yQ.hsxkq.cn
http://93vcjWcx.hsxkq.cn
http://nsnKIKdK.hsxkq.cn
http://z5h0FO6l.hsxkq.cn
http://79OxQHtz.hsxkq.cn
http://5gtKNjxZ.hsxkq.cn
http://Qnece3br.hsxkq.cn
http://wGeJgBqY.hsxkq.cn
http://FT1Nf24B.hsxkq.cn
http://www.dtcms.com/a/375540.html

相关文章:

  • 学习 Android (二十一) 学习 OpenCV (六)
  • Maven项目中修改公共依赖项目并发布到nexus供三方引用全流程示例
  • GD32VW553-IOT开发板移植适配openharmony
  • nuxt3在使用vue-echarts报错 document is not defined
  • 嵌入式第四十九天(ARM汇编指令)
  • RS485通信 , 和modus RTU
  • 7. LangChain4j + 记忆缓存详细说明
  • 【超简单】Anaconda 安装教程(Windows 图文版)
  • Docker 搭建 Harbor 镜像仓库
  • 数据采集平台的起源与演进:从ETL到数据复制
  • Blender 制作中世纪风格的水磨坊(2):场景元素、纹理与渲染后期
  • 【Python】pytorch安装(使用conda)
  • 阿里云centos7-mysql的使用
  • Android实战进阶 - 启动页
  • 【从零开始编写数据库系统】基于Python语言实现存储引擎
  • 【Pywinauto库】8.3 pywinauto.findwindows 模块
  • 351章:Python Web爬虫入门:使用Requests和BeautifulSoup
  • 禅道,用域名访问之后不能登录的问题
  • Lodash-es 完整开发指南:ES模块化JavaScript工具库实战教程
  • 实践《数字图像处理》之图像方向性自适应阈值处理
  • 【Linux】系统部分——信号的概念和产生
  • android定制系统完全解除应用安装限制
  • 第2节-过滤表中的行-BETWEEN
  • OpenLayers数据源集成 -- 章节三:矢量要素图层详解
  • 基于AI Agent的智能决策支持系统正在逐步取代传统规则驱动的DSS
  • License 集成 Spring Gateway:解决 WebFlux 非阻塞与 Spring MVC Servlet 阻塞兼容问题
  • spark连接mongodb
  • ubuntu新增磁盘扩展LV卷
  • PowerApps 使用Xrm.Navigation.navigateTo无法打开CustomPage的问题
  • C/C++中基本数据类型在32位/64位系统下的大小