🐛 Fix post item color inconsistent with other card when set opacity of the card bg
This commit is contained in:
@@ -99,6 +99,8 @@ class PostActionableItem extends HookConsumerWidget {
|
|||||||
[user],
|
[user],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
final config = ref.watch(appSettingsNotifierProvider);
|
||||||
|
|
||||||
final widgetItem = InkWell(
|
final widgetItem = InkWell(
|
||||||
borderRadius:
|
borderRadius:
|
||||||
borderRadius != null
|
borderRadius != null
|
||||||
@@ -334,7 +336,10 @@ class PostActionableItem extends HookConsumerWidget {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Material(
|
child: Material(
|
||||||
color: Theme.of(context).cardTheme.color,
|
color:
|
||||||
|
config.cardTransparency < 1
|
||||||
|
? Colors.transparent
|
||||||
|
: Theme.of(context).cardTheme.color,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
borderRadius != null
|
borderRadius != null
|
||||||
? BorderRadius.all(Radius.circular(borderRadius!))
|
? BorderRadius.all(Radius.circular(borderRadius!))
|
||||||
|
|||||||
Reference in New Issue
Block a user