BASE: Initialize Localization.
This commit is contained in:
@@ -3,6 +3,7 @@ import 'dart:developer';
|
||||
import 'package:customer/constant/constant.dart';
|
||||
import 'package:customer/models/cart_product_model.dart';
|
||||
import 'package:customer/themes/custom_dialog_box.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
@@ -48,10 +49,10 @@ class CartProvider with ChangeNotifier {
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return CustomDialogBox(
|
||||
title: "Alert".tr,
|
||||
descriptions: "Your cart already contains items from another restaurant. Would you like to replace them with items from this restaurant instead?".tr,
|
||||
positiveString: "Add".tr,
|
||||
negativeString: "Cancel".tr,
|
||||
title: "Alert".tr(),
|
||||
descriptions: "Your cart already contains items from another restaurant. Would you like to replace them with items from this restaurant instead?".tr(),
|
||||
positiveString: "Add".tr(),
|
||||
negativeString: "Cancel".tr(),
|
||||
positiveClick: () async {
|
||||
cartItem.clear();
|
||||
_cartItems.clear();
|
||||
|
||||
Reference in New Issue
Block a user