imagePickerDialog method

dynamic imagePickerDialog(
  1. int index
)

Implementation

imagePickerDialog(int index) {
  showDialog(
      context: context,
      builder: (BuildContext context) {
        return AlertDialog(
          content: SingleChildScrollView(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                buildDialogOption(index, isForStorage: false),
                buildDialogOption(index),
                (imageListBloc.currentState as ImageListState)
                    .images[index]
                    .imageUrl !=
                    null
                    ? buildDialogOption(index, isForRemovePhoto: true)
                    : Container(),
              ],
            ),
          ),
          actions: <Widget>[
            FlatButton(
              onPressed: () {
                dismissDialog();
              },
              child: Text("Cancel"),
            )
          ],
        );
      });
}