flutter - 按下时删除Tabview的背景矩形白色区域
问题描述
当我单击选项卡视图中的选项卡时,出现矩形白色背景闪烁。如何删除这个?
选项卡视图
TabBar(
tabs: tabs,
controller: _tabController,
isScrollable: true,
indicatorSize: TabBarIndicatorSize.tab,
labelPadding: EdgeInsets.symmetric(horizontal: 25.0),
indicatorPadding: EdgeInsets.symmetric(horizontal: 10.0),
overlayColor:
MaterialStateProperty.all<Color>(Theme.of(context).primaryColor),
indicator: BoxDecoration(
color: Theme.of(context).primaryColorLight,
borderRadius: BorderRadius.circular(20.0),
),
unselectedLabelStyle: GoogleFonts.poppins(
fontSize: 15.0,
fontWeight: FontWeight.w600,
letterSpacing: 0.3,
),
unselectedLabelColor: Theme.of(context).highlightColor,
labelColor: Colors.white,
labelStyle: GoogleFonts.poppins(
fontSize: 15.0,
fontWeight: FontWeight.w600,
letterSpacing: 0.3,
),
)
解决方案
推荐阅读
- macos - ios模拟器未在oracle虚拟盒下运行的macos catalina中启动-反应本机博览会项目
- c# - 如何在 EF Core 中自动映射 TPH 派生类?
- java - 在java中解析excel文件
- ios - 如何在导航栏中添加图像和按钮设计?
- java - 我可以从 MediaRecorder 写入我的 android / linux 管道吗?
- python - pyenv 配置:错误:C 编译器无法创建可执行文件
- ansible - 过滤 ansible JSON 输出
- kinect - 为 Xbox 360 kinect 开发应用程序的语言
- go - 如何使用字符串作为参数从 Go 调用 Rust 函数?
- python - 将二维点云双线性加权到网格上的最快方法