Answers for "hud flutter"

2

model progress hud flutter

Used to add loading..... when logging in and during registration
Posted by: Guest on August-30-2020
0

hud flutter

bool spooner = false;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: ModalProgressHUD(
        inAsyncCall: spooner,
        child: RoundedButton(
                title: 'Register',
                color: Colors.lightBlueAccent,
                onPressed: () async {
                  setState(() {
                    spooner = true;
                  });
                  try {
                    final newUser = await _auth.createUserWithEmailAndPassword(
                        email: email, password: password);
                    if (newUser != null) {
                      Navigator.pushNamed(context, ChatScreen.id);
                    }
                    setState(() {
                      spooner = false;
                    });
                  } catch (e) {
                    print(e);
                  }
                },
              ),
            ],
}
Posted by: Guest on August-30-2020

Code answers related to "hud flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language