import 'package:flutter/material.dart'; import '../screen/home/home_screen.dart'; import '../screen/md_lab_mitra/md_lab_mitra_screen.dart'; const homeRoute = "/"; const mdLabMitraRoute = "/mdLabMitra"; class AppRoute { static Route generateRoute(RouteSettings settings) { if (settings.name == mdLabMitraRoute) { return MaterialPageRoute( builder: (context) => MediaQuery( data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0), child: const MdLabMitraScreen(), )); } return MaterialPageRoute( builder: (context) => MediaQuery( data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0), child: const HomeScreen(), )); } }