Skip to content

Commit

Permalink
fixup! fix: hot reload didn't work property
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcheung committed Feb 23, 2024
1 parent 0b93ff6 commit 66ebc7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 1 addition & 11 deletions lib/src/flutter_deck_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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),
),
),
],
Expand Down

0 comments on commit 66ebc7e

Please sign in to comment.