choosePhoto method

void choosePhoto(
  1. BuildContext context
)

Implementation

void choosePhoto(BuildContext context) {
  Helper.showVerticalButtonAlert(context, [
    ListTile(
        dense: true,
        contentPadding:
            const EdgeInsets.symmetric(horizontal: 15, vertical: 5),
        onTap: () {
          Navigator.pop(context);
          imagePick(context);
        },
        title: Text(
          AppConstants.chooseFromGallery,
          style: TextStyle(color: MirrorflyUikit.getTheme?.textPrimaryColor),
        )),
    ListTile(
        dense: true,
        contentPadding:
            const EdgeInsets.symmetric(horizontal: 15, vertical: 5),
        onTap: () async {
          Navigator.pop(context);
          camera(context);
        },
        title: Text(AppConstants.takePhoto,
            style:
                TextStyle(color: MirrorflyUikit.getTheme?.textPrimaryColor))),
  ]);
}