Skip to content
Nilen Patel Inc.
  • Home
  • Blog
  • Unpaid Glory
  • Contact Me
  • About Me
Get Started
Flutter 04/08/2022

Flutter UI #4: Fun with Social Media Buttons in Flutter

Nilen Patel 1 min read
flutter tutorial for beginners
Flutter UI #4: Fun with Social Media Buttons in Flutter

Tutorial and code of Social Media Buttons in Flutter. Copy and paste the below code as per your requirements.

Add this dependency in pubspec.yaml file of the project.

dependencies:
  flutter:
    sdk: flutter
  flutter_auth_buttons:

main.dart

import 'package:flutter/material.dart';
import 'package:flutter_auth_buttons/flutter_auth_buttons.dart';
void main() async {
  runApp(new MyApp());
}
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    const padding = 25.0;

    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Social Media Buttons',
      home: Scaffold(
        appBar: AppBar(
          title: Center(child: Text("Social Media Buttons Demo"),),
          backgroundColor: Colors.blue,
        ),
        backgroundColor: Color.fromARGB(0xFF, 0xF0, 0xF0, 0xF0),
        body: SingleChildScrollView(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.stretch,
            children: <Widget>[
              Column(
                children: <Widget>[
                  SizedBox(height: padding),
                  AppleSignInButton(
                      onPressed: () {}, style: AppleButtonStyle.black),
                  SizedBox(height: padding),
                  GoogleSignInButton(onPressed: () {}, darkMode: true),
                  SizedBox(height: padding),
                  FacebookSignInButton(onPressed: () {}),
                  SizedBox(height: padding),
                  TwitterSignInButton(onPressed: () {}),
                  SizedBox(height: padding),
                  MicrosoftSignInButton(onPressed: () {}, darkMode: true),
                ],
              ),
            ],
          ),
        ),
      ),
    );
  }
}
#auth button flutter #flutter instagram icon #flutter social login without firebase #flutter social media icons #flutter social media post #icons library for flutter #login button flutter #twitter icon in flutter
← Previous Flutter UI #3: Fun with Buttons in Flutter Next → Flutter UI #5: Fun with Checkbox and Radio Buttons in Flutter

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Let's Work Together

Have a project in mind? Drop me a line and let's create something amazing.

Get In Touch →

© 2026 Nilen Patel Inc. . All rights reserved.

Built with ♥ By Nilen Patel