mirror of
https://gitlab.com/moepoi/neonime-app.git
synced 2024-11-23 23:38:29 +01:00
Add InkWell to search result
This commit is contained in:
parent
f7ecc1fc7f
commit
e58c06f2b8
1 changed files with 38 additions and 38 deletions
|
@ -39,44 +39,44 @@ class _SearchState extends State<Search> {
|
|||
return ListView.builder(
|
||||
itemCount: data.length,
|
||||
itemBuilder: (context, index) {
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
if (data[index]['link'].contains('/tvshows/')) {
|
||||
Navigator.push(context, MaterialPageRoute(
|
||||
builder: (context) => AnimeDetail(),
|
||||
settings: RouteSettings(arguments: {
|
||||
'title': data[index]['title'],
|
||||
'url': data[index]['link']
|
||||
})
|
||||
));
|
||||
} else if (data[index]['link'].contains('/episode/')) {
|
||||
Navigator.push(context, MaterialPageRoute(
|
||||
builder: (context) => EpisodeDetail(),
|
||||
settings: RouteSettings(arguments: {
|
||||
'title': data[index]['title'],
|
||||
'url': data[index]['link']
|
||||
})
|
||||
));
|
||||
} else if (data[index]['link'].contains('/batch/')) {
|
||||
Navigator.push(context, MaterialPageRoute(
|
||||
builder: (context) => BatchDetail(),
|
||||
settings: RouteSettings(arguments: {
|
||||
'title': data[index]['title'],
|
||||
'url': data[index]['link']
|
||||
})
|
||||
));
|
||||
} else {
|
||||
Navigator.push(context, MaterialPageRoute(
|
||||
builder: (context) => MovieDetail(),
|
||||
settings: RouteSettings(arguments: {
|
||||
'title': data[index]['title'],
|
||||
'url': data[index]['link']
|
||||
})
|
||||
));
|
||||
}
|
||||
},
|
||||
child: Card(
|
||||
margin: EdgeInsets.all(10),
|
||||
return Card(
|
||||
margin: EdgeInsets.all(10),
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
if (data[index]['link'].contains('/tvshows/')) {
|
||||
Navigator.push(context, MaterialPageRoute(
|
||||
builder: (context) => AnimeDetail(),
|
||||
settings: RouteSettings(arguments: {
|
||||
'title': data[index]['title'],
|
||||
'url': data[index]['link']
|
||||
})
|
||||
));
|
||||
} else if (data[index]['link'].contains('/episode/')) {
|
||||
Navigator.push(context, MaterialPageRoute(
|
||||
builder: (context) => EpisodeDetail(),
|
||||
settings: RouteSettings(arguments: {
|
||||
'title': data[index]['title'],
|
||||
'url': data[index]['link']
|
||||
})
|
||||
));
|
||||
} else if (data[index]['link'].contains('/batch/')) {
|
||||
Navigator.push(context, MaterialPageRoute(
|
||||
builder: (context) => BatchDetail(),
|
||||
settings: RouteSettings(arguments: {
|
||||
'title': data[index]['title'],
|
||||
'url': data[index]['link']
|
||||
})
|
||||
));
|
||||
} else {
|
||||
Navigator.push(context, MaterialPageRoute(
|
||||
builder: (context) => MovieDetail(),
|
||||
settings: RouteSettings(arguments: {
|
||||
'title': data[index]['title'],
|
||||
'url': data[index]['link']
|
||||
})
|
||||
));
|
||||
}
|
||||
},
|
||||
child: Column(
|
||||
children: [
|
||||
Container(
|
||||
|
|
Loading…
Reference in a new issue