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,
|
||||
child: Container(
|
||||
height: 280 * theme.scaling,
|
||||
width: (mediaQuery.mdAndUp ? 80 : 50) * theme.scaling,
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.centerLeft,
|
||||
end: Alignment.centerRight,
|
||||
colors: [
|
||||
theme.colorScheme.background.withAlpha(255),
|
||||
theme.colorScheme.background.withAlpha(0),
|
||||
],
|
||||
),
|
||||
),
|
||||
width: (mediaQuery.mdAndUp ? 60 : 40) * theme.scaling,
|
||||
alignment: Alignment.center,
|
||||
child: IconButton.ghost(
|
||||
size:
|
||||
mediaQuery.mdAndUp ? ButtonSize.normal : ButtonSize.small,
|
||||
child: IconButton.secondary(
|
||||
shape: ButtonShape.circle,
|
||||
size: mediaQuery.mdAndUp
|
||||
? const ButtonSize(1.3)
|
||||
: ButtonSize.normal,
|
||||
icon: const Icon(SpotubeIcons.angleLeft),
|
||||
onPressed: () {
|
||||
controller.animatePrevious(
|
||||
@ -140,21 +132,13 @@ class HomeGenresSection extends HookConsumerWidget {
|
||||
right: 0,
|
||||
child: Container(
|
||||
height: 280 * theme.scaling,
|
||||
width: (mediaQuery.mdAndUp ? 80 : 50) * theme.scaling,
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.centerLeft,
|
||||
end: Alignment.centerRight,
|
||||
colors: [
|
||||
theme.colorScheme.background.withAlpha(0),
|
||||
theme.colorScheme.background.withAlpha(255),
|
||||
],
|
||||
),
|
||||
),
|
||||
width: (mediaQuery.mdAndUp ? 60 : 40) * theme.scaling,
|
||||
alignment: Alignment.center,
|
||||
child: IconButton.ghost(
|
||||
size:
|
||||
mediaQuery.mdAndUp ? ButtonSize.normal : ButtonSize.small,
|
||||
child: IconButton.secondary(
|
||||
shape: ButtonShape.circle,
|
||||
size: mediaQuery.mdAndUp
|
||||
? const ButtonSize(1.3)
|
||||
: ButtonSize.normal,
|
||||
icon: const Icon(SpotubeIcons.angleRight),
|
||||
onPressed: () {
|
||||
controller.animateNext(
|
||||
|
Loading…
Reference in New Issue
Block a user