skip to Main Content

future: FirebaseAuth.instance.currentUser(), throws an error, need alternatives – Flutter

I have seen various questions about the same topic, and realized that 'currentUser' does not go with future after the update in FirebaseAuth import 'package:flutter/material.dart'; import 'package:firebase_auth/firebase_auth.dart'; class HomePage extends StatefulWidget { @override _HomePageState createState() => _HomePageState(); } class _HomePageState…

VIEW QUESTION

Getting a red squiggly line when I return null with a message 'Null isn't a string' – Flutter

import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:mybankapp/authscreens/loginscreen.dart'; import 'package:mybankapp/colors/colors.dart'; import 'package:mybankapp/routscreens/routwidget.dart'; import 'package:mybankapp/textfontfamily/textfontfamily.dart'; import 'package:mybankapp/welcomescreen/welcomescreen.dart'; class SignUpScreen extends StatefulWidget { @override _SignUpScreenState createState() => _SignUpScreenState(); } class _SignUpScreenState extends State<SignUpScreen> { final _formKey = GlobalKey<FormState>(); late String _name; late…

VIEW QUESTION

Update variable outside a widget in Flutter?

Is it possible to update a variable outside a widget while calling it ? Here's an example : class Widget1 extends StatefulWidget { @override State<Widget1> createState() => _Widget1State(); } class _Widget1State extends State<Widget1> { String example = 'A'; @override Widget…

VIEW QUESTION

how to solve flutter formstate method?

I have this class in flutter abstract class ForgetPasswordController extends GetxController { checkemail(); } class ForgetPasswordControllerImp extends ForgetPasswordController { CheckEmailData checkEmailData = CheckEmailData(Get.find()) ; GlobalKey<FormState> formstate = GlobalKey<FormState>(); StatusRequest? statusRequest = StatusRequest.none ; late TextEditingController email; @override checkemail() async {…

VIEW QUESTION
Back To Top
Search