unstory 0.1.1
unstory: ^0.1.1 copied to clipboard
A browser-style history abstraction for Dart and Flutter routing.
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();
}