GithubHelp home page GithubHelp logo

trendingtechnology / flutter-sign-in-button-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emreesen27/flutter-sign-in-button

0.0 2.0 0.0 354 KB

A Flutter plugin for generating sign in buttons for different social media accounts.

Home Page: https://pub.dev/packages/sign_button

License: MIT License

Dart 96.82% Kotlin 0.71% Swift 2.26% Objective-C 0.21%

flutter-sign-in-button-1's Introduction

Sign In Button

A Flutter plugin for generating sign in buttons for different social media accounts.

Getting Started

You must add the library as a dependency to your project.

dependencies:
 sign_button: ^1.0.1

You should then run flutter packages get

Now in your Dart code, you can use:

import 'package:sign_button/sign_button.dart'

Usage Example

It very simple!

SignInButton(
  buttonType: ButtonType.google,
  onPressed: () {
   print('click');
  })

ButtonSize

SignInButton(
  buttonType: ButtonType.google,
  buttonSize: ButtonSize.large, // small(default), medium, large
  onPressed: () {
   print('click');
  })

ImagePosition

SignInButton(
  imagePosition: ImagePosition.left, // left or right
  buttonType: ButtonType.google,
  onPressed: () {
   print('click');
  })

Customized button

SignInButton(
 buttonType: ButtonType.pinterest,
 imagePosition: ImagePosition.right,
 //[buttonSize] You can also use this in combination with [width]. Increases the font and icon size of the button.
 buttonSize: ButtonSize.large,
 btnTextColor: Colors.grey,
 btnColor: Colors.white,
 width: 140,
 //[width] Use if you change the text value.
 btnText: 'Pinterest',
 onPressed: () {
  print('click');
 })

Mini Button

SignInButton.mini(
 buttonType: ButtonType.github,
 onPressed: () {},
),

Other properties

  • btnText
  • btnColor
  • btnTextColor
  • elevation
  • shape
  • width // You can change the value of width when the text size becomes too small.
  • padding // Padding value is automatically adjusted according to the button size. You can give a value if you want

flutter-sign-in-button-1's People

Contributors

emreesen27 avatar thomaslilley avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.