authentication_chris

Creator: coderz1093

Last updated:

0 purchases

authentication_chris Image
authentication_chris Images

Languages

Categories

Add to Cart

Description:

authentication chris

Authentication_HNG #
This is the authentication for hng just my personal test
Features #

Signup
Login
Reset Password
Logout

Getting started #
Just follow installation process
Usage #
example/lib/main.dart
import 'package:authentication/authentication.dart';
import 'package:flutter/material.dart';

class Signup extends StatelessWidget {
final Authentication auth = Authentication();

@override
Widget build(BuildContext context) {
return Scaffold(
body: ElevatedButton(
onPressed: () {
auth
.signUp('[email protected]', 'John Doe', 'password')
.then((responseData) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('Successfully signed up: $responseData'),
duration: Duration(seconds: 2),
),
);
}).catchError((e) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(e.toString()),
duration: Duration(seconds: 2),
),
);
});
},
child: Text('Sign Up'),
),
);
}
}

copied to clipboard
Additional information #
YOu can contact us to get more information

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.