Skip to content

Instantly share code, notes, and snippets.

@rpsnaik
Created October 16, 2019 10:41
Show Gist options
  • Save rpsnaik/d872017517b691798c6579eae3ba1c42 to your computer and use it in GitHub Desktop.
Save rpsnaik/d872017517b691798c6579eae3ba1c42 to your computer and use it in GitHub Desktop.
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