mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix(track_tile): track action popup not showing on narrow screens
This commit is contained in:
parent
0e43504e18
commit
0c54f2dcd4
@ -35,43 +35,12 @@ class Action extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (backgroundColor == null) {
|
|
||||||
return PlatformTextButton(
|
|
||||||
style: TextButton.styleFrom(
|
|
||||||
foregroundColor:
|
|
||||||
backgroundColor ?? PlatformTextTheme.of(context).body?.color,
|
|
||||||
backgroundColor: backgroundColor,
|
|
||||||
padding: const EdgeInsets.all(20),
|
|
||||||
),
|
|
||||||
onPressed: onPressed,
|
|
||||||
child: Row(
|
|
||||||
children: [
|
|
||||||
icon,
|
|
||||||
const SizedBox(width: 10),
|
|
||||||
text,
|
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return Padding(
|
return PlatformListTile(
|
||||||
padding: const EdgeInsets.all(8.0),
|
tileColor: backgroundColor,
|
||||||
child: PlatformFilledButton(
|
onTap: onPressed,
|
||||||
style: TextButton.styleFrom(
|
leading: icon,
|
||||||
foregroundColor:
|
title: text,
|
||||||
backgroundColor ?? PlatformTextTheme.of(context).body?.color,
|
|
||||||
backgroundColor: backgroundColor,
|
|
||||||
padding: const EdgeInsets.all(20),
|
|
||||||
),
|
|
||||||
onPressed: onPressed,
|
|
||||||
child: Row(
|
|
||||||
children: [
|
|
||||||
icon,
|
|
||||||
const SizedBox(width: 10),
|
|
||||||
text,
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -103,7 +72,7 @@ class AdaptiveActions extends HookWidget {
|
|||||||
children: actions
|
children: actions
|
||||||
.map(
|
.map(
|
||||||
(action) => SizedBox(
|
(action) => SizedBox(
|
||||||
width: 250,
|
width: 200,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(child: action),
|
Expanded(child: action),
|
||||||
|
Loading…
Reference in New Issue
Block a user