@@ -245,81 +245,84 @@ GoRouter createRouter({
245245 StatefulShellBranch (
246246 routes: [
247247 GoRoute (
248- path: Routes .localAdsManagement ,
249- name: Routes .localAdsManagementName ,
250- builder: (context, state) => const LocalAdsManagementPage (),
248+ path: Routes .appConfiguration ,
249+ name: Routes .appConfigurationName ,
250+ builder: (context, state) => const AppConfigurationPage (),
251251 routes: [
252+ // Nested local ads management routes
252253 GoRoute (
253- path: Routes .archivedLocalAds,
254- name: Routes .archivedLocalAdsName,
255- builder: (context, state) => const ArchivedLocalAdsPage (),
256- ),
257- GoRoute (
258- path: Routes .createLocalNativeAd,
259- name: Routes .createLocalNativeAdName,
260- builder: (context, state) => const CreateLocalNativeAdPage (),
261- ),
262- GoRoute (
263- path: Routes .editLocalNativeAd,
264- name: Routes .editLocalNativeAdName,
265- builder: (context, state) {
266- final adId = state.pathParameters['id' ]! ;
267- return EditLocalNativeAdPage (adId: adId);
268- },
269- ),
270- GoRoute (
271- path: Routes .createLocalBannerAd,
272- name: Routes .createLocalBannerAdName,
273- builder: (context, state) => const CreateLocalBannerAdPage (),
274- ),
275- GoRoute (
276- path: Routes .editLocalBannerAd,
277- name: Routes .editLocalBannerAdName,
278- builder: (context, state) {
279- final adId = state.pathParameters['id' ]! ;
280- return EditLocalBannerAdPage (adId: adId);
281- },
282- ),
283- GoRoute (
284- path: Routes .createLocalInterstitialAd,
285- name: Routes .createLocalInterstitialAdName,
286- builder: (context, state) =>
287- const CreateLocalInterstitialAdPage (),
288- ),
289- GoRoute (
290- path: Routes .editLocalInterstitialAd,
291- name: Routes .editLocalInterstitialAdName,
292- builder: (context, state) {
293- final adId = state.pathParameters['id' ]! ;
294- return EditLocalInterstitialAdPage (adId: adId);
295- },
296- ),
297- GoRoute (
298- path: Routes .createLocalVideoAd,
299- name: Routes .createLocalVideoAdName,
300- builder: (context, state) => const CreateLocalVideoAdPage (),
301- ),
302- GoRoute (
303- path: Routes .editLocalVideoAd,
304- name: Routes .editLocalVideoAdName,
305- builder: (context, state) {
306- final adId = state.pathParameters['id' ]! ;
307- return EditLocalVideoAdPage (adId: adId);
308- },
254+ path: Routes .localAdsManagement,
255+ name: Routes .localAdsManagementName,
256+ builder: (context, state) => const LocalAdsManagementPage (),
257+ routes: [
258+ GoRoute (
259+ path: Routes .archivedLocalAds,
260+ name: Routes .archivedLocalAdsName,
261+ builder: (context, state) =>
262+ const ArchivedLocalAdsPage (),
263+ ),
264+ GoRoute (
265+ path: Routes .createLocalNativeAd,
266+ name: Routes .createLocalNativeAdName,
267+ builder: (context, state) =>
268+ const CreateLocalNativeAdPage (),
269+ ),
270+ GoRoute (
271+ path: Routes .editLocalNativeAd,
272+ name: Routes .editLocalNativeAdName,
273+ builder: (context, state) {
274+ final adId = state.pathParameters['id' ]! ;
275+ return EditLocalNativeAdPage (adId: adId);
276+ },
277+ ),
278+ GoRoute (
279+ path: Routes .createLocalBannerAd,
280+ name: Routes .createLocalBannerAdName,
281+ builder: (context, state) =>
282+ const CreateLocalBannerAdPage (),
283+ ),
284+ GoRoute (
285+ path: Routes .editLocalBannerAd,
286+ name: Routes .editLocalBannerAdName,
287+ builder: (context, state) {
288+ final adId = state.pathParameters['id' ]! ;
289+ return EditLocalBannerAdPage (adId: adId);
290+ },
291+ ),
292+ GoRoute (
293+ path: Routes .createLocalInterstitialAd,
294+ name: Routes .createLocalInterstitialAdName,
295+ builder: (context, state) =>
296+ const CreateLocalInterstitialAdPage (),
297+ ),
298+ GoRoute (
299+ path: Routes .editLocalInterstitialAd,
300+ name: Routes .editLocalInterstitialAdName,
301+ builder: (context, state) {
302+ final adId = state.pathParameters['id' ]! ;
303+ return EditLocalInterstitialAdPage (adId: adId);
304+ },
305+ ),
306+ GoRoute (
307+ path: Routes .createLocalVideoAd,
308+ name: Routes .createLocalVideoAdName,
309+ builder: (context, state) =>
310+ const CreateLocalVideoAdPage (),
311+ ),
312+ GoRoute (
313+ path: Routes .editLocalVideoAd,
314+ name: Routes .editLocalVideoAdName,
315+ builder: (context, state) {
316+ final adId = state.pathParameters['id' ]! ;
317+ return EditLocalVideoAdPage (adId: adId);
318+ },
319+ ),
320+ ],
309321 ),
310322 ],
311323 ),
312324 ],
313325 ),
314- StatefulShellBranch (
315- routes: [
316- GoRoute (
317- path: Routes .appConfiguration,
318- name: Routes .appConfigurationName,
319- builder: (context, state) => const AppConfigurationPage (),
320- ),
321- ],
322- ),
323326 ],
324327 ),
325328 ],
0 commit comments