6amMart - Multivendor Food, Grocery, eCommerce, Parcel, Pharmacy delivery app with Admin & Website

6amMart - Multivendor Food, Grocery, eCommerce, Parcel, Pharmacy delivery app with Admin & Website v3.0 Hotfix

No permission to download

MadaDarkness

Member
Jan 10, 2021
34
29
18
Hi, everything working fine, but on client app, when i try to get a location from the map i get this error message: Error: type '_OneByteString' is not a subtype of type 'int' of 'index'
 

lostkid

Active member
Mar 18, 2021
131
54
28
25
Does anyone know how to hide customer data from store owner please Thank you
In lib/view/screens/order/order_details_screen.dart removing:

Code:
 Text('customer_details'.tr, style: robotoRegular),
SizedBox(
    height:
        Dimensions.PADDING_SIZE_EXTRA_SMALL),

Row(children: [
  ClipOval(
      child: CustomImage(
    image:
        '${Get.find<SplashController>().configModel.baseUrls.customerImageUrl}/${_order.customer != null ? _order.customer.image : ''}',
    height: 35,
    width: 35,
    fit: BoxFit.cover,
  )),
  SizedBox(
      width: Dimensions.PADDING_SIZE_SMALL),
  Expanded(
      child: Column(
          crossAxisAlignment:
              CrossAxisAlignment.start,
          children: [
        Text(
          _order.deliveryAddress
              .contactPersonName,
          maxLines: 1,
          overflow: TextOverflow.ellipsis,
          style: robotoRegular.copyWith(
              fontSize:
                  Dimensions.FONT_SIZE_SMALL),
        ),
        Text(
          _order.deliveryAddress.address,
          maxLines: 1,
          overflow: TextOverflow.ellipsis,
          style: robotoRegular.copyWith(
              fontSize:
                  Dimensions.FONT_SIZE_SMALL,
              color: Theme.of(context)
                  .disabledColor),
        ),
        Wrap(children: [
          (_order.deliveryAddress
                          .streetNumber !=
                      null &&
                  _order.deliveryAddress
                      .streetNumber.isNotEmpty)
              ? Text(
                  'street_number'.tr +
                      ': ' +
                      _order.deliveryAddress
                          .streetNumber +
                      ', ',
                  style: robotoRegular.copyWith(
                      fontSize: Dimensions
                          .FONT_SIZE_EXTRA_SMALL,
                      color: Theme.of(context)
                          .disabledColor),
                  maxLines: 1,
                  overflow:
                      TextOverflow.ellipsis,
                )
              : SizedBox(),
          (_order.deliveryAddress.house !=
                      null &&
                  _order.deliveryAddress.house
                      .isNotEmpty)
              ? Text(
                  'house'.tr +
                      ': ' +
                      _order.deliveryAddress
                          .house +
                      ', ',
                  style: robotoRegular.copyWith(
                      fontSize: Dimensions
                          .FONT_SIZE_EXTRA_SMALL,
                      color: Theme.of(context)
                          .disabledColor),
                  maxLines: 1,
                  overflow:
                      TextOverflow.ellipsis,
                )
              : SizedBox(),
          (_order.deliveryAddress.floor !=
                      null &&
                  _order.deliveryAddress.floor
                      .isNotEmpty)
              ? Text(
                  'floor'.tr +
                      ': ' +
                      _order.deliveryAddress
                          .floor,
                  style: robotoRegular.copyWith(
                      fontSize: Dimensions
                          .FONT_SIZE_EXTRA_SMALL,
                      color: Theme.of(context)
                          .disabledColor),
                  maxLines: 1,
                  overflow:
                      TextOverflow.ellipsis,
                )
              : SizedBox(),
        ]),
      ])),
  (_takeAway &&
          (_pending ||
              _confirmed ||
              _processing))
      ? TextButton.icon(
          onPressed: () async {
            String url =
                'https://www.google.com/maps/dir/?api=1&destination=${_order.deliveryAddress.latitude}'
                ',${_order.deliveryAddress.longitude}&mode=d';
            if (await canLaunchUrlString(url)) {
              await launchUrlString(url,
                  mode: LaunchMode
                      .externalApplication);
            } else {
              showCustomSnackBar(
                  'unable_to_launch_google_map'
                      .tr);
            }
          },
          icon: Icon(Icons.directions),
          label: Text('direction'.tr),
        )
      : SizedBox(),
]),

should work
 

lostkid

Active member
Mar 18, 2021
131
54
28
25
plz share working code..
1.5 works just fine for me. Does upgrading to 1.5.1 cause the issue or is it a fresh install.
Also if the app is working in debug but not in release, your probably doing something wrong for the release build stage.

I'll need more information.

edit: I was looking at the 1.5.1 update i realise they updated gradle which means you may need to update your NDK version.
 
Last edited:
  • Like
Reactions: ajaygupt
May 4, 2022
93
18
8
Brasil
In lib/view/screens/order/order_details_screen.dart removing:

Code:
 Text('customer_details'.tr, style: robotoRegular),
SizedBox(
    height:
        Dimensions.PADDING_SIZE_EXTRA_SMALL),

Row(children: [
  ClipOval(
      child: CustomImage(
    image:
        '${Get.find<SplashController>().configModel.baseUrls.customerImageUrl}/${_order.customer != null ? _order.customer.image : ''}',
    height: 35,
    width: 35,
    fit: BoxFit.cover,
  )),
  SizedBox(
      width: Dimensions.PADDING_SIZE_SMALL),
  Expanded(
      child: Column(
          crossAxisAlignment:
              CrossAxisAlignment.start,
          children: [
        Text(
          _order.deliveryAddress
              .contactPersonName,
          maxLines: 1,
          overflow: TextOverflow.ellipsis,
          style: robotoRegular.copyWith(
              fontSize:
                  Dimensions.FONT_SIZE_SMALL),
        ),
        Text(
          _order.deliveryAddress.address,
          maxLines: 1,
          overflow: TextOverflow.ellipsis,
          style: robotoRegular.copyWith(
              fontSize:
                  Dimensions.FONT_SIZE_SMALL,
              color: Theme.of(context)
                  .disabledColor),
        ),
        Wrap(children: [
          (_order.deliveryAddress
                          .streetNumber !=
                      null &&
                  _order.deliveryAddress
                      .streetNumber.isNotEmpty)
              ? Text(
                  'street_number'.tr +
                      ': ' +
                      _order.deliveryAddress
                          .streetNumber +
                      ', ',
                  style: robotoRegular.copyWith(
                      fontSize: Dimensions
                          .FONT_SIZE_EXTRA_SMALL,
                      color: Theme.of(context)
                          .disabledColor),
                  maxLines: 1,
                  overflow:
                      TextOverflow.ellipsis,
                )
              : SizedBox(),
          (_order.deliveryAddress.house !=
                      null &&
                  _order.deliveryAddress.house
                      .isNotEmpty)
              ? Text(
                  'house'.tr +
                      ': ' +
                      _order.deliveryAddress
                          .house +
                      ', ',
                  style: robotoRegular.copyWith(
                      fontSize: Dimensions
                          .FONT_SIZE_EXTRA_SMALL,
                      color: Theme.of(context)
                          .disabledColor),
                  maxLines: 1,
                  overflow:
                      TextOverflow.ellipsis,
                )
              : SizedBox(),
          (_order.deliveryAddress.floor !=
                      null &&
                  _order.deliveryAddress.floor
                      .isNotEmpty)
              ? Text(
                  'floor'.tr +
                      ': ' +
                      _order.deliveryAddress
                          .floor,
                  style: robotoRegular.copyWith(
                      fontSize: Dimensions
                          .FONT_SIZE_EXTRA_SMALL,
                      color: Theme.of(context)
                          .disabledColor),
                  maxLines: 1,
                  overflow:
                      TextOverflow.ellipsis,
                )
              : SizedBox(),
        ]),
      ])),
  (_takeAway &&
          (_pending ||
              _confirmed ||
              _processing))
      ? TextButton.icon(
          onPressed: () async {
            String url =
                'https://www.google.com/maps/dir/?api=1&destination=${_order.deliveryAddress.latitude}'
                ',${_order.deliveryAddress.longitude}&mode=d';
            if (await canLaunchUrlString(url)) {
              await launchUrlString(url,
                  mode: LaunchMode
                      .externalApplication);
            } else {
              showCustomSnackBar(
                  'unable_to_launch_google_map'
                      .tr);
            }
          },
          icon: Icon(Icons.directions),
          label: Text('direction'.tr),
        )
      : SizedBox(),
]),

should work
Thank you but I didn't know how to be clear I need to hide this details e-mail: example*** @gmail.com
Mobile: +91 75622 ***

from the store owner in the app and on the panel it would be possible
 
  • Like
Reactions: lostkid

lostkid

Active member
Mar 18, 2021
131
54
28
25
Thank you but I didn't know how to be clear I need to hide this details e-mail: example*** @gmail.com
Mobile: +91 75622 ***

from the store owner in the app and on the panel it would be possible
Send a screenshot of where you want this removed.
 

ajaygupt

Member
Oct 21, 2018
54
10
8
1.5 works just fine for me. Does upgrading to 1.5.1 cause the issue or is it a fresh install.
Also if the app is working in debug but not in release, your probably doing something wrong for the release build stage.

I'll need more information.

edit: I was looking at the 1.5.1 update i realise they updated gradle which means you may need to update your NDK version.
sorry but not working.....:)
 

Syedvasiq

Member
May 6, 2022
42
1
8
India
Hi i have vps server 4gb memory yet i m facing too many requests running on only 5 user apps do any one help me with it
 

MadaDarkness

Member
Jan 10, 2021
34
29
18
1.5 works just fine for me. Does upgrading to 1.5.1 cause the issue or is it a fresh install.
Also if the app is working in debug but not in release, your probably doing something wrong for the release build stage.

I'll need more information.

edit: I was looking at the 1.5.1 update i realise they updated gradle which means you may need to update your NDK version.
Hi, everything working fine, but on client app, when i try to get a location from the map i get this error message: Error: type '_OneByteString' is not a subtype of type 'int' of 'index'

Any help please?
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu