mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
chore: use angle
This commit is contained in:
parent
6e357230ac
commit
082f711018
@ -111,21 +111,13 @@ class HomeGenresSection extends HookConsumerWidget {
|
|||||||
left: 0,
|
left: 0,
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 280 * theme.scaling,
|
height: 280 * theme.scaling,
|
||||||
width: (mediaQuery.mdAndUp ? 80 : 50) * theme.scaling,
|
width: (mediaQuery.mdAndUp ? 60 : 40) * theme.scaling,
|
||||||
decoration: BoxDecoration(
|
|
||||||
gradient: LinearGradient(
|
|
||||||
begin: Alignment.centerLeft,
|
|
||||||
end: Alignment.centerRight,
|
|
||||||
colors: [
|
|
||||||
theme.colorScheme.background.withAlpha(255),
|
|
||||||
theme.colorScheme.background.withAlpha(0),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: IconButton.ghost(
|
child: IconButton.secondary(
|
||||||
size:
|
shape: ButtonShape.circle,
|
||||||
mediaQuery.mdAndUp ? ButtonSize.normal : ButtonSize.small,
|
size: mediaQuery.mdAndUp
|
||||||
|
? const ButtonSize(1.3)
|
||||||
|
: ButtonSize.normal,
|
||||||
icon: const Icon(SpotubeIcons.angleLeft),
|
icon: const Icon(SpotubeIcons.angleLeft),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
controller.animatePrevious(
|
controller.animatePrevious(
|
||||||
@ -140,21 +132,13 @@ class HomeGenresSection extends HookConsumerWidget {
|
|||||||
right: 0,
|
right: 0,
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 280 * theme.scaling,
|
height: 280 * theme.scaling,
|
||||||
width: (mediaQuery.mdAndUp ? 80 : 50) * theme.scaling,
|
width: (mediaQuery.mdAndUp ? 60 : 40) * theme.scaling,
|
||||||
decoration: BoxDecoration(
|
|
||||||
gradient: LinearGradient(
|
|
||||||
begin: Alignment.centerLeft,
|
|
||||||
end: Alignment.centerRight,
|
|
||||||
colors: [
|
|
||||||
theme.colorScheme.background.withAlpha(0),
|
|
||||||
theme.colorScheme.background.withAlpha(255),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: IconButton.ghost(
|
child: IconButton.secondary(
|
||||||
size:
|
shape: ButtonShape.circle,
|
||||||
mediaQuery.mdAndUp ? ButtonSize.normal : ButtonSize.small,
|
size: mediaQuery.mdAndUp
|
||||||
|
? const ButtonSize(1.3)
|
||||||
|
: ButtonSize.normal,
|
||||||
icon: const Icon(SpotubeIcons.angleRight),
|
icon: const Icon(SpotubeIcons.angleRight),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
controller.animateNext(
|
controller.animateNext(
|
||||||
|
Loading…
Reference in New Issue
Block a user