Flutter中提供了PopScope
组件替代了原来的WillPopScope
组件,PopScope
组件的作用就是管理系统的返回操作: Manages system back gestures.
,该组件提供给来三个参数:
const PopScope({
super.key,
required this.child,//布局Widget
this.canPop = true,
this
Flutter中提供了PopScope
组件替代了原来的WillPopScope
组件,PopScope
组件的作用就是管理系统的返回操作: Manages system back gestures.
,该组件提供给来三个参数:
const PopScope({
super.key,
required this.child,//布局Widget
this.canPop = true,
this