🐛 Fix post item color inconsistent with other card when set opacity of the card bg

This commit is contained in:
2025-10-27 01:49:16 +08:00
parent 239d6750ff
commit 3c2c51bfaf

View File

@@ -99,6 +99,8 @@ class PostActionableItem extends HookConsumerWidget {
[user],
);
final config = ref.watch(appSettingsNotifierProvider);
final widgetItem = InkWell(
borderRadius:
borderRadius != null
@@ -334,7 +336,10 @@ class PostActionableItem extends HookConsumerWidget {
);
},
child: Material(
color: Theme.of(context).cardTheme.color,
color:
config.cardTransparency < 1
? Colors.transparent
: Theme.of(context).cardTheme.color,
borderRadius:
borderRadius != null
? BorderRadius.all(Radius.circular(borderRadius!))