最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Flutter fl_chart material3 is adding a background to the bar chart label. How to remove? - Stack Overflow

programmeradmin10浏览0评论

when i upgraded to material 3, it added a background to the barchart label. Any way to get rid of this without turning off material3?

background on label

i'm hoping to find a solution without disabling material 3. I want to display the number without a background.

here's my bartouchdata. setting to transparent doesn't work.

BarTouchData get barTouchData => BarTouchData( enabled: false, touchTooltipData: BarTouchTooltipData( tooltipPadding: EdgeInsets.zero, tooltipMargin: 8, getTooltipItem: ( BarChartGroupData group, int groupIndex, BarChartRodData rod, int rodIndex, ) { return BarTooltipItem( rod.toY.round().toString(), const TextStyle( color: Colors.yellow, backgroundColor: Colors.transparent, fontWeight: FontWeight.bold, ), ); }, ), );

Thanks in advance.

发布评论

评论列表(0)

  1. 暂无评论