We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was following the code. I got an error. PokeDetail should be a widget so I don't understand why I have this error. here is the code :
import 'pokemonddetail.dart'
Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text("Poke App"), backgroundColor: Colors.cyan, ), body: pokeHub == null ? Center( child: CircularProgressIndicator(), ) : GridView.count( crossAxisCount: 2, children: pokeHub.pokemon .map((poke) => Padding( padding: const EdgeInsets.all(2.0), child: InkWell( onTap: () { Navigator.push( context, MaterialPageRoute( builder: (context) => PokeDetail( pokemon: poke, ))); },
the error is :
MaterialPageRoute( builder: (context) => PokeDetail( pokemon: poke, )));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was following the code. I got an error.
PokeDetail should be a widget so I don't understand why I have this error.
here is the code :
import 'pokemonddetail.dart'
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Poke App"),
backgroundColor: Colors.cyan,
),
body: pokeHub == null
? Center(
child: CircularProgressIndicator(),
)
: GridView.count(
crossAxisCount: 2,
children: pokeHub.pokemon
.map((poke) => Padding(
padding: const EdgeInsets.all(2.0),
child: InkWell(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => PokeDetail(
pokemon: poke,
)));
},
the error is :
MaterialPageRoute(
builder: (context) => PokeDetail(
pokemon: poke,
)));
The text was updated successfully, but these errors were encountered: