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

A plugin to help manage deferred content of a flutter ap

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const 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))];
      },
      onGenerateRoute: (settings) {
        return Dir.routes(settings);
      },
    );
  }
}
5
likes
0
pub points
55%
popularity

Publisher

unverified uploader

A plugin to help manage deferred content of a flutter ap

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on deferred_helper