forked from firka/flutter
Remove unused generic type from BottomSheet (#137791)
Fixes https://github.com/flutter/flutter/issues/137424. The generic type argument was unused.
This commit is contained in:
committed by
GitHub
parent
6f5ca8542c
commit
8a0f9118ea
@@ -1579,7 +1579,7 @@ class BottomSheetSection extends StatefulWidget {
|
||||
|
||||
class _BottomSheetSectionState extends State<BottomSheetSection> {
|
||||
bool isNonModalBottomSheetOpen = false;
|
||||
PersistentBottomSheetController<void>? _nonModalBottomSheetController;
|
||||
PersistentBottomSheetController? _nonModalBottomSheetController;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -1663,7 +1663,7 @@ class _BottomSheetSectionState extends State<BottomSheetSection> {
|
||||
});
|
||||
}
|
||||
|
||||
_nonModalBottomSheetController = showBottomSheet<void>(
|
||||
_nonModalBottomSheetController = showBottomSheet(
|
||||
elevation: 8.0,
|
||||
context: context,
|
||||
constraints: const BoxConstraints(maxWidth: 640),
|
||||
|
||||
@@ -265,7 +265,7 @@ class StockHomeState extends State<StockHome> {
|
||||
Navigator.pushNamed(context, '/stock', arguments: stock.symbol);
|
||||
},
|
||||
onShow: (Stock stock) {
|
||||
_scaffoldKey.currentState!.showBottomSheet<void>((BuildContext context) => StockSymbolBottomSheet(stock: stock));
|
||||
_scaffoldKey.currentState!.showBottomSheet((BuildContext context) => StockSymbolBottomSheet(stock: stock));
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user