diff --git a/example/lib/main.dart b/example/lib/main.dart index 1b55889..50414de 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -54,30 +54,7 @@ class _HomeScreenState extends State { body: Center( child: TextButton( onPressed: () async { - // final ImagePicker picker = ImagePicker(); - - // final XFile? image = - // await picker.pickImage(source: ImageSource.gallery); - // var bytes = await image?.readAsBytes(); - - // if (bytes != null) { - // await documentDetector.setWhiteList([ - // ObjectDetectionObjectType.NATIONAL_ID_0, - // ]); - // List detections = - // await documentDetector.detect(bytes); - - // if (detections.isNotEmpty) { - // showDialog( - // context: context, - // builder: (BuildContext context) { - // return Dialog( - // child: Image.memory(detections[0].documentImage), - // ); - // }, - // ); - // } - // } + await showModalBottomSheet( context: context, isScrollControlled: true,