Skip to content

Commit

Permalink
chore: use published version of fl-query
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Mar 5, 2023
1 parent 2cbfcf2 commit 9b6ccd8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 37 deletions.
10 changes: 0 additions & 10 deletions lib/pages/home/personalized.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import 'package:spotube/components/album/album_card.dart';
import 'package:spotube/components/playlist/playlist_card.dart';
import 'package:spotube/components/shared/shimmers/shimmer_playbutton_card.dart';
import 'package:spotube/components/shared/waypoint.dart';
import 'package:spotube/hooks/use_async_effect.dart';
import 'package:spotube/models/logger.dart';
import 'package:spotube/services/queries/queries.dart';
import 'package:spotube/utils/type_conversion_utils.dart';
Expand Down Expand Up @@ -107,15 +106,6 @@ class PersonalizedPage extends HookConsumerWidget {

final newReleases = useQueries.album.newReleases(ref);

useAsyncEffect(() async {
final releases = newReleases.pages.expand(
(page) => page.items ?? const Iterable<AlbumSimple>.empty(),
);
if (releases.isEmpty) {
await newReleases.fetchNext();
}
}, null, [newReleases.pages]);

return ListView(
children: [
PersonalizedItemCard(
Expand Down
22 changes: 10 additions & 12 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -533,21 +533,19 @@ packages:
fl_query:
dependency: "direct main"
description:
path: "packages/fl_query"
ref: new-architecture
resolved-ref: fbe1f9591a764a3077f75dfa22f7b2552f88cf07
url: "https://github.com/KRTirtho/fl-query.git"
source: git
version: "0.3.1"
name: fl_query
sha256: d9ebed8f024ef8e1eb9770d632ed738539dc576374a3498d5344d6ab27708563
url: "https://pub.dev"
source: hosted
version: "1.0.0-alpha.1"
fl_query_hooks:
dependency: "direct main"
description:
path: "packages/fl_query_hooks"
ref: new-architecture
resolved-ref: fbe1f9591a764a3077f75dfa22f7b2552f88cf07
url: "https://github.com/KRTirtho/fl-query.git"
source: git
version: "0.3.1"
name: fl_query_hooks
sha256: "868974a332ff28ffd837edf995b8c579dac0e590215d8f4d13ce84c7b6f2e53c"
url: "https://pub.dev"
source: hosted
version: "1.0.0-alpha.1"
fluent_ui:
dependency: "direct main"
description:
Expand Down
17 changes: 2 additions & 15 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,8 @@ dependencies:
cupertino_icons: ^1.0.5
dbus: ^0.7.8
file_picker: ^5.2.2
fl_query:
git:
url: https://github.com/KRTirtho/fl-query.git
path: packages/fl_query
ref: new-architecture
fl_query_hooks:
git:
url: https://github.com/KRTirtho/fl-query.git
path: packages/fl_query_hooks
ref: new-architecture
fl_query: ^1.0.0-alpha.0
fl_query_hooks: ^1.0.0-alpha.0
fluent_ui: ^4.3.0
fluentui_system_icons: ^1.1.189
flutter:
Expand Down Expand Up @@ -108,11 +100,6 @@ dev_dependencies:

dependency_overrides:
package_info_plus: ^3.0.2
fl_query:
git:
url: https://github.com/KRTirtho/fl-query.git
path: packages/fl_query
ref: new-architecture

flutter:
uses-material-design: true
Expand Down

0 comments on commit 9b6ccd8

Please sign in to comment.