routefly 0.0.1 copy "routefly: ^0.0.1" to clipboard
routefly: ^0.0.1 copied to clipboard

Gerenciador de rotas baseadas em pastas inspirado no NextJS

example/lib/main.dart

import 'package:example/routes.dart';
import 'package:flutter/material.dart';
import 'package:flutter_web_plugins/url_strategy.dart';
import 'package:routefly/routefly.dart';

void main() {
  usePathUrlStrategy();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      routerConfig: Routefly.routerConfig(
        initialPath: '/home',
        routes: routes,
      ),
    );
  }
}
182
likes
0
pub points
83%
popularity

Publisher

verified publisherflutterando.com.br

Gerenciador de rotas baseadas em pastas inspirado no NextJS

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on routefly