优化bug
This commit is contained in:
@@ -92,12 +92,9 @@ class _MyEditPageState extends State<MyEditPage> {
|
|||||||
return Center(child: CircularProgressIndicator());
|
return Center(child: CircularProgressIndicator());
|
||||||
}
|
}
|
||||||
return PopScope(
|
return PopScope(
|
||||||
canPop: false,
|
canPop: selectionState.userProfile.qStatus == 1,
|
||||||
onPopInvokedWithResult: (didPop, __) async {
|
onPopInvokedWithResult: (didPop, __) async {
|
||||||
if (didPop) return;
|
if (didPop) return;
|
||||||
if (selectionState.userProfile.qStatus == 1) {
|
|
||||||
context.pop();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
body: AppBackend(
|
body: AppBackend(
|
||||||
|
|||||||
Reference in New Issue
Block a user