|
|
|
@ -67,8 +67,8 @@ class _MazayaDiscoverScreenState extends State<MazayaDiscoverScreen> {
|
|
|
|
// Fixed-category sections - to point a section at a different category, change only the id
|
|
|
|
// Fixed-category sections - to point a section at a different category, change only the id
|
|
|
|
// passed here. Everything else (fetch, title, UI) reads off the _MazayaCategorySection object.
|
|
|
|
// passed here. Everything else (fetch, title, UI) reads off the _MazayaCategorySection object.
|
|
|
|
final _MazayaCategorySection _travelSection = _MazayaCategorySection('p03');
|
|
|
|
final _MazayaCategorySection _travelSection = _MazayaCategorySection('p03');
|
|
|
|
final _MazayaCategorySection _homeKitchenSection = _MazayaCategorySection(
|
|
|
|
final _MazayaCategorySection _activitiesSection = _MazayaCategorySection(
|
|
|
|
'Bw',
|
|
|
|
'jk0',
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
@ -99,7 +99,7 @@ class _MazayaDiscoverScreenState extends State<MazayaDiscoverScreen> {
|
|
|
|
if (mounted) {
|
|
|
|
if (mounted) {
|
|
|
|
_fetchLatestOnMazaya();
|
|
|
|
_fetchLatestOnMazaya();
|
|
|
|
_fetchCategorySection(_travelSection);
|
|
|
|
_fetchCategorySection(_travelSection);
|
|
|
|
_fetchCategorySection(_homeKitchenSection);
|
|
|
|
_fetchCategorySection(_activitiesSection);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -305,7 +305,7 @@ class _MazayaDiscoverScreenState extends State<MazayaDiscoverScreen> {
|
|
|
|
setState(() => selectedCity = AppState().selectedMazayaCity);
|
|
|
|
setState(() => selectedCity = AppState().selectedMazayaCity);
|
|
|
|
_fetchLatestOnMazaya();
|
|
|
|
_fetchLatestOnMazaya();
|
|
|
|
_fetchCategorySection(_travelSection);
|
|
|
|
_fetchCategorySection(_travelSection);
|
|
|
|
_fetchCategorySection(_homeKitchenSection);
|
|
|
|
_fetchCategorySection(_activitiesSection);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -325,7 +325,7 @@ class _MazayaDiscoverScreenState extends State<MazayaDiscoverScreen> {
|
|
|
|
setState(() => selectedCity = AppState().selectedMazayaCity);
|
|
|
|
setState(() => selectedCity = AppState().selectedMazayaCity);
|
|
|
|
_fetchLatestOnMazaya();
|
|
|
|
_fetchLatestOnMazaya();
|
|
|
|
_fetchCategorySection(_travelSection);
|
|
|
|
_fetchCategorySection(_travelSection);
|
|
|
|
_fetchCategorySection(_homeKitchenSection);
|
|
|
|
_fetchCategorySection(_activitiesSection);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -349,7 +349,7 @@ class _MazayaDiscoverScreenState extends State<MazayaDiscoverScreen> {
|
|
|
|
setState(() => selectedCity = AppState().selectedMazayaCity);
|
|
|
|
setState(() => selectedCity = AppState().selectedMazayaCity);
|
|
|
|
_fetchLatestOnMazaya();
|
|
|
|
_fetchLatestOnMazaya();
|
|
|
|
_fetchCategorySection(_travelSection);
|
|
|
|
_fetchCategorySection(_travelSection);
|
|
|
|
_fetchCategorySection(_homeKitchenSection);
|
|
|
|
_fetchCategorySection(_activitiesSection);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -358,7 +358,7 @@ class _MazayaDiscoverScreenState extends State<MazayaDiscoverScreen> {
|
|
|
|
_fetchCategories(),
|
|
|
|
_fetchCategories(),
|
|
|
|
_fetchLatestOnMazaya(),
|
|
|
|
_fetchLatestOnMazaya(),
|
|
|
|
_fetchCategorySection(_travelSection),
|
|
|
|
_fetchCategorySection(_travelSection),
|
|
|
|
_fetchCategorySection(_homeKitchenSection),
|
|
|
|
_fetchCategorySection(_activitiesSection),
|
|
|
|
_fetchExclusiveOffers(),
|
|
|
|
_fetchExclusiveOffers(),
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -550,17 +550,17 @@ class _MazayaDiscoverScreenState extends State<MazayaDiscoverScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_buildBrandSection(
|
|
|
|
_buildBrandSection(
|
|
|
|
title: _sectionTitle(
|
|
|
|
title: _sectionTitle(
|
|
|
|
_homeKitchenSection,
|
|
|
|
_activitiesSection,
|
|
|
|
LocaleKeys.homeAndKitchen.tr(),
|
|
|
|
LocaleKeys.homeAndKitchen.tr(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
subtitle: LocaleKeys.curatedPicksForYourHomeAndKitchen.tr(),
|
|
|
|
subtitle: LocaleKeys.curatedPicksForYourHomeAndKitchen.tr(),
|
|
|
|
isLoading: _homeKitchenSection.isLoading,
|
|
|
|
isLoading: _activitiesSection.isLoading,
|
|
|
|
retailers: _homeKitchenSection.retailers,
|
|
|
|
retailers: _activitiesSection.retailers,
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
onSeeAll:
|
|
|
|
onSeeAll:
|
|
|
|
() => _openRetailersGrid(
|
|
|
|
() => _openRetailersGrid(
|
|
|
|
category: _categoryForSection(
|
|
|
|
category: _categoryForSection(
|
|
|
|
_homeKitchenSection,
|
|
|
|
_activitiesSection,
|
|
|
|
LocaleKeys.homeAndKitchen.tr(),
|
|
|
|
LocaleKeys.homeAndKitchen.tr(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -650,7 +650,7 @@ class _MazayaDiscoverScreenState extends State<MazayaDiscoverScreen> {
|
|
|
|
setState(() => selectedCity = newCity);
|
|
|
|
setState(() => selectedCity = newCity);
|
|
|
|
_fetchLatestOnMazaya();
|
|
|
|
_fetchLatestOnMazaya();
|
|
|
|
_fetchCategorySection(_travelSection);
|
|
|
|
_fetchCategorySection(_travelSection);
|
|
|
|
_fetchCategorySection(_homeKitchenSection);
|
|
|
|
_fetchCategorySection(_activitiesSection);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
|