step 31 : total history, change password, resize image from camera, update versi 1.2.0
This commit is contained in:
@@ -13,7 +13,7 @@ class Constant {
|
||||
// static String version = "1.00";
|
||||
|
||||
// NOTE VERSI HARUS SAMA DENGAN PUBSPEC.YAML
|
||||
static String version = "1.1.5";
|
||||
static String version = "1.2.0";
|
||||
|
||||
// static String baseUrl = "https://devregonline.pramita.co.id/one-api/xdoc/";
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'package:app_petty_cash/screen/camera/coba_camera.dart';
|
||||
import 'package:app_petty_cash/screen/camera/example.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../screen/change_password/change_password_screen.dart';
|
||||
import '../screen/home/home_screen.dart';
|
||||
import '../screen/transaksi/history_transaksi_screen.dart';
|
||||
import '../screen/transaksi/transaksi_screen.dart';
|
||||
@@ -27,8 +28,24 @@ const cobaCameraRoute = "/cobaCameraRoute";
|
||||
// test screen
|
||||
const testFilePickerRoute = "/testFilePickerRoute";
|
||||
|
||||
const changePasswordRoute = "/changePasswordRoute";
|
||||
|
||||
class AppRoute {
|
||||
static Route<dynamic> generateRoute(RouteSettings settings) {
|
||||
|
||||
// change password
|
||||
if (settings.name == changePasswordRoute) {
|
||||
return MaterialPageRoute(builder: (context) {
|
||||
return MediaQuery(
|
||||
data: MediaQuery.of(context).copyWith(
|
||||
textScaleFactor: 1.0,
|
||||
padding: EdgeInsets.all(0),
|
||||
),
|
||||
child: ChangePasswordScreen(),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
// splash screen
|
||||
if (settings.name == splashScreen) {
|
||||
return MaterialPageRoute(builder: (context) {
|
||||
|
||||
Reference in New Issue
Block a user