mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
fix: Improve strange padding
This commit is contained in:
parent
188f947ad7
commit
09109d8742
1 changed files with 11 additions and 12 deletions
|
|
@ -39,19 +39,18 @@ Future<void> showBottomSheetPill({
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
if (AdaptiveLayout.inputDeviceOf(context) == InputDevice.touch)
|
||||||
padding: const EdgeInsets.symmetric(vertical: 16),
|
Padding(
|
||||||
child: Container(
|
padding: const EdgeInsets.symmetric(vertical: 16),
|
||||||
height: 8,
|
child: Container(
|
||||||
width: 35,
|
height: 8,
|
||||||
decoration: BoxDecoration(
|
width: 35,
|
||||||
color: AdaptiveLayout.inputDeviceOf(context) == InputDevice.touch
|
decoration: BoxDecoration(
|
||||||
? Theme.of(context).colorScheme.onSurface
|
color: Theme.of(context).colorScheme.onSurface,
|
||||||
: Colors.transparent,
|
borderRadius: FladderTheme.largeShape.borderRadius,
|
||||||
borderRadius: FladderTheme.largeShape.borderRadius,
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
Flexible(
|
Flexible(
|
||||||
child: ListView(
|
child: ListView(
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
|
|
@ -59,7 +58,7 @@ Future<void> showBottomSheetPill({
|
||||||
children: [
|
children: [
|
||||||
if (item != null) ...{
|
if (item != null) ...{
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
padding: const EdgeInsets.symmetric(horizontal: 12).copyWith(top: 8),
|
||||||
child: ItemBottomSheetPreview(item: item),
|
child: ItemBottomSheetPreview(item: item),
|
||||||
),
|
),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue