Closed Swayam221 closed 1 year ago
Hi @Swayam221 Thanks for filing the issue,
Hi @Swayam221 Thanks for filing the issue,
You're welcome. I would like to work on this issue as well.
Duplicate of #6333
And fixed in 6dbe0c52428c93f8b2cc55b30ba1ba170782343e
/cc @TahaTesser
Fixed in https://github.com/flutter/website/pull/6333. Closing this issue.
Page URL
https://flutter.dev/docs/release/breaking-changes/buttons#migrating-buttons-with-custom-overlay-colors
Page source
https://github.com/flutter/website/blob/master/src/docs/release/breaking-changes/buttons.md
Describe the problem
How to reproduce:
The error: The line return null is responsible for the error as the expected return type is a 'Color' . Shown in line number 31 in the following code snapshot.
Expected fix
Can be fixed by replacing
MaterialStateProperty.resolveWith<Color>
withMaterialStateProperty.resolveWith<Color?>
wherever necessary.Additional context
No response