更改为方向抖动时页面变为空白

问题描述

我正在使用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 (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...