BASE: Update Icons & Name Of The App.
This commit is contained in:
@@ -4,7 +4,7 @@ import 'package:customer/models/gift_cards_order_model.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
import '../service/fire_store_utils.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
|
||||
class HistoryGiftCardController extends GetxController {
|
||||
RxList<GiftCardsOrderModel> giftCardsOrderList = <GiftCardsOrderModel>[].obs;
|
||||
@@ -25,13 +25,20 @@ class HistoryGiftCardController extends GetxController {
|
||||
|
||||
void updateList(int index) {
|
||||
GiftCardsOrderModel giftCardsOrderModel = giftCardsOrderList[index];
|
||||
giftCardsOrderModel.isPasswordShow = giftCardsOrderModel.isPasswordShow == true ? false : true;
|
||||
giftCardsOrderModel.isPasswordShow =
|
||||
giftCardsOrderModel.isPasswordShow == true ? false : true;
|
||||
|
||||
giftCardsOrderList.removeAt(index);
|
||||
giftCardsOrderList.insert(index, giftCardsOrderModel);
|
||||
}
|
||||
|
||||
Future<void> share(String giftCode, String giftPin, String msg, String amount, Timestamp date) async {
|
||||
Future<void> share(
|
||||
String giftCode,
|
||||
String giftPin,
|
||||
String msg,
|
||||
String amount,
|
||||
Timestamp date,
|
||||
) async {
|
||||
await Share.share(
|
||||
"${'Gift Code :'.tr()} $giftCode\n${'Gift Pin :'.tr()} $giftPin\n${'Price :'.tr()} ${Constant.amountShow(amount: amount)}\n${'Expire Date :'.tr()} ${date.toDate()}\n\n${'Message'.tr()} : $msg",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user