step 5 : slicing screen rekam, add scanner package

This commit is contained in:
sindhu
2025-02-22 01:52:30 +07:00
parent 4db558ab68
commit 61fedad0ca
9 changed files with 234 additions and 3 deletions

View File

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