标签: convex-bottom-bar

Flutter ConvexAppBar如何更改文本样式?

当我尝试更改 TextStyle 时,它​​显示“参数类型“文本”无法分配给参数类型“字符串”。” 我怎样才能改变它?

\n
    \n
  1. 我正在使用凸面底部栏 3.0.0
  2. \n
  3. 如果我犯了错误,请原谅我的英语
  4. \n
\n
 bottomNavigationBar: ConvexAppBar(\n          items: [\n            TabItem(icon: Icons.touch_app_rounded, title: Text("Tab1",style: TextStyle(fontFamily: "iransans"),)),\n            TabItem(icon: Icons.store_rounded, title: 'Ma\xc4\x9faza'),\n            TabItem(icon: Icons.developer_board_rounded, title: 'Sim\xc3\xbclasyon'),\n            TabItem(icon: Icons.timeline_rounded, title: '\xc4\xb0statistik'),\n            TabItem(icon: Icons.view_week_rounded, title: 'Di\xc4\x9fer'),\n          ],\n          gradient: LinearGradient(\n            colors: [Color(0xFFEC407A),\n              Color(0XFF1A237E)],\n            begin: Alignment.bottomCenter,\n            stops: [\n              0.0,0.4\n            ],\n            end: Alignment.topCenter,\n          ),\n          height: 70,\n          backgroundColor: Color(0xFFEC407A),\n          //backgroundColor: Colors.white,\n          activeColor: Colors.white,\n          initialActiveIndex: 0,//optional, default as 0\n          onTap: (int i) => print('click index=$i'),\n        ),\n
Run Code Online (Sandbox Code Playgroud)\n

flutter flutter-bottomnavigation convex-bottom-bar

2
推荐指数
1
解决办法
1461
查看次数