mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
feat: adaptive controllers
This commit is contained in:
parent
617aa89409
commit
c8b7de0879
@ -40,7 +40,7 @@ class RecommendationAttributeDials extends HookWidget {
|
|||||||
children: [
|
children: [
|
||||||
Text(context.l10n.min, style: labelStyle),
|
Text(context.l10n.min, style: labelStyle),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Slider(
|
child: Slider.adaptive(
|
||||||
value: values.min / base,
|
value: values.min / base,
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1,
|
max: 1,
|
||||||
@ -58,7 +58,7 @@ class RecommendationAttributeDials extends HookWidget {
|
|||||||
children: [
|
children: [
|
||||||
Text(context.l10n.target, style: labelStyle),
|
Text(context.l10n.target, style: labelStyle),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Slider(
|
child: Slider.adaptive(
|
||||||
value: values.target / base,
|
value: values.target / base,
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1,
|
max: 1,
|
||||||
@ -76,7 +76,7 @@ class RecommendationAttributeDials extends HookWidget {
|
|||||||
children: [
|
children: [
|
||||||
Text(context.l10n.max, style: labelStyle),
|
Text(context.l10n.max, style: labelStyle),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Slider(
|
child: Slider.adaptive(
|
||||||
value: values.max / base,
|
value: values.max / base,
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1,
|
max: 1,
|
||||||
|
@ -141,7 +141,7 @@ class PlayerControls extends HookConsumerWidget {
|
|||||||
children: [
|
children: [
|
||||||
Tooltip(
|
Tooltip(
|
||||||
message: context.l10n.slide_to_seek,
|
message: context.l10n.slide_to_seek,
|
||||||
child: Slider(
|
child: Slider.adaptive(
|
||||||
// cannot divide by zero
|
// cannot divide by zero
|
||||||
// there's an edge case for value being bigger
|
// there's an edge case for value being bigger
|
||||||
// than total duration. Keeping it resolved
|
// than total duration. Keeping it resolved
|
||||||
|
@ -157,7 +157,7 @@ class BottomPlayer extends HookConsumerWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Slider(
|
child: Slider.adaptive(
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1,
|
max: 1,
|
||||||
value: volume,
|
value: volume,
|
||||||
|
@ -75,7 +75,7 @@ class TracksTableView extends HookConsumerWidget {
|
|||||||
if (heading != null) heading!,
|
if (heading != null) heading!,
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Checkbox(
|
Checkbox.adaptive(
|
||||||
value: selected.value.length == sortedTracks.length,
|
value: selected.value.length == sortedTracks.length,
|
||||||
onChanged: (checked) {
|
onChanged: (checked) {
|
||||||
if (!showCheck.value) showCheck.value = true;
|
if (!showCheck.value) showCheck.value = true;
|
||||||
|
@ -281,7 +281,7 @@ class PlaylistGeneratorPage extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Slider(
|
child: Slider.adaptive(
|
||||||
value: value.toDouble(),
|
value: value.toDouble(),
|
||||||
min: 10,
|
min: 10,
|
||||||
max: 100,
|
max: 100,
|
||||||
|
Loading…
Reference in New Issue
Block a user