authentication_chris 0.0.4 authentication_chris: ^0.0.4 copied to clipboard
An Authentication package.
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 #
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('test@example.com', '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'),
),
);
}
}
Additional information #
YOu can contact us to get more information