पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

flutter_social_button कवर
पैकेज विवरणv1.1.6+1

flutter_social_button

Flutter सोशल बटन एक फ्लटर पैकेज है जिससे किसी भी फ्लटर ऐप में सोशल मीडिया लॉगिन बटन आसानी से बनाए जा सकते हैं।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
68
लाइक
41
Pub अंक
140

पैकेज इंस्टॉल करें

flutter pub add flutter_social_button

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

Flutter सोशल बटन एक हल्का पैकेज है जो Flutter एप्लिकेशन में सोशल मीडिया लॉगिन बटन के एकीकरण को सरल बनाता है। यह Google, Facebook और Apple जैसे लोकप्रिय प्लेटफॉर्म के लिए पूर्व-डिज़ाइन किए गए, कस्टमाइज़ किए जा सकने वाले बटन प्रदान करता है, जो उपयोगकर्ता प्रमाणीकरण वर्कफ्लो को बढ़ावा देता है। यह पैकेज Android, iOS, Web, macOS, Windows और Linux जैसे कई प्लेटफॉर्म का समर्थन करता है, जिससे क्रॉस-प्लेटफॉर्म सुसंगतता सुनिश्चित होती है। कम सेटअप के साथ, डेवलपर्स अपने एप्लिकेशन में दिखावटी रूप से आकर्षक सोशल लॉगिन विकल्प जल्दी से जोड़ सकते हैं।

उपयोग

  • प्रमाणीकरण स्क्रीन में सोशल लॉगिन बटन जोड़ना
  • त्वरित लॉगिन विकल्पों के साथ उपयोगकर्ता ओनबोर्डिंग में सुधार
  • कई प्लेटफॉर्मों पर सुसंगत यूआई बनाना
  • Google, Facebook और Apple साइन-इन को एकीकृत करना
  • ब्रांड के अनुरूप बटन शैलियों को कस्टमाइज़ करें

मुख्य विशेषताएँ

  • पूर्व-निर्मित सोशल मीडिया बटन टेम्पलेट
  • क्रॉस-प्लेटफॉर्म समर्थन (Android, iOS, Web, macOS, Windows, Linux)
  • रंग और आकार के स्वचालित अनुकूलन
  • pub.dev के माध्यम से सरल एकीकरण
  • मुख्य सोशल प्रदाताओं का समर्थन करता है

इनके लिए उपयुक्त

  • फ्लटर विकासकर्ता प्रमाणीकरण प्रवाह बना रहे हैं
  • त्वरित सोशल लॉगिन की आवश्यकता वाले ऐप्स
  • प्लेटफॉर्म के बीच सुसंगत UI के लिए प्रोजेक्ट
  • विकास गति को प्राथमिकता देने वाली टीमें
  • डिज़ाइन-केंद्रित एप्लिकेशन

विचार योग्य बातें

  • प्रत्येक सोशल प्रदाता के लिए अतिरिक्त कॉन्फ़िगरेशन की आवश्यकता होती है
  • प्लेटफॉर्म-विशिष्ट सेटअप की आवश्यकता हो सकती है (उदाहरण के लिए, OAuth कुंजियाँ)
  • पूर्वनिर्धारित बटन डिज़ाइन तक सीमित अन्यथा विस्तारित
  • कार्यक्षमता के लिए बाहरी सोशल API पर निर्भर है
  • स्टाइलिंग के अलावा कस्टम बटन लॉजिक के लिए उपयुक्त नहीं

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Flutter Social Button

Flutter Social Button

pub package pub points LinkedIn Instagram Facebook Youtube


Features

Flutter Social Button is a Flutter package to easily add social media buttons to your app. Buttons are customizable, and the package supports a wide range of social platforms.


Getting Started

Add the following dependency to your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  flutter_social_button: ^latest_version

Usage Example

import flutter_social_button.dart


import 'package:flutter_social_button/flutter_social_button.dart';

For built-in buttons.


// for full width Buttons

            //For default Button Its return a Email Button
               FlutterSocialButton(
                   onTap: () {}, ), 
                   
            //For facebook Button   
            
             FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.facebook, // Button type for different type buttons
              ),
              
          //For google Button
          
               FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.google, // Button type for different type buttons
                iconColor: Colors.black,  // for change icons colors
              ),  

           // for Mini Circle Button

                 FlutterSocialButton(
                    onTap: () {},
                    mini: true,   //just pass true for mini circle buttons
                    buttonType: ButtonType.phone,  // Button type for different type buttons
                  ),

Button Types

  • Facebook
  • Google
  • Yahoo
  • Twitter
  • LinkedIn
  • WhatsApp
  • Apple
  • GitHub
  • Phone
  • Email
  • Instagram
  • YouTube
  • Snapchat
  • Pinterest
  • TikTok
  • Reddit
  • Tumblr
  • Skype
  • Viber
  • Discord
  • WeChat
  • Line
  • Quora
  • Twitch
  • Flickr
  • Yelp
  • Spotify

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);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      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: [
              //For default Button
              FlutterSocialButton(
                onTap: () {},
              ),
              const SizedBox(
                height: 2,
              ),

              //For facebook Button
              FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.facebook,
              ),
              const SizedBox(
                height: 2,
              ),

              //For google Button
              FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.google,
              ),
              const SizedBox(
                height: 2,
              ),

              //For phone Button
              FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.phone,
              ),

              const SizedBox(
                height: 2,
              ),

              //For Whatsapp Button
              FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.whatsapp,
              ),
              const SizedBox(
                height: 2,
              ),

              const Divider(
                color: Colors.black,
                thickness: 2.5,
              ),
              Row(
                mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                children: [
                  FlutterSocialButton(
                    onTap: () {},
                    mini: true,
                  ),
                  FlutterSocialButton(
                    onTap: () {},
                    mini: true,
                    buttonType: ButtonType.facebook,
                  ),
                  FlutterSocialButton(
                    onTap: () {},
                    mini: true,
                    buttonType: ButtonType.google,
                  ),
                  FlutterSocialButton(
                    onTap: () {},
                    mini: true,
                    buttonType: ButtonType.phone,
                  ),
                ],
              )
            ],
          ),
        ),
      ),
    );
  }
}

Contributing

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

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 1 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।