fa_button 0.0.3 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 #
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,
),
),
);
}
}