Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unhandled Exception: Invalid argument (computation): The type parameter is not nullable: null

Trying to run the following Flutter code in android Studio

enter image description here

Link to code on github https://github.com/cyeh1234/bloc_bug.git

Got the following error:

enter image description here

https://www.mitrais.com/news-updates/getting-started-with-flutter-bloc-pattern/

Correct output

enter image description here

like image 782
chuck Avatar asked May 11 '26 12:05

chuck


1 Answers

Remove <int> will fix this issue.

await Future.delayed(Duration(seconds: 3));
like image 56
John Joe Avatar answered May 14 '26 10:05

John Joe