Merge pull request 'Update assets, timeout, controller and pubspec' (#11) from Add_app_installer_Icon into pre_developmnet_branch

Reviewed-on: https://ct.mfsys.com.pk/UCO-Projects/uco-mobile-poc/pulls/11
PROFILE_ACCOUNTDETAILS_FETCH_FIX
Waqas Khurshid 10 hours ago
commit 797df84416

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 33 KiB

@ -56,7 +56,7 @@ class ServerRequest {
static late BaseOptions _baseOptions;
static void _initRequest(RequestAttr attr) {
_baseOptions = BaseOptions(baseUrl: attr.url, connectTimeout: 15000, receiveTimeout: 9000);
_baseOptions = BaseOptions(baseUrl: attr.url, connectTimeout: 15000, receiveTimeout: 90000);
_baseOptions.contentType = Headers.jsonContentType;
if (attr.headers.isNotEmpty) {

@ -6,7 +6,7 @@ class AppAssets {
static const lg_logo_black = "assets/$ORGANIZATION/logo/lg_logo_black.svg";
static const lg_mfsys = "assets/$ORGANIZATION/logo/lg_mfsys.png";
static const lg_bank = "assets/$ORGANIZATION/logo/lg_bank.png";
static const uc_logo = "assets/$ORGANIZATION/logo/uc_logo.png";
static const uc_logo = "assets/$ORGANIZATION/logo/ic_launcher.png";
static const ic_dashboard_logo = "assets/$ORGANIZATION/logo/ic_dashboard_logo.svg";
static const lg_back_arrow = "assets/$ORGANIZATION/logo/lg_back_arrow.svg";
static const u_receive = "assets/$ORGANIZATION/logo/u_receive.svg";

@ -16,7 +16,6 @@ import '../../../models/product_model.dart';
import '../../../routes/app_pages.dart';
import '../../dashboard/controllers/dashboard_screen_controller.dart';
class AddNewAccountController extends GetxController {
BuildContext context = Get.context as BuildContext;
@ -44,7 +43,10 @@ class AddNewAccountController extends GetxController {
/// Validate Function of contorller
bool validate() {
bool isValid = FieldValidation.validateAll([nameAddressField, currencyCodesField]);
bool isValid = FieldValidation.validateAll([
nameAddressField,
currencyCodesField,
]);
return isValid;
}
@ -58,9 +60,13 @@ class AddNewAccountController extends GetxController {
return;
}
currencyList = ProductDepositModel.productListFromJson(productResponse.response);
currencyList = ProductDepositModel.productListFromJson(
productResponse.response,
);
currencyListDropDown = currencyList.map((e) => DropDown(e.dmpProdcode, e.dmpProddesc, e)).toList();
currencyListDropDown = currencyList
.map((e) => DropDown(e.dmpProdcode, e.dmpProddesc, e))
.toList();
dropDownValue = currencyListDropDown.first;
@ -91,20 +97,27 @@ class AddNewAccountController extends GetxController {
ServerResponse response = await repository.addNewAccount(request);
if (response.errorCode == "ERR_ACC_0012") {
Toasty.error("Account for the product already exists");
return;
}
if (response.isError) {
Toasty.error(response.errorMsg);
return;
}
CustomDialog.showSuccessDialog(
description: "Thank you so much, Your new account has been created successfully",
onTapPositive: () {
transitionUpdate.value++;
description:
"Thank you so much, Your new account has been created successfully",
onTapPositive: () {
transitionUpdate.value++;
Navigator.of(context, rootNavigator: true).pop();
Navigator.of(context, rootNavigator: true).pop();
Get.offAllNamed(Routes.DASHBOARD_SCREEN);
});
Get.offAllNamed(Routes.DASHBOARD_SCREEN);
},
);
clearText();
}

@ -65,7 +65,7 @@ dependencies:
getwidget: 4.0.0
flutter_rounded_date_picker: 3.0.4
calendar_date_picker2: 1.0.2
json_serializable: 6.7.1
json_serializable: ^6.8.0
buttons_tabbar: 1.3.8
google_maps_flutter: 2.14.0
path_provider: 2.1.3
@ -91,6 +91,8 @@ dependencies:
pointycastle: ^3.9.1
flutter_dotenv: ^5.1.0
dev_dependencies:
flutter_test:
sdk: flutter
@ -101,19 +103,16 @@ dev_dependencies:
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^6.0.0
flutter_launcher_icons: ^0.14.3
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/
- assets/uco/
@ -122,6 +121,28 @@ flutter:
- assets/uco/logo/
- assets/.en
fonts:
- family: Inter
fonts:
- asset: fonts/Inter-Black.ttf
- asset: fonts/Inter-Bold.ttf
- asset: fonts/Inter-ExtraBold.ttf
- asset: fonts/Inter-ExtraLight.ttf
- asset: fonts/Inter-Light.ttf
- asset: fonts/Inter-Medium.ttf
- asset: fonts/Inter-Regular.ttf
- asset: fonts/Inter-SemiBold.ttf
- asset: fonts/Inter-Thin.ttf
- family: Poppins
fonts:
- asset: fonts/Poppins-Regular.ttf
- asset: fonts/Poppins-Medium.ttf
flutter_launcher_icons:
android: true
ios: true
image_path: "assets/uco/logo/ic_launcher.png"
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/to/resolution-aware-images
@ -149,6 +170,8 @@ flutter:
fonts:
- asset: fonts/Poppins-Regular.ttf
- asset: fonts/Poppins-Medium.ttf
# style: italic
# - family: Trajan Pro
# fonts:

Loading…
Cancel
Save