deferred_helper 0.0.3 copy "deferred_helper: ^0.0.3" to clipboard
deferred_helper: ^0.0.3 copied to clipboard

A plugin to help manage deferred content of a flutter ap

example/lib/main.dart

import 'package:deferred_helper/deferred_helper.dart';
import 'package:example/directory.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  final deferredController = DeferredController();

  MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "FlockUp",
      // Navigator.defaultRouteName,
      onGenerateInitialRoutes: (initialRouteName) {
        return [
          Dir.routes(
              RouteSettings(name: Dir.deferredRoute.path), deferredController),
        ];
      },
      onGenerateRoute: (settings) {
        return Dir.routes(settings, deferredController);
      },
    );
  }
}
5
likes
140
pub points
55%
popularity

Publisher

unverified uploader

A plugin to help manage deferred content of a flutter ap

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on deferred_helper