Skip to content

Commit

Permalink
fix: hot reload didn't work property
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcheung committed Feb 22, 2024
1 parent e68f538 commit 0b93ff6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/src/flutter_deck_router.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
import 'package:flutter/widgets.dart';
import 'package:flutter_deck/src/configuration/configuration.dart';
import 'package:flutter_deck/src/flutter_deck_slide.dart';
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 @@ -63,7 +74,7 @@ class FlutterDeckRouter {
key: state.pageKey,
restorationId: state.pageKey.value,
transitionsBuilder: slide.configuration.transition.build,
child: slide.widget.build(context),
child: _FlutterDeckSlidePage(slide),
),
),
],
Expand Down

0 comments on commit 0b93ff6

Please sign in to comment.