kGalleryPicker function

dynamic kGalleryPicker(
  1. dynamic context, {
  2. dynamic source,
})

gallery picker

Implementation

kGalleryPicker(context, {source}) => showModalBottomSheet(
    context: context,
    builder: (BuildContext bc) {
      return Container(
          child: Container(
              child: Wrap(children: <Widget>[
                Divider(height: 1.0, color: greyColor),
                ListTile(
                    leading: Icon(Icons.photo, color: greyColor),
                    title: CustomText(
                        textAlign: TextAlign.start,
                        text: Strings.image,
                        color: greyColor),
                    onTap: () => {source(0), goBack(context: context)}),
                Divider(height: 1.0, color: greyColor),
                ListTile(
                    leading:
                        Icon(Icons.video_collection_sharp, color: greyColor),
                    title: CustomText(
                        textAlign: TextAlign.start,
                        text: Strings.video,
                        color: greyColor),
                    onTap: () => {source(1), goBack(context: context)}),
                Divider(height: 1.0, color: greyColor)
              ]),
              color: whiteColor));
    });