diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f78259..ea56d9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# NEXT + +- fix: hot reload doesn't work on macOS + # 0.11.0 - feat: set scroll position to currently active slide on navigation drawer open diff --git a/lib/src/flutter_deck_router.dart b/lib/src/flutter_deck_router.dart index 8623b7e..8616c33 100644 --- a/lib/src/flutter_deck_router.dart +++ b/lib/src/flutter_deck_router.dart @@ -5,16 +5,6 @@ import 'package:go_router/go_router.dart'; const _queryParameterStep = 'step'; -class _FlutterDeckSlidePage extends StatelessWidget { - const _FlutterDeckSlidePage(this.slide); - final FlutterDeckRouterSlide slide; - - @override - Widget build(BuildContext context) { - return slide.widget.build(context); - } -} - /// A slide route for the slide deck. class FlutterDeckRouterSlide { /// Creates a slide route for the slide deck. @@ -74,7 +64,7 @@ class FlutterDeckRouter { key: state.pageKey, restorationId: state.pageKey.value, transitionsBuilder: slide.configuration.transition.build, - child: _FlutterDeckSlidePage(slide), + child: Builder(builder: slide.widget.build), ), ), ],