fix: remove adaptive widgets (#520)

This commit is contained in:
Kingkor Roy Tirtho 2023-07-11 22:13:22 +06:00
parent c3176f6b47
commit e4cbdd3747
7 changed files with 9 additions and 9 deletions

View File

@ -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.adaptive( child: Slider(
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.adaptive( child: Slider(
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.adaptive( child: Slider(
value: values.max / base, value: values.max / base,
min: 0, min: 0,
max: 1, max: 1,

View File

@ -128,7 +128,7 @@ class PlayerActions extends HookConsumerWidget {
const SizedBox( const SizedBox(
height: 20, height: 20,
width: 20, width: 20,
child: CircularProgressIndicator.adaptive( child: CircularProgressIndicator(
strokeWidth: 2, strokeWidth: 2,
), ),
) )

View File

@ -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.adaptive( child: Slider(
// 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

View File

@ -29,7 +29,7 @@ class VolumeSlider extends HookConsumerWidget {
} }
} }
}, },
child: Slider.adaptive( child: Slider(
min: 0, min: 0,
max: 1, max: 1,
value: volume, value: volume,

View File

@ -92,7 +92,7 @@ class TrackTile extends HookConsumerWidget {
else if (constrains.smAndDown) else if (constrains.smAndDown)
const SizedBox(width: 16), const SizedBox(width: 16),
if (onChanged != null) if (onChanged != null)
Checkbox.adaptive( Checkbox(
value: selected, value: selected,
onChanged: onChanged, onChanged: onChanged,
), ),

View File

@ -115,7 +115,7 @@ class TracksTableView extends HookConsumerWidget {
); );
}, },
child: showCheck.value child: showCheck.value
? Checkbox.adaptive( ? Checkbox(
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;

View File

@ -285,7 +285,7 @@ class PlaylistGeneratorPage extends HookConsumerWidget {
), ),
), ),
Expanded( Expanded(
child: Slider.adaptive( child: Slider(
value: value.toDouble(), value: value.toDouble(),
min: 10, min: 10,
max: 100, max: 100,