feat: 重构 Reminder Notification 系统并更新应用包名
This commit is contained in:
@@ -12,6 +12,8 @@ class MessageActionSheet extends StatelessWidget {
|
||||
final VoidCallback? onDecline;
|
||||
final IconData? icon;
|
||||
final Color? iconColor;
|
||||
final String? primaryActionText;
|
||||
final VoidCallback? onPrimaryAction;
|
||||
|
||||
const MessageActionSheet({
|
||||
super.key,
|
||||
@@ -23,6 +25,8 @@ class MessageActionSheet extends StatelessWidget {
|
||||
this.onDecline,
|
||||
this.icon,
|
||||
this.iconColor,
|
||||
this.primaryActionText,
|
||||
this.onPrimaryAction,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -124,6 +128,17 @@ class MessageActionSheet extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
] else if (primaryActionText != null && onPrimaryAction != null) ...[
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
child: AppButton(
|
||||
text: primaryActionText!,
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
onPrimaryAction?.call();
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
SizedBox(height: MediaQuery.of(context).padding.bottom + 12),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user