Skip to content

Commit

Permalink
fix: remove adaptive widgets (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Jul 11, 2023
1 parent c3176f6 commit e4cbdd3
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class RecommendationAttributeDials extends HookWidget {
children: [
Text(context.l10n.min, style: labelStyle),
Expanded(
child: Slider.adaptive(
child: Slider(
value: values.min / base,
min: 0,
max: 1,
Expand All @@ -58,7 +58,7 @@ class RecommendationAttributeDials extends HookWidget {
children: [
Text(context.l10n.target, style: labelStyle),
Expanded(
child: Slider.adaptive(
child: Slider(
value: values.target / base,
min: 0,
max: 1,
Expand All @@ -76,7 +76,7 @@ class RecommendationAttributeDials extends HookWidget {
children: [
Text(context.l10n.max, style: labelStyle),
Expanded(
child: Slider.adaptive(
child: Slider(
value: values.max / base,
min: 0,
max: 1,
Expand Down
2 changes: 1 addition & 1 deletion lib/components/player/player_actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class PlayerActions extends HookConsumerWidget {
const SizedBox(
height: 20,
width: 20,
child: CircularProgressIndicator.adaptive(
child: CircularProgressIndicator(
strokeWidth: 2,
),
)
Expand Down
2 changes: 1 addition & 1 deletion lib/components/player/player_controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class PlayerControls extends HookConsumerWidget {
children: [
Tooltip(
message: context.l10n.slide_to_seek,
child: Slider.adaptive(
child: Slider(
// cannot divide by zero
// there's an edge case for value being bigger
// than total duration. Keeping it resolved
Expand Down
2 changes: 1 addition & 1 deletion lib/components/player/volume_slider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class VolumeSlider extends HookConsumerWidget {
}
}
},
child: Slider.adaptive(
child: Slider(
min: 0,
max: 1,
value: volume,
Expand Down
2 changes: 1 addition & 1 deletion lib/components/shared/track_table/track_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class TrackTile extends HookConsumerWidget {
else if (constrains.smAndDown)
const SizedBox(width: 16),
if (onChanged != null)
Checkbox.adaptive(
Checkbox(
value: selected,
onChanged: onChanged,
),
Expand Down
2 changes: 1 addition & 1 deletion lib/components/shared/track_table/tracks_table_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class TracksTableView extends HookConsumerWidget {
);
},
child: showCheck.value
? Checkbox.adaptive(
? Checkbox(
value: selected.value.length == sortedTracks.length,
onChanged: (checked) {
if (!showCheck.value) showCheck.value = true;
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/library/playlist_generate/playlist_generate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class PlaylistGeneratorPage extends HookConsumerWidget {
),
),
Expanded(
child: Slider.adaptive(
child: Slider(
value: value.toDouble(),
min: 10,
max: 100,
Expand Down

0 comments on commit e4cbdd3

Please sign in to comment.