ShellRoute bọc nhiều route với một parent chia sẻ (như bottom navigation bar).
- Route bên trong
ShellRoutebuild trong context của parent đó, duy trì navigation stack độc lập cho mỗi tab. - Đây là cách đúng để triển khai bottom tab navigation: mỗi tab có lịch sử điều hướng riêng, nhấn tab hiển thị lịch sử của nó thay vì bắt đầu mới.
- Không có
ShellRoute, chuyển tab sẽ làm nút back hoạt động sai.
ShellRoute wraps multiple routes with a shared parent like a bottom navigation bar.
- Routes inside maintain independent navigation stacks for each tab.
- This is the correct way to implement bottom tab navigation — without
ShellRoute, switching tabs breaks the back button behavior.