flutter_signin_button 0.2.4

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • new89

A Flutter plugin for iOS and Android for generating signin buttons for different social media account.

Feedback welcome and Pull Requests are most welcome!

Installation

Add to pubspec.yaml.

dependencies:
  ...
  flutter_signin_button: ^0.2.4

Usage Example

import flutter_signin_button.dart

import 'package:flutter_signin_button/flutter_signin_button.dart';

For built-in buttons.

SignInButton(
  Buttons.Google,
  onPressed: () {},
)

For mini buttons.

SignInButton(
  Buttons.Facebook,
  mini: true,
  onPressed: () {},
)

For self-build buttons.

SignInButtonBuilder(
  title: 'Email',
  icon: Icons.email,
  onPressed: () {},
  backgroundColor: Colors.blueGrey[700],
)

Built-in Buttons contain

enum Buttons {
  Email,
  Google,
  Facebook,
  GitHub,
  LinkedIn,
  Pinterest,
  Tumblr,
}

Refer to example folder and the source code for more information.

0.1.0

  • Initial build for flutter sign in button library.

0.1.1

  • fix change log
  • update example pubspec

0.1.2

  • delete image from root
  • use image from pinterest

0.1.3

  • change full example readme to example folder
  • update lisense

0.2.0

  • add customizable shape # encountering issues here. currently not responsible
  • add customizable width
  • update lisense
  • delete cupercino icons dependency
  • refactor code

0.2.1

  • Update MIT license

0.2.2

  • Update documentation of the library.

0.2.3

  • Delete shape field since Flutter constraint
  • Change defalt splash color
  • provide user defined splash color in ButtonBuilder Widget

0.2.3

  • Fix the bug on email signin button @matthiasbruns
  • Add user configured signin text @matthiasbruns

example/README.md

A Complete Example

import 'package:flutter/material.dart';
import 'package:flutter_signin_button/flutter_signin_button.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData.light(),
      home: LoginPage(),
      debugShowCheckedModeBanner: false,
    );
  }
}

class LoginPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Color.fromRGBO(50, 50, 50, 1.0),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            SignInButtonBuilder(
              title: 'Email',
              icon: Icons.email,
              onPressed: () {},
              backgroundColor: Colors.blueGrey[700],
            ),
            SignInButton(
              Buttons.Google,
              onPressed: () {},
            ),
            SignInButton(
              Buttons.Facebook,
              onPressed: () {},
            ),
            SignInButton(
              Buttons.GitHub,
              onPressed: () {},
            ),
            SignInButton(
              Buttons.Pinterest,
              onPressed: () {},
            ),
            Divider(),
            Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                SignInButton(
                  Buttons.LinkedIn,
                  mini: true,
                  onPressed: () {},
                ),
                SignInButton(
                  Buttons.Tumblr,
                  mini: true,
                  onPressed: () {},
                ),
                SignInButtonBuilder(
                  icon: Icons.account_balance,
                  mini: true,
                  onPressed: () {},
                  backgroundColor: Colors.cyan,
                ),
              ],
            ),
          ],
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_signin_button: ^0.2.4

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_signin_button/flutter_signin_button.dart';
  
Version Uploaded Documentation Archive
0.2.4 Dec 12, 2018 Go to the documentation of flutter_signin_button 0.2.4 Download flutter_signin_button 0.2.4 archive
0.2.3 Dec 6, 2018 Go to the documentation of flutter_signin_button 0.2.3 Download flutter_signin_button 0.2.3 archive
0.2.2 Nov 27, 2018 Go to the documentation of flutter_signin_button 0.2.2 Download flutter_signin_button 0.2.2 archive
0.2.1 Nov 23, 2018 Go to the documentation of flutter_signin_button 0.2.1 Download flutter_signin_button 0.2.1 archive
0.2.0 Nov 23, 2018 Go to the documentation of flutter_signin_button 0.2.0 Download flutter_signin_button 0.2.0 archive
0.1.3 Nov 20, 2018 Go to the documentation of flutter_signin_button 0.1.3 Download flutter_signin_button 0.1.3 archive
0.1.2 Nov 20, 2018 Go to the documentation of flutter_signin_button 0.1.2 Download flutter_signin_button 0.1.2 archive
0.1.1 Nov 20, 2018 Go to the documentation of flutter_signin_button 0.1.1 Download flutter_signin_button 0.1.1 archive
0.1.0 Nov 20, 2018 Go to the documentation of flutter_signin_button 0.1.0 Download flutter_signin_button 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
78
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
89
Learn more about scoring.

We analyzed this package on Dec 12, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7
  • Flutter: 1.0.0

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
font_awesome_flutter ^8.2.0 8.2.0
Transitive dependencies
collection 1.14.11
meta 1.1.6
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test