BASE: Implement Localization In Home Screen.
This commit is contained in:
@@ -654,7 +654,7 @@ class HomeScreen extends StatelessWidget {
|
||||
children: [
|
||||
titleView(
|
||||
isDark,
|
||||
"Largest Discounts",
|
||||
ConstTexts.largestDiscounts.tr,
|
||||
() {
|
||||
Get.to(
|
||||
const DiscountRestaurantListScreen(),
|
||||
@@ -709,7 +709,7 @@ class HomeScreen extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
"New Arrivals".tr,
|
||||
ConstTexts.newArrival.tr,
|
||||
textAlign:
|
||||
TextAlign
|
||||
.start,
|
||||
@@ -744,7 +744,7 @@ class HomeScreen extends StatelessWidget {
|
||||
});
|
||||
},
|
||||
child: Text(
|
||||
"View all".tr,
|
||||
ConstTexts.viewAll.tr,
|
||||
textAlign:
|
||||
TextAlign
|
||||
.center,
|
||||
@@ -825,7 +825,7 @@ class HomeScreen extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
"Highlights for you"
|
||||
ConstTexts.highlightsForU
|
||||
.tr,
|
||||
textAlign:
|
||||
TextAlign
|
||||
@@ -855,7 +855,7 @@ class HomeScreen extends StatelessWidget {
|
||||
});
|
||||
},
|
||||
child: Text(
|
||||
"View all"
|
||||
ConstTexts.viewAll
|
||||
.tr,
|
||||
textAlign:
|
||||
TextAlign
|
||||
@@ -971,7 +971,7 @@ class HomeScreen extends StatelessWidget {
|
||||
vertical: 10,
|
||||
),
|
||||
child: Text(
|
||||
"Popular Stores"
|
||||
ConstTexts.popularStores
|
||||
.tr,
|
||||
textAlign:
|
||||
TextAlign
|
||||
@@ -1025,7 +1025,7 @@ class HomeScreen extends StatelessWidget {
|
||||
vertical: 10,
|
||||
),
|
||||
child: Text(
|
||||
"All Stores".tr,
|
||||
ConstTexts.allStores.tr,
|
||||
textAlign:
|
||||
TextAlign
|
||||
.center,
|
||||
@@ -1247,12 +1247,12 @@ class HomeScreen extends StatelessWidget {
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return CustomDialogBox(
|
||||
title: "Alert".tr,
|
||||
title: ConstTexts.alert.tr,
|
||||
descriptions:
|
||||
"Do you really want to change the delivery option? Your cart will be empty."
|
||||
ConstTexts.doYouWantChangeTheDeliverOption
|
||||
.tr,
|
||||
positiveString: "Ok".tr,
|
||||
negativeString: "Cancel".tr,
|
||||
positiveString: ConstTexts.ok.tr,
|
||||
negativeString: ConstTexts.cancel.tr,
|
||||
positiveClick: () async {
|
||||
await Preferences.setString(
|
||||
Preferences.foodDeliveryType,
|
||||
@@ -1305,7 +1305,7 @@ class HomeScreen extends StatelessWidget {
|
||||
onPress!();
|
||||
},
|
||||
child: Text(
|
||||
"View all".tr,
|
||||
ConstTexts.viewAll.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontFamily: AppThemeData.regular,
|
||||
@@ -1479,7 +1479,7 @@ class PopularRestaurant extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: 5),
|
||||
Text(
|
||||
"Free Delivery".tr,
|
||||
ConstTexts.freeDelivery.tr,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: AppThemeData.carRent600,
|
||||
@@ -1685,7 +1685,7 @@ class AllRestaurant extends StatelessWidget {
|
||||
begin: const Alignment(-0.00, -1.00),
|
||||
end: const Alignment(0, 1),
|
||||
colors: [
|
||||
Colors.black.withOpacity(0),
|
||||
Colors.black.withValues(alpha: 0),
|
||||
const Color(0xFF111827),
|
||||
],
|
||||
),
|
||||
@@ -1784,7 +1784,7 @@ class AllRestaurant extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: 5),
|
||||
Text(
|
||||
"Free Delivery".tr,
|
||||
ConstTexts.freeDelivery.tr,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: AppThemeData.carRent600,
|
||||
@@ -2081,7 +2081,7 @@ class NewArrival extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
Text(
|
||||
"Free Delivery".tr,
|
||||
ConstTexts.freeDelivery.tr,
|
||||
textAlign: TextAlign.start,
|
||||
maxLines: 1,
|
||||
style: TextStyle(
|
||||
@@ -2491,7 +2491,7 @@ class OfferView extends StatelessWidget {
|
||||
begin: const Alignment(-0.00, -1.00),
|
||||
end: const Alignment(0, 1),
|
||||
colors: [
|
||||
Colors.black.withOpacity(0),
|
||||
Colors.black.withValues(alpha: 0),
|
||||
AppThemeData.grey900,
|
||||
],
|
||||
),
|
||||
@@ -2504,7 +2504,7 @@ class OfferView extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
"Upto".tr,
|
||||
ConstTexts.upto.tr,
|
||||
textAlign: TextAlign.start,
|
||||
maxLines: 1,
|
||||
style: TextStyle(
|
||||
@@ -2568,7 +2568,7 @@ class OfferView extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: 5),
|
||||
Text(
|
||||
"Free Delivery".tr,
|
||||
ConstTexts.freeDelivery.tr,
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
@@ -3268,7 +3268,7 @@ class MapView extends StatelessWidget {
|
||||
),
|
||||
colors: [
|
||||
Colors.black
|
||||
.withOpacity(0),
|
||||
.withValues(alpha: 0),
|
||||
const Color(
|
||||
0xFF111827,
|
||||
),
|
||||
@@ -3403,7 +3403,7 @@ class MapView extends StatelessWidget {
|
||||
width: 5,
|
||||
),
|
||||
Text(
|
||||
"Free Delivery"
|
||||
ConstTexts.freeDelivery
|
||||
.tr,
|
||||
style: TextStyle(
|
||||
fontSize:
|
||||
|
||||
Reference in New Issue
Block a user