mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
Make SegmentedButtons responsive to visual density
This commit is contained in:
parent
c8581e65aa
commit
41efde80b2
|
@ -17,7 +17,7 @@ class SegmentedButtons extends StatelessWidget {
|
||||||
builder: (final context, final constraints) => ToggleButtons(
|
builder: (final context, final constraints) => ToggleButtons(
|
||||||
constraints: BoxConstraints(
|
constraints: BoxConstraints(
|
||||||
minWidth: (constraints.maxWidth - 8) / 3,
|
minWidth: (constraints.maxWidth - 8) / 3,
|
||||||
minHeight: 40,
|
minHeight: 40 + Theme.of(context).visualDensity.vertical * 4,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(48),
|
borderRadius: BorderRadius.circular(48),
|
||||||
borderColor: Theme.of(context).colorScheme.outline,
|
borderColor: Theme.of(context).colorScheme.outline,
|
||||||
|
|
Loading…
Reference in a new issue