swipe_image_ocr 0.0.1 copy "swipe_image_ocr: ^0.0.1" to clipboard
swipe_image_ocr: ^0.0.1 copied to clipboard

A Flutter package that provides interactive image cropping and text recognition functionality using Google ML Kit. Users can draw selection areas on images by swiping their finger, and the package aut [...]

example/lib/main.dart

import 'app_page.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    final googleFontsTextTheme = TextTheme.of(context);

    return MaterialApp(
      themeMode: ThemeMode.system,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(
          seedColor: Colors.deepPurple,
          brightness: Brightness.light,
        ),
        textTheme: googleFontsTextTheme,
        useMaterial3: true,
      ),
      darkTheme: ThemeData(
        colorScheme: ColorScheme.fromSeed(
          seedColor: Colors.deepPurple,
          brightness: Brightness.dark,
        ),
        textTheme: googleFontsTextTheme,
        useMaterial3: true,
      ),
      home: AppPage(),
    );
  }
}
2
likes
0
points
157
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides interactive image cropping and text recognition functionality using Google ML Kit. Users can draw selection areas on images by swiping their finger, and the package automatically crops the selected area and performs OCR text recognition.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, google_mlkit_barcode_scanning, google_mlkit_text_recognition, image, path_provider

More

Packages that depend on swipe_image_ocr

Packages that implement swipe_image_ocr