Created
October 16, 2019 10:41
-
-
Save rpsnaik/d872017517b691798c6579eae3ba1c42 to your computer and use it in GitHub Desktop.
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>[ | |
Expanded( | |
child: InkWell( | |
onTap: (){ | |
Navigator.push(context, MaterialPageRoute(builder: (contex)=>Material( | |
child: ChangeNotifierProvider( | |
builder: (_)=>Admin(), | |
child: AddArtist(), | |
), | |
))); | |
}, | |
child: ListTile( | |
title: Text("Add a new artists"), | |
), | |
), | |
), | |
Expanded( | |
child: InkWell( | |
onTap: (){ | |
Navigator.push(context, MaterialPageRoute(builder: (contex)=>Material( | |
child: ChangeNotifierProvider( | |
builder: (_)=>Admin(), | |
child: AddCategory(), | |
), | |
))); | |
}, | |
child: ListTile( | |
title: Text("Add a new Category of Music"), | |
), | |
), | |
), | |
Expanded( | |
child: InkWell( | |
onTap: (){ | |
Navigator.push(context, MaterialPageRoute(builder: (contex)=>Material( | |
child: ChangeNotifierProvider( | |
builder: (_)=>Admin(), | |
child: AddSong(), | |
), | |
))); | |
}, | |
child: ListTile( | |
title: Text("Add a new Song"), | |
), | |
), | |
), | |
Expanded( | |
child: InkWell( | |
onTap: (){ | |
Navigator.push(context, MaterialPageRoute(builder: (contex)=>Material( | |
child: ChangeNotifierProvider( | |
builder: (_)=>Admin(), | |
child: AddAlbum(), | |
), | |
))); | |
}, | |
child: ListTile( | |
title: Text("Create a new Album"), | |
), | |
), | |
), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment