Questions
user482user482asked 4 months ago

how to fix this error, “flutter non-nullable instance field must be initialized”,

flutter-non-nullable-instance-field-must-be-initialized  
1

1 Answers

Accepted
codegenlabcodegenlabanswered 4 months ago
you get this error because of null safety, try to add “late” before yore variable,
late double screenWidth;
late double screenHeight;
1