[Change Pass] 1. add Change Password Fiture
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'package:app_petty_cash/screen/change_pasword/change_password_screen.dart';
|
||||
|
||||
import '../screen/change_company/change_company.dart';
|
||||
import 'package:app_petty_cash/screen/camera/coba_camera.dart';
|
||||
import 'package:app_petty_cash/screen/camera/example.dart';
|
||||
@@ -20,6 +22,7 @@ const transaksiRoute = "/transaksiRoute";
|
||||
const userRoute = "/userRoute";
|
||||
const reportRoute = "/reportRoute";
|
||||
const changeCompanyRoute = "/changeCompanyRoute";
|
||||
const changePasswordRoute = "/changePasswordRoute";
|
||||
const historyTransaksiRoute = "/historyTransaksiRoute";
|
||||
const cameraExampleRoute = "/cameraExampleRoute";
|
||||
const cobaCameraRoute = "/cobaCameraRoute";
|
||||
@@ -119,6 +122,18 @@ class AppRoute {
|
||||
);
|
||||
});
|
||||
}
|
||||
// transaksi screen
|
||||
if (settings.name == changePasswordRoute) {
|
||||
return MaterialPageRoute(builder: (context) {
|
||||
return MediaQuery(
|
||||
data: MediaQuery.of(context).copyWith(
|
||||
textScaleFactor: 1.0,
|
||||
padding: EdgeInsets.all(0),
|
||||
),
|
||||
child: ChangePasswordScreen(),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
// test file picker screen
|
||||
if (settings.name == testFilePickerRoute) {
|
||||
|
||||
Reference in New Issue
Block a user