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

The purpose of creating this routing library is to combine the functionalities of Flutter_Modular and Qlevar_Router libraries, providing a more powerful and flexible solution for route management.

example/lib/main.dart

import 'package:example/modules/app/module.dart';
import 'package:flutter/material.dart';
import 'package:oriole/oriole.dart';

final OrioleSettings settings = OrioleSettings(
  initPath: '/launch',
);

void main() {
  runApp(
    OrioleApp(
      module: AppModule(),
      settings: settings,
      child: const MyApp(),
    ),
  );
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      routerDelegate: Oriole.routerDelegate,
      routeInformationParser: Oriole.routeInformationParser,
    );
  }
}
1
likes
130
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

The purpose of creating this routing library is to combine the functionalities of Flutter_Modular and Qlevar_Router libraries, providing a more powerful and flexible solution for route management.

Repository (GitHub)
View/report issues

Topics

#navigation #router #modular-router #nested-routes #deep-linking

Documentation

API reference

License

MIT (license)

Dependencies

auto_injector, flutter, flutter_web_plugins

More

Packages that depend on oriole