feat:更新主题色有些失效的场景

This commit is contained in:
2025-11-11 21:40:07 +08:00
parent 741d6842b8
commit 4960158dcc
5 changed files with 47 additions and 38 deletions

View File

@@ -12,7 +12,7 @@ void showAwesomeDialog({
dialogType: DialogType.noHeader,
animType: AnimType.scale,
body: body,
dialogBackgroundColor: Colors.white,
dialogBackgroundColor: Theme.of(context).colorScheme.surface,
btnOkText: "确认",
btnCancelText: "取消",
btnOkColor: Colors.orange,
@@ -25,7 +25,7 @@ void showAwesomeDialog({
onPressed: onOk,
style: ElevatedButton.styleFrom(
elevation: 0,
backgroundColor: Theme.of(context).primaryColor,
backgroundColor: Theme.of(context).colorScheme.primary,
foregroundColor: Colors.white,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),