The icons and texts on my BottomNavigationBar
and TabBar
are blank when the app is started, both in the simulator and on a real phone. When you touch any of the "hidden" tab icons or texts, they work well and all of them are shown immediately. Or if I change to another whole screen widget and come back, all of them will be shown, too. If I restart the app using "hot reload" in the simulator, all are shown too.
I'm not sure when this bug occurs because I almost didn't close my app in the simulator and uses "hot reload" to debug for several days.
Can't anyone help me please. I don't even know where to start to locate the problem. The original codes are too complex and I can't make this issue reappear in a new project with BottomeNavigationBar
or TabBar
. Please give me a direction that I can work in or provide more detailed information. Thanks!
=================update=======================
While testing, I noticed this warning, and found a related discussion here: https://github.com/flutter/flutter/issues/72632
D/skia (15157): WARNING: failed to attach a stencil buffer. Rendering will be skipped.
==============update==================
Problem is solved by upgrading Flutter to 1.26.0-2.0.pre.363 from 1.26.0-2.0.pre.179