swipe_image_ocr 0.0.1+2
swipe_image_ocr: ^0.0.1+2 copied to clipboard
A Flutter package that provides interactive image cropping and text recognition functionality using Google ML Kit.
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(),
);
}
}