use AppLifecycleState in StatelessWidget

前端 未结 0 1830
眼角桃花
眼角桃花 2021-01-13 19:26

in StatefulWidget when need to work with AppLifecycleState we work with WidgetsBindingObserver

  @override
initState() {
super.initState();
WidgetsBinding.ins         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题