问题描述
我正在使用Flutter应用程序中的底部导航栏。当我转到第4个索引并更改方向时,该页面将变为空白,而当我更改选项卡并移至第4个时,它将正常工作。对于底部导航栏,我正在使用`
引发的错误为E/eglCodecCommon( 6748): goldfish_dma_create_region: could not obtain fd to device! fd -1 errno=2
bottomNavigationBar: Container(
decoration: BoxDecoration(color: Colors.white,boxShadow: [
BoxShadow(blurRadius: 20,color: Colors.black.withOpacity(.1))
]),child: SafeArea(
child: Padding(
padding:
const EdgeInsets.symmetric(horizontal: 15.0,vertical: 8),child: GNav(
gap: 8,activeColor: Colors.white,iconSize: 24,padding: EdgeInsets.symmetric(horizontal: 20,vertical: 5),duration: Duration(milliseconds: 200),tabBackgroundColor: UniversalVariables.mainCol,tabs: [
GButton(
icon: LIST_ICON,iconColor: UniversalVariables.mainCol,text: 'Master List',backgroundGradient: UniversalVariables.navBarGradient,),GButton(
icon: PERSONAL_ICON,text: 'Personal List',GButton(
icon: CHAT_ICON,text: 'Chat',GButton(
icon: ACCOUNT_ICON,text: 'Profile',],selectedIndex: _currentIndex,onTabChange: (index) {
setState(() {
_currentIndex = index;
_pageController.jumpToPage(index);
});
}),```
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)