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

@@ -220,7 +220,7 @@ class RootPage extends StatelessWidget {
return ElevatedButton(
style: buttonStyle,
onPressed: () {
showBottomSheet<void>(
showBottomSheet(
context: context,
builder: (BuildContext context) {
return Container(

View File

@@ -36,7 +36,7 @@ class MyScaffoldBody extends StatelessWidget {
child: ElevatedButton(
child: const Text('SHOW BOTTOM SHEET'),
onPressed: () {
Scaffold.of(context).showBottomSheet<void>(
Scaffold.of(context).showBottomSheet(
(BuildContext context) {
return Container(
alignment: Alignment.center,

View File

@@ -34,7 +34,7 @@ class OfExample extends StatelessWidget {
child: ElevatedButton(
child: const Text('SHOW BOTTOM SHEET'),
onPressed: () {
Scaffold.of(context).showBottomSheet<void>(
Scaffold.of(context).showBottomSheet(
(BuildContext context) {
return Container(
alignment: Alignment.center,

View File

@@ -31,7 +31,7 @@ class ShowBottomSheetExample extends StatelessWidget {
child: ElevatedButton(
child: const Text('showBottomSheet'),
onPressed: () {
Scaffold.of(context).showBottomSheet<void>(
Scaffold.of(context).showBottomSheet(
(BuildContext context) {
return Container(
height: 200,