From 827f7a61b22e988c22dd6be3e034e198bda923ad Mon Sep 17 00:00:00 2001 From: jerrymfon14 <57644506+jerrymfon14@users.noreply.github.com> Date: Wed, 23 Apr 2025 08:57:00 -0700 Subject: [PATCH] Update main.dart --- example/lib/main.dart | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) 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,