Routefly

screenshot of Routefly

Folder-based route manager inspired by NextJS and created by the Flutterando community.

Overview

Routefly is an innovative folder-based route manager designed specifically for Flutter applications. Drawing inspiration from NextJS, it streamlines the route creation process by automatically generating routes as you structure your project files within designated directories. This means that developers can focus more on building their applications rather than managing complex routing configurations. As a product of the Flutterando community, Routefly embodies simplicity and functionality, making it an appealing choice for Flutter developers of all skill levels.

With Routefly, setting up your app's navigation becomes a breeze. By adhering to a specified folder structure within the "lib/app" directory, adding a new page is as simple as placing the corresponding code file in the right folder. This not only promotes better organization but also enhances the overall development experience in Flutter.

Features

  • Automatic Route Generation: Just organize your code files within the "pages" directory, and they automatically become accessible routes, eliminating tedious configurations.

  • Base Folder Customization: Use the @Main() annotation to designate a specific base folder for Routefly, with "lib/app" as the default, ensuring your app structure is tailored to your needs.

  • Route Groups: Organize your route segments logically by marking certain folders as Route Groups, which allows for cleaner URLs by preventing specific folders from being included in the URL path.

  • Dynamic Routing Capabilities: Create routes from dynamic data using segments enclosed in brackets (e.g., [id]), enabling more flexible and responsive navigation paths in your app.

  • Simple Navigation Methods: Easily navigate through your routes with intuitive methods such as Routefly.navigate(), Routefly.push(), and Routefly.pop(), simplifying the routing process.

  • Command Line Integration: Generate routes automatically using command-line commands, including a --watch flag for real-time route creation as pages are added.

  • Relative Path Support: Enhance navigation versatility by utilizing relative paths for accessing routes, catering to diverse project structures.

Flutter

Flutter is an open-source UI framework developed by Google that allows developers to create high-performance, cross-platform mobile applications with a single codebase.