uloc 1.0.20 copy "uloc: ^1.0.20" to clipboard
uloc: ^1.0.20 copied to clipboard

A lifecycle-aware routing library for Flutter. Supports named routes, Provider integration, code generation, and page lifecycle hooks like onInit, onReady, and onDispose.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:uloc_example/routes/routes.uloc.g.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'ULoC Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      initialRoute: Routes.HOME.name,
      onGenerateRoute: Routes.ulocRouteConfiguration.routeBuilder,
    );
  }
}
4
likes
0
points
86
downloads

Publisher

verified publisherdannynguyen.vn

Weekly Downloads

A lifecycle-aware routing library for Flutter. Supports named routes, Provider integration, code generation, and page lifecycle hooks like onInit, onReady, and onDispose.

Homepage
Repository (GitHub)
View/report issues

Topics

#routing #codegen #lifecycle #provider #architecture

License

unknown (license)

Dependencies

args, flutter, provider

More

Packages that depend on uloc