diff --git a/CHANGELOG.md b/CHANGELOG.md index c35c71c..ae3828d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ ## 1.0.0-beta.1 * Initial publish + +## 1.0.0-beta.2 + +* Add documentation \ No newline at end of file diff --git a/example/pubspec.lock b/example/pubspec.lock index f7ea0cc..7990888 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -150,7 +150,7 @@ packages: path: ".." relative: true source: path - version: "0.0.1" + version: "1.0.0-beta.2" sky_engine: dependency: transitive description: flutter diff --git a/lib/src/simple_navigator_delegate.dart b/lib/src/simple_navigator_delegate.dart index 5f86fd9..f4f815b 100644 --- a/lib/src/simple_navigator_delegate.dart +++ b/lib/src/simple_navigator_delegate.dart @@ -9,7 +9,7 @@ import 'simple_navigator_route.dart'; import 'simple_navigator_stack_handler.dart'; import 'simple_navigator_stack_widget.dart'; -final class SimpleNavigatorDelegate extends RouterDelegate +class SimpleNavigatorDelegate extends RouterDelegate with ChangeNotifier implements ISimpleNavigator { late final GlobalKey _navigatorKey; diff --git a/lib/src/simple_navigator_params.dart b/lib/src/simple_navigator_params.dart index df499d6..1a073cb 100644 --- a/lib/src/simple_navigator_params.dart +++ b/lib/src/simple_navigator_params.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'simple_navigator_route.dart'; -final class SimpleNavigatorParams { +class SimpleNavigatorParams { final List routes; final WidgetBuilder? splash; final WidgetBuilder? notFound; diff --git a/lib/src/simple_navigator_parser.dart b/lib/src/simple_navigator_parser.dart index d3f829e..b45aca6 100644 --- a/lib/src/simple_navigator_parser.dart +++ b/lib/src/simple_navigator_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; -final class SimpleNavigatorParser extends RouteInformationParser { +class SimpleNavigatorParser extends RouteInformationParser { @override Future parseRouteInformation(RouteInformation routeInformation) => SynchronousFuture(routeInformation.uri); diff --git a/pubspec.yaml b/pubspec.yaml index 3b3d509..d5acb02 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,11 @@ name: simple_navigator description: This package comes with a simpler alternative to use than the go_router. If your project requires more complex routing, use the go_router. -version: 1.0.0-beta.1 +version: 1.0.0-beta.3 homepage: https://github.com/michaelopes/simple_navigator license: MIT environment: - sdk: '>=3.1.3 <4.0.0' + sdk: '>=2.18.0 <4.0.0' flutter: ">=1.17.0" dependencies: