fa_button

Last updated:

0 purchases

fa_button Image
fa_button Images
Add to Cart

Description:

fa button

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
copied to clipboard
With Flutter:
flutter pub add fa_button
copied to clipboard
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
copied to clipboard
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,
),
),
);
}
}
copied to clipboard

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.