This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bottomNavigationBar: Container( | |
height: 60.0, | |
color: Colors.grey.withOpacity(0.2), | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.spaceAround, | |
crossAxisAlignment: CrossAxisAlignment.center, | |
children: <Widget>[ | |
Column( | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
crossAxisAlignment: CrossAxisAlignment.center, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SpotifyHome extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
final sessionObject = Provider.of<SessionManagement>(context); | |
return Scaffold( | |
bottomNavigationBar: Container( | |
height: 60.0, | |
color: Colors.grey.withOpacity(0.2), | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.spaceAround, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RecentlyPlayedStuff{ | |
String id; | |
String type; | |
DateTime lastPlayed; | |
String thumbnail; | |
String title; | |
RecentlyPlayedStuff({this.id, this.type, this.lastPlayed, this.thumbnail, this.title}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<bool> signUp(BuildContext context ,String name ,String email, String password)async{ | |
isCreatingAccount = true; | |
notifyListeners(); | |
try{ | |
FirebaseUser user = await FirebaseAuth.instance.createUserWithEmailAndPassword(email: email, password: password); | |
print("Signed up as : "+user.uid); | |
await Firestore.instance.collection("users").document(user.uid).setData({ | |
"name": name, | |
"nameIndex": name[0], | |
"premiumMember": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddCategory extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
final adminObj = Provider.of<Admin>(context); | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Add Category"), | |
), | |
body: ListView( | |
children: <Widget>[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddArtist extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
final adminObj = Provider.of<Admin>(context); | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Add Artist"), | |
), | |
body: ListView( | |
children: <Widget>[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SpotifyAdmin extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Admin"), | |
), | |
body: Container( | |
child: Column( | |
children: <Widget>[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"albums": [ | |
{ | |
"artistId": "String", | |
"albumTitle": "String", | |
"ablumIndex": "Character", | |
"releasedTime": "Timestamp", | |
"copyrightOwnership": "String", | |
"albumThumbnail": "String url/image", | |
"albumSongs": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"songs": [ | |
{ | |
"songId": "String", | |
"songTitle": "String", | |
"songIndex": "Character", | |
"releasedTimestamp": "String", | |
"audioUrl": "String: url/image", | |
"performedBy": "String", | |
"writtenBy": "String", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"categories": [ | |
{ | |
"categoryId": "String", | |
"isActive": "Boolean", | |
"categoryTitle": "String", | |
"categoryThumbnailUrl": "String url/image" | |
} | |
], | |
} |
NewerOlder