Flutter Error: Instance member 'user' can't be accessed using static access

Flutter Error: Instance member 'user' can't be accessed using static access

I/m 面临这个问题。有人可以帮忙吗? 谢谢 First page

Second page. Both pages are shown below

为了通过静态访问访问成员,需要像这样将其标记为静态:

static final myStaticFinalVariable;

或者,您必须首先实例化class,方法是创建实例() 来调用实例方法。

AuthService().user