当我尝试更改 TextStyle 时,它显示“无法将参数类型‘文本’分配给参数类型‘字符串’。” 我怎样才能改变它?
- 我正在使用convex_bottom_bar 3.0.0
- 如果我弄错了,对不起我的英语
bottomNavigationBar: ConvexAppBar(
items: [
TabItem(icon: Icons.touch_app_rounded, title: Text("Tab1",style: TextStyle(fontFamily: "iransans"),)),
TabItem(icon: Icons.store_rounded, title: 'Mağaza'),
TabItem(icon: Icons.developer_board_rounded, title: 'Simülasyon'),
TabItem(icon: Icons.timeline_rounded, title: 'İstatistik'),
TabItem(icon: Icons.view_week_rounded, title: 'Diğer'),
],
gradient: LinearGradient(
colors: [Color(0xFFEC407A),
Color(0XFF1A237E)],
begin: Alignment.bottomCenter,
stops: [
0.0,0.4
],
end: Alignment.topCenter,
),
height: 70,
backgroundColor: Color(0xFFEC407A),
//backgroundColor: Colors.white,
activeColor: Colors.white,
initialActiveIndex: 0,//optional, default as 0
onTap: (int i) => print('click index=$i'),
),