null safety
This commit is contained in:
@@ -24,7 +24,7 @@ class _ProfileEditState extends State<ProfileEdit> {
|
||||
void initState() {
|
||||
super.initState();
|
||||
MainModel mainModel = Provider.of<MainModel>(context, listen: false);
|
||||
nameController.text = mainModel.user.name;
|
||||
nameController.text = mainModel.user!.name ?? "";
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user