Skip to content

Commit

Permalink
chore: fix dep problem and code style
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Jun 28, 2023
1 parent df79638 commit 699b236
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 25 deletions.
1 change: 0 additions & 1 deletion lib/components/player/player_track_details.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:spotify/spotify.dart';

Expand Down
1 change: 0 additions & 1 deletion lib/components/shared/shimmers/shimmer_track_tile.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:spotube/collections/spotube_icons.dart';

import 'package:spotube/extensions/theme.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/use_custom_status_bar_color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void useCustomStatusBarColor(
bool noSetBGColor = false,
}) {
final context = useContext();
final backgroundColor = Theme.of(context).scaffoldBackgroundColor!;
final backgroundColor = Theme.of(context).scaffoldBackgroundColor;
resetStatusbar() => SystemChrome.setSystemUIOverlayStyle(
SystemUiOverlayStyle(
statusBarColor: backgroundColor, // status bar color
Expand Down
4 changes: 0 additions & 4 deletions lib/pages/home/genres.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:collection/collection.dart';
import 'package:fuzzywuzzy/fuzzywuzzy.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:spotify/spotify.dart';
import 'package:spotube/collections/spotube_icons.dart';
import 'package:spotube/components/genre/category_card.dart';
import 'package:spotube/components/shared/compact_search.dart';
import 'package:spotube/components/shared/expandable_search/expandable_search.dart';
import 'package:spotube/components/shared/shimmers/shimmer_categories.dart';
import 'package:spotube/components/shared/waypoint.dart';
import 'package:spotube/extensions/context.dart';

import 'package:spotube/provider/user_preferences_provider.dart';
import 'package:spotube/services/queries/queries.dart';
Expand All @@ -21,7 +18,6 @@ class GenrePage extends HookConsumerWidget {

@override
Widget build(BuildContext context, ref) {
final theme = Theme.of(context);
final scrollController = useScrollController();
final recommendationMarket = ref.watch(
userPreferencesProvider.select((s) => s.recommendationMarket),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/lyrics/plain_lyrics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class PlainLyrics extends HookConsumerWidget {
: 2,
),
child: Text(
lyrics == null && playlist?.activeTrack == null
lyrics == null && playlist.activeTrack == null
? "No Track being played currently"
: lyrics ?? "",
),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/player/player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class PlayerView extends HookConsumerWidget {
.7,
),
builder: (context) {
return PlayerQueue(
return const PlayerQueue(
floating: false);
},
);
Expand Down
3 changes: 1 addition & 2 deletions lib/pages/settings/about.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import 'package:spotube/hooks/use_package_info.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:url_launcher/url_launcher_string.dart';

final _licenseProvider = FutureProvider<String>((ref) async {
return await rootBundle.loadString("LICENSE");
Expand All @@ -25,7 +24,7 @@ class AboutSpotube extends HookConsumerWidget {
final license = ref.watch(_licenseProvider);
final theme = Theme.of(context);

final colon = Text(":");
const colon = Text(":");

return Scaffold(
appBar: PageWindowTitleBar(
Expand Down
4 changes: 3 additions & 1 deletion lib/services/custom_spotify_endpoints/spotify_endpoints.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ class CustomSpotifyEndpoints {
'seed_tracks': seedTracks
}.forEach((key, list) => _addList(parameters, key, list!));
if (market != null) parameters['market'] = market;
[min, max, target].forEach((map) => _addTunableTrackMap(parameters, map));
for (var map in [min, max, target]) {
_addTunableTrackMap(parameters, map);
}
final pathQuery =
"$_baseUrl/recommendations?${parameters.entries.map((e) => '${e.key}=${e.value}').join('&')}";
final res = await _client.get(
Expand Down
1 change: 0 additions & 1 deletion lib/services/mutations/playlist.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:fl_query/fl_query.dart';
import 'package:fl_query_hooks/fl_query_hooks.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:spotube/hooks/use_spotify_mutation.dart';

Expand Down
12 changes: 2 additions & 10 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,10 @@ packages:
dependency: "direct main"
description:
name: fl_query_connectivity_plus_adapter
sha256: ce170730117b2da27467953c2d8a063ea89a99cfb666b332b6ea621211f09b8a
sha256: a0e69615e25f6dfe74d1e5a0909aeeb865e93c65dd4e0b236f0846f9e54f758b
url: "https://pub.dev"
source: hosted
version: "0.1.0-alpha.1"
version: "0.1.0-alpha.2"
fl_query_hooks:
dependency: "direct main"
description:
Expand Down Expand Up @@ -1654,14 +1654,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.1"
simple_icons:
dependency: "direct main"
description:
name: simple_icons
sha256: "8aa6832dc7a263a3213e40ecbf1328a392308c809d534a3b860693625890483b"
url: "https://pub.dev"
source: hosted
version: "7.10.0"
skeleton_text:
dependency: "direct main"
description:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish_to: "none"
version: 2.7.1+18

environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.0.2 <4.0.0"
flutter: ">=3.10.0"

dependencies:
Expand All @@ -27,7 +27,7 @@ dependencies:
file_picker: ^5.2.2
fl_query: ^1.0.0-alpha.3
fl_query_hooks: ^1.0.0-alpha.3
fl_query_connectivity_plus_adapter: ^0.1.0-alpha.1
fl_query_connectivity_plus_adapter: ^0.1.0-alpha.2
fluentui_system_icons: ^1.1.189
flutter:
sdk: flutter
Expand Down

0 comments on commit 699b236

Please sign in to comment.