Seamless push notification activation

This commit is contained in:
2024-06-07 19:49:14 +08:00
parent 3fad6e6b51
commit 879bd4e4db
4 changed files with 17 additions and 32 deletions

View File

@ -6,7 +6,6 @@ import 'package:solian/router.dart';
import 'package:solian/screens/auth/signin.dart';
import 'package:solian/screens/auth/signup.dart';
import 'package:solian/widgets/account/account_heading.dart';
import 'package:solian/widgets/account/push_notify_register_dialog.dart';
class AccountScreen extends StatefulWidget {
const AccountScreen({super.key});
@ -102,31 +101,6 @@ class _AccountScreenState extends State<AccountScreen> {
setState(() {});
},
),
const Divider(thickness: 0.3, height: 0.3)
.paddingSymmetric(vertical: 16),
Wrap(
spacing: 4,
children: [
InkWell(
child: Text(
'pushNotifyRegisterAction'.tr,
style: TextStyle(
color: Theme.of(context)
.colorScheme
.onSurface
.withOpacity(0.85),
),
),
onTap: () {
showDialog(
context: context,
builder: (context) =>
const PushNotifyRegisterDialog(),
);
},
)
],
)
],
);
},