Navigator v1 dùng lệnh imperative Navigator.push() và Navigator.pop() — bạn quản lý navigation stack thủ công.
- Navigator 2.0 giới thiệu declarative routing qua Router API.
- GoRouter (được khuyến nghị hiện nay) xây trên đó, cung cấp URL-based, type-safe declarative routing.
- GoRouter đơn giản hơn và tự động xử lý deep linking, trở thành lựa chọn hiện đại cho project mới.
Navigator v1 uses imperative Navigator.push() and Navigator.pop() calls to manually manage the navigation stack.
GoRouter (recommended now) provides URL-based declarative routing with automatic deep linking support, making it the modern choice for new projects.