MINOR-FIX: DropDownMenu Problem Fix.
This commit is contained in:
@@ -1223,13 +1223,12 @@ class HomeScreen extends StatelessWidget {
|
||||
isDark
|
||||
? AppThemeData.greyDark100
|
||||
: AppThemeData.grey100,
|
||||
value: controller.selectedOrderTypeValue.value.tr,
|
||||
value: controller.selectedOrderTypeValue.value,
|
||||
icon: const Icon(Icons.keyboard_arrow_down),
|
||||
items:
|
||||
<String>[
|
||||
ConstTexts.delivery,
|
||||
ConstTexts.takeAway,
|
||||
].map((String value) {
|
||||
["delivery", "takeaway"].map((
|
||||
String value,
|
||||
) {
|
||||
return DropdownMenuItem<String>(
|
||||
value: value,
|
||||
child: Text(
|
||||
|
||||
@@ -787,12 +787,10 @@ class HomeScreenTwo extends StatelessWidget {
|
||||
DropdownButton<String>(
|
||||
isDense: false,
|
||||
underline: const SizedBox(),
|
||||
value: controller.selectedOrderTypeValue.value.tr,
|
||||
value: controller.selectedOrderTypeValue.value,
|
||||
icon: const Icon(Icons.keyboard_arrow_down),
|
||||
items:
|
||||
<String>[ConstTexts.delivery, ConstTexts.takeAway].map((
|
||||
String value,
|
||||
) {
|
||||
["delivery", "takeaway"].map((String value) {
|
||||
return DropdownMenuItem<String>(
|
||||
value: value,
|
||||
child: Text(
|
||||
@@ -821,12 +819,11 @@ class HomeScreenTwo 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."
|
||||
.tr,
|
||||
positiveString: "Ok".tr,
|
||||
negativeString: "Cancel".tr,
|
||||
ConstTexts.doYouWantChangeTheDeliverOption.tr,
|
||||
positiveString: ConstTexts.ok.tr,
|
||||
negativeString: ConstTexts.cancel.tr,
|
||||
positiveClick: () async {
|
||||
await Preferences.setString(
|
||||
Preferences.foodDeliveryType,
|
||||
@@ -888,7 +885,7 @@ class CategoryView extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
"Our Categories".tr,
|
||||
ConstTexts.ourCategories.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: AppThemeData.semiBold,
|
||||
color:
|
||||
@@ -904,7 +901,7 @@ class CategoryView extends StatelessWidget {
|
||||
Get.to(const ViewAllCategoryScreen());
|
||||
},
|
||||
child: Text(
|
||||
"See all".tr,
|
||||
ConstTexts.seeAll.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontFamily: AppThemeData.medium,
|
||||
@@ -919,7 +916,7 @@ class CategoryView extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
GradientText(
|
||||
'Best Servings Food'.tr,
|
||||
ConstTexts.bestServingFood.tr,
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
fontFamily: 'Inter Tight',
|
||||
@@ -1023,7 +1020,7 @@ class OfferView extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
"Large Discounts".tr,
|
||||
ConstTexts.largestDiscounts.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: AppThemeData.semiBold,
|
||||
color:
|
||||
@@ -1046,7 +1043,7 @@ class OfferView extends StatelessWidget {
|
||||
);
|
||||
},
|
||||
child: Text(
|
||||
"See all".tr,
|
||||
ConstTexts.seeAll.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontFamily: AppThemeData.medium,
|
||||
|
||||
Reference in New Issue
Block a user