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
@@ -220,7 +220,7 @@ class RootPage extends StatelessWidget {
|
||||
return ElevatedButton(
|
||||
style: buttonStyle,
|
||||
onPressed: () {
|
||||
showBottomSheet<void>(
|
||||
showBottomSheet(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return Container(
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user