Milad-Akarie / auto_route_library

Flutter route generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoTabsScaffold rebuilding every time

shahmirzali49 opened this issue · comments

when I push another page, bottom nav widgets or AutoTabsScaffold rebuilding.

video : https://youtu.be/70iycBwTE5E

@Milad-Akarie my route file

@MaterialAutoRouter(
  replaceInRouteName: 'Page|Dialog,Route',
  routes: <AutoRoute>[
    AutoRoute(
      page: SplashPage,
      path: RouteConsts.SPLASH,
      initial: true,
    ),
    AutoRoute(
      page: OnboardingPage,
      path: RouteConsts.ONBOARDING,
    ),
    CustomRoute(
      page: OndanMainPage,
      path: RouteConsts.ONDAN_MAIN,
      transitionsBuilder: TransitionsBuilders.slideLeft,
    ),
    AutoRoute<String>(
      path: RouteConsts.BOTTOM_NAV_HOME,
      page: HomePage,
      children: [
        AutoRoute(
          // path: '',
          path: RouteConsts.CATEGORY_HOME,
          page: CategoryHomePage,
          initial: true,
        ),
        AutoRoute(
          // path: '',
          path: RouteConsts.SEARCH,
          page: SearchPage, 

        ),
        AutoRoute(
          // path: '',
          path: RouteConsts.BASKET, 
          page: BasketPage,
        ),
        AutoRoute(
          // path: '',
          path: RouteConsts.PROFILE, 
          page: ProfilePage,
        ),
      ],
    ),
    AutoRoute(
      page: BasketCheckOutPage,
      path: RouteConsts.BASKET_CHECK_OUT,
    ),
    AutoRoute(
      page: ProductDetailPage,
      path: RouteConsts.PRODUCT_DETAIL,
    ),
    AutoRoute(
      page: ChooseYourAdressPage,
      path: RouteConsts.CHOOSE_YOUR_ADRESS,
    ),
    AutoRoute(
      page: CategorySearchPage,
      path: RouteConsts.CATEGORY_SEARCH,
    ),
    AutoRoute(
      page: MyCreditCardsPage,
      path: RouteConsts.MY_CREDIT_CARDS,
    ),
    AutoRoute(
      page: AddCreditCardPage,
      path: RouteConsts.ADD_CREDIT_CARD,
    ),
    AutoRoute(
      page: LoginPage,
      path: RouteConsts.LOGIN,
    ),
    AutoRoute(
      page: RegisterPage,
      path: RouteConsts.REGISTER,
    ),
      ],
    ),
  ],
)
class $AppRouter {}

example : https://mega.nz/folder/GGY2VQxa#rarnevAFuFmgVRAJX3KrKg

@Milad-Akarie can you look at it when you have time? it's normal REBUILDING there or it's the issue?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions