Skip to content

Commit

Permalink
fix : fix google sign out on android
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinhandoko committed May 7, 2024
1 parent 1e88d0d commit 49b4484
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions lib/providers/category_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:spotify/spotify.dart';
import 'package:spotify_clone/services/spotify.dart';

class CategoryProvider with ChangeNotifier {
class CategoryProvider extends ChangeNotifier {
CategoryProvider() {
fetchData();
}
Expand Down Expand Up @@ -32,6 +32,4 @@ class CategoryProvider with ChangeNotifier {
_categories.addAll(data);
notifyListeners();
}

getPlaylistFromSimple(PlaylistSimple playlist) {}
}
1 change: 0 additions & 1 deletion lib/providers/music_player_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ class MusicPlayerProvider extends ChangeNotifier {
}
if (_queue.length > 1) {
_canNext = true;
notifyListeners();
}
notifyListeners();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/providers/search_music_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/cupertino.dart';
import 'package:spotify/spotify.dart';
import 'package:spotify_clone/services/spotify.dart';

class SearchProvider with ChangeNotifier {
class SearchProvider extends ChangeNotifier {
late List<Track> _searchResults = [];
List<Track> get searchResults => _searchResults;

Expand Down
2 changes: 2 additions & 0 deletions lib/widget/custom_drawer.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:google_sign_in/google_sign_in.dart';

class CustomDrawer extends StatefulWidget {
const CustomDrawer({super.key});
Expand Down Expand Up @@ -49,6 +50,7 @@ class _CustomDrawerState extends State<CustomDrawer> {
),
onPressed: () {
FirebaseAuth.instance.signOut();
GoogleSignIn().signOut();
},
child: const Text('Log out',
style: TextStyle(
Expand Down

0 comments on commit 49b4484

Please sign in to comment.