authentication_chris 0.0.4 copy "authentication_chris: ^0.0.4" to clipboard
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 #

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('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

0
likes
130
pub points
0%
popularity

Publisher

unverified uploader

An Authentication package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, google_fonts, http

More

Packages that depend on authentication_chris