diff --git a/lib/src/declarative_navigatable/stateless_navigator.dart b/lib/src/declarative_navigatable/stateless_navigator.dart index 2a8216c..14efa1c 100644 --- a/lib/src/declarative_navigatable/stateless_navigator.dart +++ b/lib/src/declarative_navigatable/stateless_navigator.dart @@ -1,8 +1,16 @@ import 'package:fdr/fdr.dart'; -abstract class StatelessNavigator extends MappedNavigatableSource { - StatelessNavigator() : super(initialState: null); +abstract class StatelessNavigator extends StatefulNavigator { + List build(); @override - List build(); + StatefulNavigatorState createState() => + _StatelessNavigatorState(); +} + +class _StatelessNavigatorState extends StatefulNavigatorState { + @override + List build() { + return (navigator as StatelessNavigator).build(); + } }