fa_button 0.0.3 copy "fa_button: ^0.0.3" to clipboard
fa_button: ^0.0.3 copied to clipboard

A new Flutter plugging for firebase auth (anonyme, connexion, inscription, google, facebook).

fa_button #

A new Flutter plugging for firebase auth (anonyme, connexion, inscription, google, facebook).

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Examples #

Screenshot from 2022-06-18 22-13-52

Screenshot from 2022-06-18 22-15-01

Screenshot from 2022-06-18 22-15-16

Screenshot from 2022-06-18 22-15-33

Screenshot from 2022-06-18 22-15-58

INSTALLATION #

Terminal method Run one of the following command by opening your project folder on the terminal. With Dart:

dart pub add fa_button

With Flutter:

flutter pub add fa_button

Manual method This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  fa_button: ^0.0.1

IMPLEMENTATION #

import 'package:fa_button/fa_button.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _flutterAuthPlugin = FAButton(
    type: "inscription", //anonyme, connexion, inscription, google, facebook
    onPressed: () {
      if (kDebugMode) {
        print("google");
      }
    },
  );

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: _flutterAuthPlugin,
        ),
      ),
    );
  }
}
1
likes
90
pub points
19%
popularity

Publisher

unverified uploader

A new Flutter plugging for firebase auth (anonyme, connexion, inscription, google, facebook).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_web_plugins, font_awesome_flutter, plugin_platform_interface

More

Packages that depend on fa_button