Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Remove generic from showBottomSheet (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
goderbauer authored Nov 2, 2023
1 parent b702b3f commit fa031bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/codeviewer/code_segments.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3606,9 +3606,7 @@ class CodeSegments {
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
TextSpan(style: codeStyle.baseStyle, text: 'showBottomSheet'),
TextSpan(style: codeStyle.punctuationStyle, text: '<'),
TextSpan(style: codeStyle.keywordStyle, text: 'void'),
TextSpan(style: codeStyle.punctuationStyle, text: '>('),
TextSpan(style: codeStyle.punctuationStyle, text: '('),
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
TextSpan(style: codeStyle.punctuationStyle, text: '('),
TextSpan(style: codeStyle.baseStyle, text: 'context'),
Expand Down
2 changes: 1 addition & 1 deletion lib/demos/material/bottom_sheet_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class _PersistentBottomSheetDemoState
});

Scaffold.of(context)
.showBottomSheet<void>(
.showBottomSheet(
(context) {
return _BottomSheetContent();
},
Expand Down

0 comments on commit fa031bf

Please sign in to comment.