Widget createListView(BuildContext context, AsyncSnapshot snapshot, ScrollController…
Jump to turn (9)
- 1Widget createListView(BuildContext context, AsyncSnapshot snapshot, ScrollContro
- 2The argument type 'String?' can't be assigned to the parameter type 'String flut
- 3String username; String mediaUrl; String mediaUrltitle; String description; Stri
- 4The argument type 'Widget' can't be assigned to the parameter type 'PreferredSiz
- 5return Scaffold( appBar: appBarWidget(context), drawer: DrawerWidget(), body: Pa
- 6The argument type 'Widget' can't be assigned to the parameter type 'PreferredSiz
- 7appBarWidget(context) get error
- 8no i want use appBarWidget
- 9String get packageRoot => io.Platform.packageRoot;
- User
Widget createListView(BuildContext context, AsyncSnapshot snapshot, ScrollController scrollController) { List values = snapshot.data; double width = (MediaQuery.of(context).size.width); int count = width > 500 ? 2 : 1; return GridView.count( controller: scrollController, crossAxisCount: count, childAspectRatio: 1.0, padding: const EdgeInsets.all(0.5), // padding: const EdgeInsets.fromLTRB(0.0, 0.0, 0.0, 0.0), mainAxisSpacing: 1.5, crossAxisSpacing: 1.5, shrinkWrap: true, physics: ScrollPhysics(),
codechildren: List<Widget>.generate(values.length, (index) { return GridTile( child: GridTilesCategory( username: values[index].username, mediaUrl: values[index].mediaUrl, // mediaUrlTitle: values[index].mediaUrltitle, description: values[index].description, category: values[index].category, ownerId: values[index].ownerId, postId: values[index].postId, // poster: values[index].poster, title: values[index].title, rating:values[index].rating, price: values[index].price, // pdfurl: values[index].pdfurl, language: Utils.getmylang(values[index].language) )); }),