Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 1 addition & 24 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,30 +54,7 @@ class _HomeScreenState extends State<HomeScreen> {
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<DocumentScannerResult> 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,
Expand Down