Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
切换底部导航页面后,我遇到了一个非常烦人的谷歌地图颤振重建问题。我已经坚持了最后一次缩放和相机位置,但是每次我进入地图页面时,小部件都会自行重建。如何预防?
采用
AutomaticKeepAliveClientMixin
例如,
class _ExampleClass extends State<ExampleState> with AutomaticKeepAliveClientMixin<ExampleState> { @override bool get wantKeepAlive => true;