Milad-Akarie / auto_route_library

Flutter route generator
MIT License
1.59k stars 404 forks source link

AutoRoute widget ignores clicks in stack #2072

Closed AyatAliev closed 1 week ago

AyatAliev commented 1 month ago

Tell me why AutoRoute absorbs clicks, I have a map and a lower shield in the stack, I want both the map and the lower shield to work, but I can’t achieve this result, because there is an ignoring of clicks. I am attaching the code below.

AutoRoute(
          page: MapRoute.page,
          path: '/',
          children: [
            CustomRoute(
              page: BottomNavRoute.page,
              initial: true,
              children: [
                CustomRoute(
                  page: FirstRoute.page,
                  transitionsBuilder: TransitionsBuilders.noTransition,
                ),
              CustomRoute(
                page: SecondRoute.page,
                transitionsBuilder: TransitionsBuilders.noTransition,
              ),
            ],
          ),
          ],
        )
Stack(
      fit: StackFit.expand,
      children: [
        FlutterMap(),
        const AutoRouter(),
      ],
    )

It turns out that a bottom navigation bar appears on top of the map where it opens the first screen and there I have a bottom shield