social_button_flutter 0.0.3
social_button_flutter: ^0.0.3 copied to clipboard
social media buttons involves integrating icons from popular social media platforms into your app and adding functionality to these buttons.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:social_button_flutter/social_button.dart';
void main() {
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Social Button'),
),
body: Padding(
padding: const EdgeInsets.all(20.0),
child: Center(
child: Column(children: [
SocialButton(
buttonText: "Continue with Google",
shape: ButtonShape.pill,
type: ButtonType.google,
onPressed: () {}),
]),
),
),
),
);
}
}