Skip to content

Instantly share code, notes, and snippets.

Last active August 22, 2019 11:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
import 'package:flutter/material.dart';
import 'package:transparent_image/transparent_image.dart';
class _MyHomePageState extends State<MyHomePage> {
Widget _gridList() {
return GridView.builder(
itemCount: 60,
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 4),
itemBuilder: (context, index) {
return Padding(
padding: const EdgeInsets.all(3.0),
child: GestureDetector(
child: FadeInImage.memoryNetwork(
placeholder: kTransparentImage,
image: '$index/128'),
onTap: () {
_openImage(context, index);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment