Update assets, timeout, controller and pubspec

Replace Android launcher icons, increase HTTP receiveTimeout to 90000ms, and update asset references. Change uc_logo to use ic_launcher.png. Add specific handling for ERR_ACC_0012 in AddNewAccountController and apply minor formatting/refactor for readability. Bump json_serializable dependency, add Inter and Poppins font declarations, and add flutter_launcher_icons configuration pointing to assets/uco/logo/ic_launcher.png.
Add_app_installer_Icon
Sawara Rehman 8 hours ago
parent 986708b3cc
commit 136ae8d43c

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 late BaseOptions _baseOptions;
static void _initRequest(RequestAttr attr) { 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; _baseOptions.contentType = Headers.jsonContentType;
if (attr.headers.isNotEmpty) { 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_logo_black = "assets/$ORGANIZATION/logo/lg_logo_black.svg";
static const lg_mfsys = "assets/$ORGANIZATION/logo/lg_mfsys.png"; static const lg_mfsys = "assets/$ORGANIZATION/logo/lg_mfsys.png";
static const lg_bank = "assets/$ORGANIZATION/logo/lg_bank.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 ic_dashboard_logo = "assets/$ORGANIZATION/logo/ic_dashboard_logo.svg";
static const lg_back_arrow = "assets/$ORGANIZATION/logo/lg_back_arrow.svg"; static const lg_back_arrow = "assets/$ORGANIZATION/logo/lg_back_arrow.svg";
static const u_receive = "assets/$ORGANIZATION/logo/u_receive.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 '../../../routes/app_pages.dart';
import '../../dashboard/controllers/dashboard_screen_controller.dart'; import '../../dashboard/controllers/dashboard_screen_controller.dart';
class AddNewAccountController extends GetxController { class AddNewAccountController extends GetxController {
BuildContext context = Get.context as BuildContext; BuildContext context = Get.context as BuildContext;
@ -44,7 +43,10 @@ class AddNewAccountController extends GetxController {
/// Validate Function of contorller /// Validate Function of contorller
bool validate() { bool validate() {
bool isValid = FieldValidation.validateAll([nameAddressField, currencyCodesField]); bool isValid = FieldValidation.validateAll([
nameAddressField,
currencyCodesField,
]);
return isValid; return isValid;
} }
@ -58,9 +60,13 @@ class AddNewAccountController extends GetxController {
return; 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; dropDownValue = currencyListDropDown.first;
@ -91,20 +97,27 @@ class AddNewAccountController extends GetxController {
ServerResponse response = await repository.addNewAccount(request); ServerResponse response = await repository.addNewAccount(request);
if (response.errorCode == "ERR_ACC_0012") {
Toasty.error("Account for the product already exists");
return;
}
if (response.isError) { if (response.isError) {
Toasty.error(response.errorMsg); Toasty.error(response.errorMsg);
return; return;
} }
CustomDialog.showSuccessDialog( CustomDialog.showSuccessDialog(
description: "Thank you so much, Your new account has been created successfully", description:
onTapPositive: () { "Thank you so much, Your new account has been created successfully",
transitionUpdate.value++; 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(); clearText();
} }

@ -65,7 +65,7 @@ dependencies:
getwidget: 4.0.0 getwidget: 4.0.0
flutter_rounded_date_picker: 3.0.4 flutter_rounded_date_picker: 3.0.4
calendar_date_picker2: 1.0.2 calendar_date_picker2: 1.0.2
json_serializable: 6.7.1 json_serializable: ^6.8.0
buttons_tabbar: 1.3.8 buttons_tabbar: 1.3.8
google_maps_flutter: 2.14.0 google_maps_flutter: 2.14.0
path_provider: 2.1.3 path_provider: 2.1.3
@ -91,6 +91,8 @@ dependencies:
pointycastle: ^3.9.1 pointycastle: ^3.9.1
flutter_dotenv: ^5.1.0 flutter_dotenv: ^5.1.0
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
@ -101,19 +103,16 @@ dev_dependencies:
# package. See that file for information about deactivating specific lint # package. See that file for information about deactivating specific lint
# rules and activating additional ones. # rules and activating additional ones.
flutter_lints: ^6.0.0 flutter_lints: ^6.0.0
flutter_launcher_icons: ^0.14.3
# For information on the generic Dart part of this file, see the # For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec # following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages. # The following section is specific to Flutter packages.
flutter: 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 uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets: assets:
- assets/ - assets/
- assets/uco/ - assets/uco/
@ -122,6 +121,28 @@ flutter:
- assets/uco/logo/ - assets/uco/logo/
- assets/.en - 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 # An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/to/resolution-aware-images # https://flutter.dev/to/resolution-aware-images
@ -149,6 +170,8 @@ flutter:
fonts: fonts:
- asset: fonts/Poppins-Regular.ttf - asset: fonts/Poppins-Regular.ttf
- asset: fonts/Poppins-Medium.ttf - asset: fonts/Poppins-Medium.ttf
# style: italic # style: italic
# - family: Trajan Pro # - family: Trajan Pro
# fonts: # fonts:

Loading…
Cancel
Save