step 10 : slicing scan screen, add pubdev, fungsi camera, crop, rotate angle

This commit is contained in:
sindhu
2025-02-16 01:22:50 +07:00
parent e90c710333
commit d6bdf1a76c
11 changed files with 852 additions and 5 deletions

View File

@@ -1,12 +1,14 @@
import 'package:flutter/material.dart';
import 'package:scanktpflutter/screen/home/home_screen.dart';
import '../screen/home/home_screen.dart';
import '../screen/login/login_screen.dart';
import '../screen/scan/scan_screen.dart';
import '../screen/splash/splash_screen.dart';
const splashRoute = "/splashRoute";
const loginRoute = "/loginRoute";
const homeRoute = "/homeRoute";
const scanRoute = "/scanRoute";
class AppRoute {
static Route<dynamic> generateRoute(RouteSettings settings) {
@@ -43,6 +45,17 @@ class AppRoute {
});
}
// scan screen
if (settings.name == scanRoute) {
return MaterialPageRoute(builder: (context) {
return MediaQuery(
data: MediaQuery.of(context).copyWith(
textScaler: TextScaler.linear(1.0), padding: EdgeInsets.all(0)),
child: ScanScreen(),
);
});
}
return MaterialPageRoute(builder: (context) {
return MediaQuery(
data: MediaQuery.of(context).copyWith(