Skip to content

Instantly share code, notes, and snippets.

View rpsnaik's full-sized avatar
💭
Each time I publish a app on Play/iOS store, I actually learn how intense it was

rps_naik rpsnaik

💭
Each time I publish a app on Play/iOS store, I actually learn how intense it was
View GitHub Profile
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,
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,
class RecentlyPlayedStuff{
String id;
String type;
DateTime lastPlayed;
String thumbnail;
String title;
RecentlyPlayedStuff({this.id, this.type, this.lastPlayed, this.thumbnail, this.title});
}
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,
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>[
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>[
class SpotifyAdmin extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Admin"),
),
body: Container(
child: Column(
children: <Widget>[
{
"albums": [
{
"artistId": "String",
"albumTitle": "String",
"ablumIndex": "Character",
"releasedTime": "Timestamp",
"copyrightOwnership": "String",
"albumThumbnail": "String url/image",
"albumSongs": [
{
"songs": [
{
"songId": "String",
"songTitle": "String",
"songIndex": "Character",
"releasedTimestamp": "String",
"audioUrl": "String: url/image",
"performedBy": "String",
"writtenBy": "String",
{
"categories": [
{
"categoryId": "String",
"isActive": "Boolean",
"categoryTitle": "String",
"categoryThumbnailUrl": "String url/image"
}
],
}