step 15 : selected ke edit

This commit is contained in:
sindhu
2025-02-18 05:46:59 +07:00
parent a13271fa73
commit 6af18dbe58
16 changed files with 739 additions and 19 deletions

View File

@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import '../screen/home/home_screen.dart';
import '../screen/login/login_screen.dart';
import '../screen/scan/edit_scan_screen.dart';
import '../screen/scan/scan_screen.dart';
import '../screen/splash/splash_screen.dart';
@@ -9,6 +10,7 @@ const splashRoute = "/splashRoute";
const loginRoute = "/loginRoute";
const homeRoute = "/homeRoute";
const scanRoute = "/scanRoute";
const editScanRoute = "/editScanRoute";
class AppRoute {
static Route<dynamic> generateRoute(RouteSettings settings) {
@@ -56,6 +58,17 @@ class AppRoute {
});
}
// edit screen
if (settings.name == editScanRoute) {
return MaterialPageRoute(builder: (context) {
return MediaQuery(
data: MediaQuery.of(context).copyWith(
textScaler: TextScaler.linear(1.0), padding: EdgeInsets.all(0)),
child: EditScanScreen(),
);
});
}
return MaterialPageRoute(builder: (context) {
return MediaQuery(
data: MediaQuery.of(context).copyWith(