Merge pull request #144 from cogwheel0/update-drawer-item-styling
update-drawer-item-styling
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user