Loading...
Loading...
Comprehensive guide for Flutter navigation and routing including Navigator API, go_router, deep linking, passing/returning data, and web-specific navigation. Use when implementing screen transitions, configuring routing systems, setting up deep links, handling browser history, or managing navigation state in Flutter applications.
npx skill4agent add madteacher/mad-agents-skills flutter-navigationassets/navigator_basic.dartassets/go_router_basic.dartNavigator.push(
context,
MaterialPageRoute(builder: (context) => DetailScreen(item: myItem)),
);context.push('/details?id=123');
// Extract: final id = state.uri.queryParameters['id'];assets/passing_data.dartfinal result = await Navigator.push(
context,
MaterialPageRoute<String>(builder: (context) => SelectionScreen()),
);
if (!context.mounted) return;assets/returning_data.dartAndroidManifest.xmlInfo.plistreferences/deep-linking.mdexample.com/#/pathexample.com/pathreferences/web-navigation.mdcontext.go('/path')context.push('/path')context.pop()Navigator.push()Navigator.pop()references/go_router-guide.md