Skip to main content

ag_flow 0.2.0 copy "ag_flow: ^0.2.0" to clipboard
ag_flow: ^0.2.0 copied to clipboard

An opinionated Flutter framework: typed page-state, paginated list controllers, a type-keyed DI locator, guard-based routing over go_router, and a centralized networking layer — zero third-party state [...]

example/lib/main.dart

import 'package:ag_flow/ag_flow.dart';
import 'package:ag_flow_example/core/bindings/initial_binding.dart';
import 'package:ag_flow_example/core/routes/app_pages.dart';
import 'package:ag_flow_example/core/routes/app_routes.dart';
import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return AgApp(
      title: 'ag_flow example',
      // Start on /login.
      // • Not logged in → LoginPage shown (GuestGuard passes through).
      // • Already logged in (e.g. after hot restart with persisted session)
      //   → GuestGuard on /login fires and redirects to /home automatically.
      initialRoute: AppRoutes.login,
      initialBinding: InitialBinding(),
      routes: AppPages.pages,
    );
  }
}
0
likes
140
points
436
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

An opinionated Flutter framework: typed page-state, paginated list controllers, a type-keyed DI locator, guard-based routing over go_router, and a centralized networking layer — zero third-party state-management dependency.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

collection, dio, flutter, go_router, meta

More

Packages that depend on ag_flow