📜  webview颤振避免重新加载 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:32.356000             🧑  作者: Mango

代码示例1
class ListWidget extends StatefulWidget {

  @override
  _ListWidgetState createState() => _ListWidgetState();

}

class _ListWidgetState extends State with 
                  AutomaticKeepAliveClientMixin{ // ** here

  @override
  Widget build(BuildContext context) {
    return Container();
  }

  @override
  bool get wantKeepAlive => true; // ** and here
}