flutter_social_media_button 0.0.1 copy "flutter_social_media_button: ^0.0.1" to clipboard
flutter_social_media_button: ^0.0.1 copied to clipboard

A new Flutter package which allows users to create social media button with easily.

Flutter Social Media Button #

Flutter Social Media Button is a flutter package to create social media login buttons of all common used SSO.

Usage #

Add the dependency in pubsec.yaml file.

dependencies: flutter: sdk: flutter flutter_social_media_button: 1.0.5+3

How to Use #

  Widget buildSocialMediaButton(){
  return FlutterSocialMediaButton(
    title: "Facebook",
    imageUrl: "assets/images/facebook.png",
    height: 50,
    imageWidth: 35,
    imageHeight: 35,
    onlyImageAvalible: false,
    onPress: (){
    },
  );
}    

Below is the example with all arguments supplied:

  Widget buildSocialMediaButton(){
  return FlutterSocialMediaButton(
    title: "Facebook",
    imageUrl: "assets/images/facebook.png",
    height: 50,
    width: 50,
    imageWidth: 35,
    imageHeight: 35,
    onlyImageAvalible: true,
    onPress: (){
    },
  );
}    

Example #

import 'dart:io';

import 'package:flutter/material.dart';
import 'package:tiktok_clone/view/widget/flutter_button.dart';

class AddVideo extends StatefulWidget {
  const AddVideo({Key? key}) : super(key: key);

  @override
  State<AddVideo> createState() => _AddVideoState();
}

class _AddVideoState extends State<AddVideo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: Padding(
        padding: EdgeInsets.symmetric(horizontal: 10),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            FlutterSocialMediaButton(
              title: "Facebook",
              imageUrl: "assets/images/facebook.png",
              height: 50,
              imageWidth: 35,
              imageHeight: 35,
              onlyImageAvalible: false,
              onPress: (){
              },
            ),
            SizedBox(
              height: 20,
            ),
            FlutterSocialMediaButton(
              title: "Apple",
              imageUrl: "assets/images/apple-logo.png",
              height: 50,
              width: 50,
              imageWidth: 35,
              imageHeight: 35,
              onlyImageAvalible: true,
              onPress: (){
              },
            ),
          ],
        ),
      )
    );
  }
}
}

Contributing #

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

License #

Apache-2.0

Screenshot #

Image Image

6
likes
130
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter package which allows users to create social media button with easily.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on flutter_social_media_button