login ui
This commit is contained in:
24
lib/app/route.dart
Normal file
24
lib/app/route.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:westone_kurirapp/screen/login_screen/login.dart';
|
||||
|
||||
const loginRoute = "/loginRoute";
|
||||
|
||||
class AppRoute {
|
||||
static Route<dynamic> generateRoute(RouteSettings settings) {
|
||||
// input pekerjaan pengambilan bahan
|
||||
if (settings.name == loginRoute) {
|
||||
return MaterialPageRoute(builder: (context) {
|
||||
return MediaQuery(
|
||||
data: MediaQuery.of(context).copyWith(
|
||||
textScaleFactor: 1.0, padding: const EdgeInsets.all(0)),
|
||||
child: const LoginScreen());
|
||||
});
|
||||
}
|
||||
return MaterialPageRoute(builder: (context) {
|
||||
return MediaQuery(
|
||||
data: MediaQuery.of(context)
|
||||
.copyWith(textScaleFactor: 1.0, padding: const EdgeInsets.all(0)),
|
||||
child: const LoginScreen());
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user