fix: 修复 release 构建失败(theme 未定义 / _refreshBackground 残留)

This commit is contained in:
venti1112 committed 2026-10-18 13:02:42 +08:00
1 parent 6302e897ba
commit 21925929e1
6 files changed
+48 -11

No files matched your search

+2 -3
View File
@@ -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),