step 16 : add M_CompanyID for trans, menu drawer, fix bug overflow btn

This commit is contained in:
sindhu
2024-01-16 10:38:44 +07:00
parent a317946fc2
commit 198f7ccd17
9 changed files with 1201 additions and 871 deletions

View File

@@ -1,7 +1,8 @@
import '../screen/change_company/change_company.dart';
import 'package:flutter/material.dart';
import '../screen/home/home_screen.dart';
import '../screen/transaksi/history_transaksi_screen.dart';
import '../screen/transaksi/transaksi_screen.dart';
import '../screen/login/login_screen.dart';
import '../screen/splash/splash_screen.dart';
@@ -16,6 +17,8 @@ const homeRoute = "/homeRoute";
const transaksiRoute = "/transaksiRoute";
const userRoute = "/userRoute";
const reportRoute = "/reportRoute";
const changeCompanyRoute = "/changeCompanyRoute";
const historyTransaksiRoute = "/historyTransaksiRoute";
// test screen
const testFilePickerRoute = "/testFilePickerRoute";
@@ -35,6 +38,32 @@ class AppRoute {
});
}
// change Company
if (settings.name == changeCompanyRoute) {
return MaterialPageRoute(builder: (context) {
return MediaQuery(
data: MediaQuery.of(context).copyWith(
textScaleFactor: 1.0,
padding: EdgeInsets.all(0),
),
child: ChangeCompanyScreen(),
);
});
}
// history transaksi
if (settings.name == historyTransaksiRoute) {
return MaterialPageRoute(builder: (context) {
return MediaQuery(
data: MediaQuery.of(context).copyWith(
textScaleFactor: 1.0,
padding: EdgeInsets.all(0),
),
child: HistoryTransaksiScreen(),
);
});
}
// report screen
if (settings.name == reportRoute) {
return MaterialPageRoute(builder: (context) {