fix: 修复 release 构建失败(theme 未定义 / _refreshBackground 残留)
This commit is contained in:
6 files changed
+48
-11
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
class UserAgreementDialog extends StatefulWidget {
|
||||
final VoidCallback onAgree;
|
||||
@@ -15,8 +14,8 @@ class _UserAgreementDialogState extends State<UserAgreementDialog> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return WillPopScope(
|
||||
onWillPop: () async => false,
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
child: Dialog(
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
|
||||
insetPadding: const EdgeInsets.symmetric(horizontal: 20),
|
||||
|
||||
Reference in new issue
Block a user