go_navigator 1.0.1 copy "go_navigator: ^1.0.1" to clipboard
go_navigator: ^1.0.1 copied to clipboard

A comprehensive Flutter Navigation System that provides a set of utilities for managing routes, passing arguments, and navigating through your application with ease.

GoNavigator - 1.0.1 #

A Flutter plugin providing advanced navigation utilities for managing routes and the navigation stack in a Flutter application.

Features #

  • Navigate to specified routes with optional arguments.
  • Clear all previous routes from the stack.
  • Replace the current route with a named route.
  • Pop until a specific route is reached.
  • Navigate back to the previous screen with provided data.
  • And more!

Changes in Version 1.0.1 #

Added #

  • GoArgs replaces MyRouteArguments for more clarity and consistency.

Changed #

  • Decentralized parameters for each function in the navigation system.
    • Before: Go(context, routeName: Page1.routeName).to()
    • After: Go(context).to(routeName: Page1.routeName)

Usage #

This plugin offers a utility class Go<T> that simplifies navigation in a Flutter app. It provides methods for navigating to specific routes, managing the route stack, and passing data between screens.

Here's an overview of some key methods available in the Go<T> class:

toAndExpectData<T>() #

Navigates to a named route and expects to receive data back. It waits for the specified route to return data and returns the result obtained from the navigated route.

Future<T?> toAndExpectData<T>() async {
  // Implementation...
}

// Other methods...

These methods simplify navigation tasks and provide an easy way to manage route navigation in your Flutter app.

Getting Started #

To use this navigation system in your Flutter app:

  1. Add the go_navigator plugin to your pubspec.yaml file.
  2. Import the package into your Dart code.
  3. Create an instance of the Go<T> class and use its methods for navigation tasks.

For detailed implementation and usage instructions, refer to the code documentation and examples provided.

Platform Support #

This plugin is available on Android, iOS, MacOS, and Windows.

For more detailed instructions on how to use and implement this plugin, refer to Flutter's documentation.

3
likes
120
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A comprehensive Flutter Navigation System that provides a set of utilities for managing routes, passing arguments, and navigating through your application with ease.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on go_navigator