Flutter social button - A flutter package to create social media login buttons easily to any flutter app

Overview

pub package pub points

Flutter Social Button

Flutter Social Button is a flutter package to create social media login buttons easily to any flutter app.

Screenshot

#Mobile View

Image

#Web View

Image

Getting started

Usage

Add the dependency in pubsec.yaml file.

dart
  dependencies:
    flutter:
      sdk: flutter
    flutter_social_button: any

Button Types

  • Facebook
  • Google
  • Twitter
  • Linkedin
  • Whatsapp
  • Apple
  • Github
  • Phone

Example

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Social Buttons',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Social Buttons"),
        centerTitle: true,
      ),
      body: Center(
        child: SingleChildScrollView(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              SocialButton.appleButton(onTap: (){}),
              const SizedBox(height: 2,),
              SocialButton.facebookButton(onTap: (){}),
              const SizedBox(height: 2,),
              SocialButton.googleButton(onTap: (){}),
              const SizedBox(height: 2,),
              SocialButton.linkedinButton(onTap: (){}),
              const SizedBox(height: 2,),
              SocialButton.twitterButton(onTap: (){}),
              const SizedBox(height: 2,),
              SocialButton.whatsappButton(onTap: (){}),
              const SizedBox(height: 2,),
              SocialButton.githubButton(onTap: (){}),
              const SizedBox(height: 2,),
              SocialButton.phoneButton(onTap: (){}),

              const Divider(color: Colors.black, thickness: 2.5,),

              Row(
                mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                children: [
                  SocialButton.appleButtonCircle(onTap: (){}),
                  SocialButton.facebookButtonCircle(onTap: (){}),
                  SocialButton.googleButtonCircle(onTap: (){}),
                  SocialButton.twitterButtonCircle(onTap: (){}),
                  SocialButton.linkedinButtonCircle(onTap: (){}),
                  SocialButton.whatsappButtonCircle(onTap: (){}),
                  SocialButton.githubButtonCircle(onTap: (){}),
                  SocialButton.phoneButtonCircle(onTap: (){}),
                ],
              )
            ],
          ),
        ),
      ),
    );
  }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

You might also like...

Flutter project file sturcture that can help me to create new project easily

flutter_project_arch A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

Oct 9, 2022

In this application we create a login page

In this application we create a login page

Codium login page This Flutter application is a basic login page. Componets: 1 * Logo. 2 * TextField for Username and Password. 1 * Button for login.

Dec 30, 2022

A Flutter package which can be used to make polylines(route) from a source to a destination, and also handle a driver's realtime location (if any) on the map.

A Flutter package which can be used to make polylines(route) from a source to a destination, and also handle a driver's realtime location (if any) on the map.

GoogleMapsWidget For Flutter A widget for flutter developers to easily integrate google maps in their apps. It can be used to make polylines from a so

Nov 30, 2022

a simple Quran app made with flutter without any images or pdf

a simple Quran app made with flutter without any images or pdf

forqan A simple Quran app made with flutter without any images or pdf . screenshot Support If you like what we do, and would want to help us continue

Oct 22, 2022

SeeFood is a Flutter app which tells you whether photograph contains any food items or not.

SeeFood is a Flutter app which tells you whether photograph contains any food items or not.

See Food 👀 🍕 See Food is a Flutter app which tells you whether photograph contains any food items or not. This app is highly inspired by and an atte

Oct 8, 2022

11t is an iOS and Android app for connecting to Mastodon, written in Flutter. 11t lets you use any Mastodon instance.

README 11t is an iOS and Android app for connecting to Mastodon, written in Flutter. I connect to Mastodon on mastodon.social, but everyone can start

Dec 23, 2022

A thank you page made in flutter for successful payment status in any application.

A thank you page made in flutter for successful payment status in any application.

thanku A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this i

Jan 3, 2023

This project contains a flutter application to view any Instagram profile.

This project contains a flutter application to view any Instagram profile.

Instagram Profile Viewer (yamuntu_task) This project is for my application at yamuntu. The presented application allows the user to view any username

Jun 2, 2022

A simple, interactive and customizable on-tap bounce animation that can be wrapped on any widgets that you like.

A simple, interactive and customizable on-tap bounce animation that can be wrapped on any widgets that you like.

A simple, interactive and customizable on-tap bounce animation that can be wrapped on any widgets that you like.

Nov 2, 2022
Comments
  • fix mini apple button icon

    fix mini apple button icon

    The previous icon for apple was set as FontAwesomeIcons.facebookF.

    ...
    
    child: Icon(
          FontAwesomeIcons.apple,
          color: iconColor,
        ),
    
    ...
    
    

    ✌🏾

    opened by Colman1000 0
Owner
Alok Dubey
Alok Dubey
Create a way so that user can share all his social media profile links on a single click

Pro Share The objective of this project is to, create a way so that user can share all his social media profile links on a single click. The project a

Sarthak Agarwal 5 Nov 20, 2022
(Complete flutter application) Exam and training app as social media, prepared with Firebase backend services, Bloc State management, Singleton design pattern, Unit and widget tests, firebase mocking, Custom local libraries, etc.

(Complete flutter application) Exam and training app as social media, prepared with Firebase backend services, Bloc State management, Singleton design pattern, Unit and widget tests, firebase mocking, Custom local libraries, etc.

Ismael Shakverdiev 45 Jul 14, 2022
A social media app built using flutter, firebase and bloc.

Kasassy Generated by the Very Good CLI ?? A Very Good Project created by Very Good CLI. Getting Started ?? This project contains 3 flavors: developmen

Ritik Gupta 3 Mar 10, 2022
All in one Social Media App Getting developed using flutter & firebase

All in one Social Media App Getting developed using flutter & firebase

Saffron Dionysius 8 Nov 17, 2022
A flutter Project For launching Profile in Various Social Media Platforms

Profile My New flutter Project For launching My Profile in Various Social Media Platforms * My Profile in Github * My Profile in Linkedin * My Profile

Design n Techie 4 Jan 20, 2022
A social media application developed using Flutter and GetX state management

A social media application developed using Flutter and GetX state management

Nikhil Rajput 39 Dec 29, 2022
A social media platform where you can build your own community.

Commun App A social media platform where you can build your own community. Contributing If you wish to contribute a change to any of the existing feat

Sonu Sharma 61 Dec 24, 2022
Flutter Login Page Bloc Pattern App Flutter Login Page Bloc Pattern App

gdgbloc A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Pawan Kumar 99 Oct 20, 2022
LogiFresh helps you build a login easily with a friendly design, and very flexible for its construction

Login Fresh LogiFresh helps you build a login easily with a friendly design, and very flexible for its construction. Installation Follow the install i

Cristhian Hernández 9 Nov 24, 2022
Poi-Poi-ToDo - A Task Management App where you can create task & maintain your daily life easily

"Poi Poi Todo" is a Task Management App where you can create task & maintain your daily life easily. In this app we use Path Provider, SQLite Database, DateTime Picker etc flutter pakages.

CPAD-Gazipur 8 Oct 30, 2022