iampawan / Flutter-UI-Kit

Flutter app for collection of UI in a UIKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Got this warning, is this bad?

dannycortesv opened this issue · comments

Having BuildContext _context;

Generates this warning:

This class is marked as '@inmutable', but one or more of its instance fields are not final: LoginPage._context

so how can we have global vars?

Thanks for your help ;)

It's not bad. But if you really need to use any non-final variable which is supposed to change then change the stateless widget to stateful and boom, the error is gone.

Thanks for your help! Yes i did it, and boom the error was gone, haha.