destination_lock 0.0.2+2 copy "destination_lock: ^0.0.2+2" to clipboard
destination_lock: ^0.0.2+2 copied to clipboard

discontinued
outdated

Lock/unlock destinations that your application can reach

example/destination_lock_example.dart

import 'package:destination_lock/destination_lock.dart';
import 'package:destination_lock/tree/models/regular_route.dart';
import 'package:destination_lock/tree/models/root_route.dart';

List<String> _blockedRoutes = [];
DestinationLock routeTree = DestinationLock(
  rootRoute: RootRoute(
    widget: null,
  ),
  regularRoutes: [
    RegularRoute(
      path: '/c',
      widget: null,
      children: [
        RegularRoute(
          path: '/c/a',
          widget: null,
        ),
        RegularRoute(
          path: '/c/b',
          widget: null,
        ),
      ],
    ),
    RegularRoute(
      path: '/d',
      widget: null,
    ),
  ],
  blockedRoutes: _blockedRoutes,
);

final map = routeTree.convertToTreeStructure();
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Lock/unlock destinations that your application can reach

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on destination_lock