unstory 0.1.1 copy "unstory: ^0.1.1" to clipboard
unstory: ^0.1.1 copied to clipboard

A browser-style history abstraction for Dart and Flutter routing.

example/main.dart

import 'package:unstory/unstory.dart';

void main() {
  final history = createHistory(base: '/app', strategy: .browser);

  history.listen((event) {
    print('action=${event.action} location=${event.location}');
  });

  history.push(Uri.parse('/docs'), state: {'tab': 'intro'});
  history.replace(Uri.parse('/docs?tab=api'));
  history.back();

  history.dispose();
}
2
likes
160
points
160
downloads

Publisher

verified publishermedz.dev

Weekly Downloads

A browser-style history abstraction for Dart and Flutter routing.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

web

More

Packages that depend on unstory