Skip to content

Commit

Permalink
refactor(slides): replace spaces with dashes in routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Roaa94 committed Jul 13, 2024
1 parent b4ff25f commit c22b331
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion slides/lib/templates/code_slide.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CodeSlide extends FlutterDeckSlideWidget {
configuration: FlutterDeckSlideConfiguration(
route: route != null
? '/$route'
: '/${title.toLowerCase().replaceAll(' ', '')}',
: '/${title.toLowerCase().replaceAll(' ', '-')}',
title: '$title${subtitle == null ? '' : ' - $subtitle'}',
),
);
Expand Down
2 changes: 1 addition & 1 deletion slides/lib/templates/demo_slide.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DemoSlide extends FlutterDeckSlideWidget {
configuration: FlutterDeckSlideConfiguration(
route: route != null
? '/$route'
: '/${title.toLowerCase().replaceAll(' ', '')}',
: '/${title.toLowerCase().replaceAll(' ', '-')}',
title: '$title${subtitle == null ? '' : ' - $subtitle'}',
),
);
Expand Down
2 changes: 1 addition & 1 deletion slides/lib/templates/image_slide.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ImageSlide extends FlutterDeckSlideWidget {
configuration: FlutterDeckSlideConfiguration(
route: route != null
? '/$route'
: '/${title.toLowerCase().replaceAll(' ', '')}',
: '/${title.toLowerCase().replaceAll(' ', '-')}',
title: '$title${subtitle == null ? '' : ' - $subtitle'}',
),
);
Expand Down
2 changes: 1 addition & 1 deletion slides/lib/templates/placeholder_slide.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class PlaceholderSlide extends FlutterDeckSlideWidget {
PlaceholderSlide(this.title, {this.subtitle, this.content})
: super(
configuration: FlutterDeckSlideConfiguration(
route: '/${title.toLowerCase().replaceAll(' ', '')}',
route: '/${title.toLowerCase().replaceAll(' ', '-')}',
title: '$title${subtitle == null ? '' : ' - $subtitle'}',
),
);
Expand Down
2 changes: 1 addition & 1 deletion slides/lib/templates/section_title_slide.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SectionTitleSlide extends FlutterDeckSlideWidget {
configuration: FlutterDeckSlideConfiguration(
route: route != null
? '/$route'
: '/${title.toLowerCase().replaceAll(' ', '')}',
: '/${title.toLowerCase().replaceAll(' ', '-')}',
title: '$title${subtitle == null ? '' : ' - $subtitle'}',
),
);
Expand Down

0 comments on commit c22b331

Please sign in to comment.