buildRow method

dynamic buildRow(
  1. int index
)

Implementation

buildRow(int index) {
  return Stack(
    fit: StackFit.expand,
//      splashColor: Colors.blue[100],
//      highlightColor: Colors.blue[200],
//      onTap: () => showDialogImage(index),
    children: <Widget>[
      Positioned.fill(
        bottom: 0.0,
        child: Container(
          child: imageList[index].imageUrl != null
              ? Image.file(
            imageList[index].imageUrl,
            fit: BoxFit.cover,
          )
              : const Padding(
            padding: EdgeInsets.all(3),
            child: Material(
              child: Icon(Icons.add),
              borderRadius: BorderRadius.all(Radius.circular(5)),
              color: Color(0xFFD3D3D3),
            ),
          ),
        ),
      ),
      Positioned.fill(
          child: new Material(
              borderRadius: BorderRadius.all(Radius.circular(5)),
              color: Colors.transparent,
              child: new InkWell(
                highlightColor: Colors.transparent,
                onTap: () => showDialogImage(index),
              ))),
    ],
  );
}