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:
Michael Goderbauer
2023-11-03 15:25:37 -07:00
committed by GitHub
parent 6f5ca8542c
commit 8a0f9118ea
19 changed files with 65 additions and 69 deletions

View File

@@ -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));
},
);
}