Enable strict-inference (#135043)
Avoids that dynamic accidentally sneaks in, see https://dart.dev/tools/analysis#enabling-additional-type-checks
This commit is contained in:
committed by
GitHub
parent
96a4ae9dc5
commit
b0a90aee17
@@ -91,7 +91,7 @@ class _BottomNavigationBarExampleState extends State<BottomNavigationBarExample>
|
||||
}
|
||||
|
||||
void showModal(BuildContext context) {
|
||||
showDialog(
|
||||
showDialog<void>(
|
||||
context: context,
|
||||
builder: (BuildContext context) => AlertDialog(
|
||||
content: const Text('Example Dialog'),
|
||||
|
||||
Reference in New Issue
Block a user