Merge pull request #144 from cogwheel0/update-drawer-item-styling

update-drawer-item-styling
This commit is contained in:
cogwheel
2025-11-12 22:14:28 +05:30
committed by GitHub

View File

@@ -1771,13 +1771,14 @@ class _ConversationTile extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = context.conduitTheme;
final borderRadius = BorderRadius.circular(AppBorderRadius.small);
const BorderRadius borderRadius = BorderRadius.zero;
final Color background = selected
? theme.buttonPrimary.withValues(alpha: 0.1)
: theme.surfaceContainer;
: Colors.transparent;
final Color borderColor = selected
? theme.buttonPrimary.withValues(alpha: 0.5)
: theme.surfaceContainerHighest.withValues(alpha: 0.40);
: Colors.transparent;
final List<BoxShadow> shadow = const [];
Color? overlayForStates(Set<WidgetState> states) {
@@ -1808,7 +1809,18 @@ class _ConversationTile extends StatelessWidget {
decoration: BoxDecoration(
color: background,
borderRadius: borderRadius,
border: Border.all(color: borderColor, width: BorderWidth.thin),
border: selected
? Border(
top: BorderSide(
color: borderColor,
width: BorderWidth.thin,
),
bottom: BorderSide(
color: borderColor,
width: BorderWidth.thin,
),
)
: null,
boxShadow: shadow,
),
child: ConstrainedBox(