├── example ├── ios │ ├── Flutter │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── AppFrameworkInfo.plist │ ├── Runner │ │ ├── Runner-Bridging-Header.h │ │ ├── Assets.xcassets │ │ │ ├── LaunchImage.imageset │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ ├── README.md │ │ │ │ └── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ │ └── Contents.json │ │ ├── AppDelegate.swift │ │ ├── Base.lproj │ │ │ ├── Main.storyboard │ │ │ └── LaunchScreen.storyboard │ │ └── Info.plist │ ├── Runner.xcodeproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ │ └── IDEWorkspaceChecks.plist │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ └── Runner.xcscheme │ │ └── project.pbxproj │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ └── .gitignore ├── web │ ├── favicon.png │ ├── icons │ │ ├── Icon-192.png │ │ ├── Icon-512.png │ │ ├── Icon-maskable-192.png │ │ └── Icon-maskable-512.png │ ├── manifest.json │ └── index.html ├── android │ ├── gradle.properties │ ├── app │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable │ │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── drawable-v21 │ │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── values │ │ │ │ │ │ └── styles.xml │ │ │ │ │ └── values-night │ │ │ │ │ │ └── styles.xml │ │ │ │ ├── kotlin │ │ │ │ │ └── com │ │ │ │ │ │ └── example │ │ │ │ │ │ └── example │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── AndroidManifest.xml │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── .gitignore │ ├── settings.gradle │ └── build.gradle ├── .metadata ├── README.md ├── .gitignore ├── analysis_options.yaml ├── pubspec.yaml ├── lib │ └── main.dart └── pubspec.lock ├── screenshots ├── phone_screen.png └── desktop_screen.png ├── CHANGELOG.md ├── .metadata ├── lib ├── flutter_social_button.dart └── src │ ├── constants │ ├── button_type.dart │ └── button_colors.dart │ └── widgets │ ├── social_button.dart │ └── social_login_button.dart ├── pubspec.yaml ├── .gitignore ├── analysis_options.yaml ├── README.md └── LICENSE /example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /example/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /example/web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/web/favicon.png -------------------------------------------------------------------------------- /screenshots/phone_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/screenshots/phone_screen.png -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /example/web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/web/icons/Icon-192.png -------------------------------------------------------------------------------- /example/web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/web/icons/Icon-512.png -------------------------------------------------------------------------------- /screenshots/desktop_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/screenshots/desktop_screen.png -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 1.1.3 2 | ## 1.1.4 3 | ## 1.1.4+1 4 | ## 1.1.5 5 | ## 1.1.6 6 | ## 1.1.6+1 7 | 8 | * TODO: Describe initial release. 9 | -------------------------------------------------------------------------------- /example/web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /example/web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/android/app/src/main/kotlin/com/example/example/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.example 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alok2811/flutter_social_button/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 7 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 77d935af4db863f6abd0b9c31c7e6df2a13de57b 8 | channel: stable 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /example/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 77d935af4db863f6abd0b9c31c7e6df2a13de57b 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /example/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /lib/flutter_social_button.dart: -------------------------------------------------------------------------------- 1 | library flutter_social_button; 2 | 3 | export 'package:flutter_social_button/src/constants/button_colors.dart'; 4 | export 'package:flutter_social_button/src/constants/button_type.dart'; 5 | export 'package:flutter_social_button/src/widgets/social_button.dart'; 6 | export 'package:flutter_social_button/src/widgets/social_login_button.dart'; 7 | export 'package:font_awesome_flutter/font_awesome_flutter.dart'; 8 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @main 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_social_button 2 | description: Flutter Social Button is a flutter package to create social media login buttons easily to any flutter app. 3 | version: 1.1.6+1 4 | homepage: https://github.com/alok2811/flutter_social_button 5 | 6 | environment: 7 | sdk: ">=2.17.2 <4.0.0" 8 | flutter: ">=1.17.0" 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | font_awesome_flutter: ^10.8.0 14 | 15 | dev_dependencies: 16 | flutter_test: 17 | sdk: flutter 18 | flutter_lints: ^5.0.0 19 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # example 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 25 | /pubspec.lock 26 | **/doc/api/ 27 | .dart_tool/ 28 | .packages 29 | build/ 30 | -------------------------------------------------------------------------------- /example/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 12.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /example/web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "short_name": "example", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /lib/src/constants/button_type.dart: -------------------------------------------------------------------------------- 1 | /// Enum for ButtonTypes 2 | enum ButtonType { 3 | /// Facebook button type 4 | facebook, 5 | 6 | /// Google button type 7 | google, 8 | 9 | /// Twitter button type (X) 10 | twitter, 11 | 12 | /// LinkedIn button type 13 | linkedin, 14 | 15 | /// WhatsApp button type 16 | whatsapp, 17 | 18 | /// Apple button type 19 | apple, 20 | 21 | /// GitHub button type 22 | github, 23 | 24 | /// Yahoo button type 25 | yahoo, 26 | 27 | /// Phone button type 28 | phone, 29 | 30 | /// Email button type 31 | email, 32 | 33 | /// Instagram button type 34 | instagram, 35 | 36 | /// YouTube button type 37 | youtube, 38 | 39 | /// Snapchat button type 40 | snapchat, 41 | 42 | /// Pinterest button type 43 | pinterest, 44 | 45 | /// TikTok button type 46 | tiktok, 47 | 48 | /// Reddit button type 49 | reddit, 50 | 51 | /// Tumblr button type 52 | tumblr, 53 | 54 | /// Skype button type 55 | skype, 56 | 57 | /// Viber button type 58 | viber, 59 | 60 | /// Discord button type 61 | discord, 62 | 63 | /// WeChat button type 64 | wechat, 65 | 66 | /// Line button type 67 | line, 68 | 69 | /// Quora button type 70 | quora, 71 | 72 | /// Twitch button type 73 | twitch, 74 | 75 | /// Flickr button type 76 | flickr, 77 | 78 | /// Yelp button type 79 | yelp, 80 | 81 | /// Spotify button type 82 | spotify, 83 | 84 | /// Website button type 85 | website 86 | } 87 | 88 | /// Enum for ButtonStyle 89 | enum CustomButtonStyle { circle, square } 90 | -------------------------------------------------------------------------------- /example/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /example/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Example 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | example 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | CADisableMinimumFrameDurationOnPhone 47 | 48 | UIApplicationSupportsIndirectInputEvents 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion flutter.compileSdkVersion 30 | 31 | compileOptions { 32 | sourceCompatibility JavaVersion.VERSION_1_8 33 | targetCompatibility JavaVersion.VERSION_1_8 34 | } 35 | 36 | kotlinOptions { 37 | jvmTarget = '1.8' 38 | } 39 | 40 | sourceSets { 41 | main.java.srcDirs += 'src/main/kotlin' 42 | } 43 | 44 | defaultConfig { 45 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 46 | applicationId "com.example.example" 47 | minSdkVersion flutter.minSdkVersion 48 | targetSdkVersion flutter.targetSdkVersion 49 | versionCode flutterVersionCode.toInteger() 50 | versionName flutterVersionName 51 | } 52 | 53 | buildTypes { 54 | release { 55 | // TODO: Add your own signing config for the release build. 56 | // Signing with the debug keys for now, so `flutter run --release` works. 57 | signingConfig signingConfigs.debug 58 | } 59 | } 60 | } 61 | 62 | flutter { 63 | source '../..' 64 | } 65 | 66 | dependencies { 67 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 68 | } 69 | -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | 6 | 7 | analyzer: 8 | exclude: [build/**] 9 | language: 10 | strict-casts: false 11 | strict-raw-types: true 12 | 13 | 14 | linter: 15 | rules: 16 | - always_put_required_named_parameters_first 17 | - avoid_positional_boolean_parameters 18 | - prefer_final_fields 19 | - null_check_on_nullable_type_parameter 20 | - avoid_private_typedef_functions 21 | #- prefer_expression_function_bodies 22 | - prefer_function_declarations_over_variables 23 | - prefer_generic_function_type_aliases 24 | - use_function_type_syntax_for_parameters 25 | - always_specify_types 26 | - always_declare_return_types 27 | - always_put_control_body_on_new_line 28 | - always_use_package_imports 29 | - annotate_overrides 30 | - avoid_annotating_with_dynamic 31 | - avoid_bool_literals_in_conditional_expressions 32 | - avoid_catches_without_on_clauses 33 | - avoid_catching_errors 34 | - avoid_dynamic_calls 35 | - avoid_field_initializers_in_const_classes 36 | - avoid_final_parameters 37 | - avoid_function_literals_in_foreach_calls 38 | - avoid_js_rounded_ints 39 | - avoid_null_checks_in_equality_operators 40 | - avoid_print 41 | - avoid_relative_lib_imports 42 | - avoid_returning_null_for_void 43 | - avoid_shadowing_type_parameters 44 | - await_only_futures 45 | - camel_case_extensions 46 | - cascade_invocations 47 | - cast_nullable_to_non_nullable 48 | - close_sinks 49 | - comment_references 50 | - constant_identifier_names 51 | - control_flow_in_finally 52 | - curly_braces_in_flow_control_structures 53 | - directives_ordering 54 | - eol_at_end_of_file 55 | - exhaustive_cases 56 | - file_names 57 | - flutter_style_todos 58 | - join_return_with_assignment 59 | - library_names 60 | - literal_only_boolean_expressions 61 | - no_duplicate_case_values 62 | - prefer_adjacent_string_concatenation 63 | - prefer_const_constructors 64 | - type_annotate_public_apis 65 | - unnecessary_this 66 | - prefer_is_not_empty 67 | - prefer_mixin 68 | - prefer_spread_collections 69 | - prefer_typing_uninitialized_variables 70 | - provide_deprecation_message 71 | - recursive_getters 72 | - require_trailing_commas 73 | - sort_child_properties_last 74 | - type_init_formals 75 | - unawaited_futures 76 | - use_key_in_widget_constructors 77 | - use_late_for_private_fields_and_variables 78 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/src/constants/button_colors.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_social_button/flutter_social_button.dart'; 2 | export 'package:flutter/material.dart'; 3 | 4 | class ButtonColors { 5 | /// Private static instance of the ButtonColors class 6 | static final ButtonColors _instance = ButtonColors._(); 7 | 8 | /// Private constructor to prevent direct instantiation 9 | ButtonColors._(); 10 | 11 | /// Public factory constructor to access the singleton instance 12 | /// If the instance is null, create it, otherwise return the existing instance 13 | factory ButtonColors() => _instance; 14 | 15 | /// Apple color 16 | Color apple = const Color(0xFF000000); // Apple black 17 | 18 | /// Yahoo color 19 | Color yahoo = const Color(0xFF410093); // Yahoo purple 20 | 21 | /// Facebook color 22 | Color facebook = const Color(0xFF1877F2); // Facebook blue 23 | 24 | /// Google color 25 | Color google = const Color(0xFF4285F4); // Google blue 26 | 27 | /// Twitter (X) color 28 | Color twitter = const Color(0xFF14171A); // Twitter blue 29 | 30 | /// LinkedIn color 31 | Color linkedin = const Color(0xFF0077B5); // LinkedIn blue 32 | 33 | /// WhatsApp color 34 | Color whatsapp = const Color(0xFF25D366); // WhatsApp green 35 | 36 | /// GitHub color 37 | Color github = const Color(0xFF24292F); // GitHub dark gray 38 | 39 | /// Phone color (standard phone icon color) 40 | Color phone = const Color(0xFF34B7F1); // Light blue (common for phone buttons) 41 | 42 | /// Instagram color 43 | Color instagram = const Color(0xFFDD2A7B); // Instagram pink 44 | 45 | /// Email color (standard for email icon) 46 | Color email = const Color(0xFF4285F4); // Google blue 47 | 48 | /// YouTube color 49 | Color youtube = const Color(0xFFFF0000); // YouTube red 50 | 51 | /// Snapchat color 52 | Color snapchat = const Color(0xFFFFFC00); // Snapchat yellow 53 | 54 | /// Pinterest color 55 | Color pinterest = const Color(0xFFE60023); // Pinterest red 56 | 57 | /// TikTok color 58 | Color tiktok = const Color(0xFF69C9D0); // TikTok teal 59 | Color tiktokRed = const Color(0xFFEE1D52); // TikTok red 60 | 61 | /// Reddit color 62 | Color reddit = const Color(0xFFFF4500); // Reddit orange 63 | 64 | /// Tumblr color 65 | Color tumblr = const Color(0xFF35465C); // Tumblr dark blue 66 | 67 | /// Skype color 68 | Color skype = const Color(0xFF00AFF0); // Skype blue 69 | 70 | /// Viber color 71 | Color viber = const Color(0xFF665CAC); // Viber purple 72 | 73 | /// Discord color 74 | Color discord = const Color(0xFF5865F2); // Discord blue 75 | 76 | /// WeChat color 77 | Color wechat = const Color(0xFF1AAD19); // WeChat green 78 | 79 | /// Line color 80 | Color line = const Color(0xFF00C300); // Line green 81 | 82 | /// Quora color 83 | Color quora = const Color(0xFFB92B27); // Quora red 84 | 85 | /// Twitch color 86 | Color twitch = const Color(0xFF9146FF); // Twitch purple 87 | 88 | /// Flickr color 89 | Color flickr = const Color(0xFF0063DC); // Flickr blue 90 | 91 | /// Yelp color 92 | Color yelp = const Color(0xFFD32323); // Yelp red 93 | 94 | /// Spotify color 95 | Color spotify = const Color(0xFF1DB954); // Spotify green 96 | 97 | /// Default color 98 | Color defaultColor = const Color(0xFF3D3D3D); // Default color 99 | 100 | /// Website color 101 | Color website = Colors.grey; // Website Grey 102 | } 103 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: example 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.15.1 <4.0.0" 22 | 23 | # Dependencies specify other packages that your package needs in order to work. 24 | # To automatically upgrade your package dependencies to the latest versions 25 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 26 | # dependencies can be manually updated by changing the version numbers below to 27 | # the latest version available on pub.dev. To see which dependencies have newer 28 | # versions available, run `flutter pub outdated`. 29 | dependencies: 30 | flutter: 31 | sdk: flutter 32 | 33 | 34 | # The following adds the Cupertino Icons font to your application. 35 | # Use with the CupertinoIcons class for iOS style icons. 36 | cupertino_icons: ^1.0.8 37 | flutter_social_button: 38 | path: ../ 39 | 40 | dev_dependencies: 41 | flutter_test: 42 | sdk: flutter 43 | 44 | # The "flutter_lints" package below contains a set of recommended lints to 45 | # encourage good coding practices. The lint set provided by the package is 46 | # activated in the `analysis_options.yaml` file located at the root of your 47 | # package. See that file for information about deactivating specific lint 48 | # rules and activating additional ones. 49 | flutter_lints: ^5.0.0 50 | 51 | # For information on the generic Dart part of this file, see the 52 | # following page: https://dart.dev/tools/pub/pubspec 53 | 54 | # The following section is specific to Flutter. 55 | flutter: 56 | 57 | # The following line ensures that the Material Icons font is 58 | # included with your application, so that you can use the icons in 59 | # the material Icons class. 60 | uses-material-design: true 61 | 62 | # To add assets to your application, add an assets section, like this: 63 | # assets: 64 | # - images/a_dot_burr.jpeg 65 | # - images/a_dot_ham.jpeg 66 | 67 | # An image asset can refer to one or more resolution-specific "variants", see 68 | # https://flutter.dev/assets-and-images/#resolution-aware. 69 | 70 | # For details regarding adding assets from package dependencies, see 71 | # https://flutter.dev/assets-and-images/#from-packages 72 | 73 | # To add custom fonts to your application, add a fonts section here, 74 | # in this "flutter" section. Each entry in this list should have a 75 | # "family" key with the font family name, and a "fonts" key with a 76 | # list giving the asset and other descriptors for the font. For 77 | # example: 78 | # fonts: 79 | # - family: Schyler 80 | # fonts: 81 | # - asset: fonts/Schyler-Regular.ttf 82 | # - asset: fonts/Schyler-Italic.ttf 83 | # style: italic 84 | # - family: Trajan Pro 85 | # fonts: 86 | # - asset: fonts/TrajanPro.ttf 87 | # - asset: fonts/TrajanPro_Bold.ttf 88 | # weight: 700 89 | # 90 | # For details regarding fonts from package dependencies, 91 | # see https://flutter.dev/custom-fonts/#from-packages 92 | -------------------------------------------------------------------------------- /example/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | example 33 | 34 | 35 | 36 | 39 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /example/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_social_button/flutter_social_button.dart'; 2 | 3 | void main() { 4 | runApp(const MyApp()); 5 | } 6 | 7 | class MyApp extends StatelessWidget { 8 | const MyApp({Key? key}) : super(key: key); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return MaterialApp( 13 | title: 'Flutter Social Buttons', 14 | theme: ThemeData( 15 | primarySwatch: Colors.blue, 16 | ), 17 | home: const HomePage(), 18 | ); 19 | } 20 | } 21 | 22 | class HomePage extends StatelessWidget { 23 | const HomePage({Key? key}) : super(key: key); 24 | 25 | @override 26 | Widget build(BuildContext context) { 27 | return Scaffold( 28 | appBar: AppBar( 29 | title: const Text("Social Login Buttons"), 30 | centerTitle: true, 31 | ), 32 | body: Center( 33 | child: SingleChildScrollView( 34 | child: Column( 35 | mainAxisAlignment: MainAxisAlignment.center, 36 | children: [ 37 | // Default Email Button 38 | FlutterSocialButton( 39 | onTap: () {}, 40 | title: 'Login with Email', 41 | ), 42 | const SizedBox(height: 10), 43 | 44 | /// Yahoo Login Button 45 | FlutterSocialButton( 46 | onTap: () {}, 47 | buttonType: ButtonType.yahoo, 48 | title: 'Login with Yahoo!', 49 | ), 50 | const SizedBox(height: 10), 51 | 52 | /// Google Login Button with Black icon 53 | FlutterSocialButton( 54 | onTap: () {}, 55 | buttonType: ButtonType.google, 56 | iconColor: Colors.white, 57 | title: 'Login with Google', 58 | ), 59 | const SizedBox(height: 10), 60 | 61 | /// Apple Login Button 62 | FlutterSocialButton( 63 | onTap: () {}, 64 | buttonType: ButtonType.apple, 65 | title: 'Login with Apple', 66 | ), 67 | 68 | /// Phone Login Button 69 | FlutterSocialButton( 70 | onTap: () {}, 71 | buttonType: ButtonType.phone, 72 | title: 'Login with Phone', 73 | ), 74 | const SizedBox(height: 10), 75 | 76 | /// Instagram Login Button 77 | FlutterSocialButton( 78 | onTap: () {}, 79 | buttonType: ButtonType.instagram, 80 | title: 'Instagram', 81 | ), 82 | 83 | /// Instagram Login Button 84 | FlutterSocialButton( 85 | onTap: () {}, 86 | buttonType: ButtonType.youtube, 87 | title: 'Instagram', 88 | ), 89 | const SizedBox(height: 10), 90 | const Divider( 91 | color: Colors.black, 92 | thickness: 2.5, 93 | ), 94 | 95 | // Row of Mini Social Buttons 96 | Row( 97 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 98 | children: [ 99 | SizedBox( 100 | width: 10, 101 | ), 102 | 103 | /// Mini Email Button 104 | FlutterSocialButton( 105 | onTap: () {}, 106 | buttonStyle: CustomButtonStyle.circle, 107 | title: 'Email', 108 | showLabel: false, 109 | ), 110 | SizedBox( 111 | width: 10, 112 | ), 113 | 114 | /// Mini Phone Button 115 | FlutterSocialButton( 116 | onTap: () {}, 117 | buttonType: ButtonType.phone, 118 | title: 'Phone', 119 | buttonStyle: CustomButtonStyle.square, 120 | mini: true, 121 | ), 122 | 123 | /// Mini Yahoo Button 124 | FlutterSocialButton( 125 | onTap: () {}, 126 | buttonType: ButtonType.yahoo, 127 | title: 'Yahoo!', 128 | showLabel: true, 129 | width: 200, 130 | mini: true, 131 | iconSize: 35, 132 | ), 133 | 134 | /// Mini Instagram Button 135 | FlutterSocialButton( 136 | onTap: () {}, 137 | buttonType: ButtonType.twitter, 138 | title: 'Instagram', 139 | ), 140 | ], 141 | ), 142 | ], 143 | ), 144 | ), 145 | ), 146 | ); 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /lib/src/widgets/social_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_social_button/flutter_social_button.dart'; 2 | 3 | class SocialButton extends StatelessWidget { 4 | /// Callback function when the button is tapped. 5 | final VoidCallback onTap; 6 | 7 | /// Icon to be displayed on the button. 8 | final Widget icon; 9 | 10 | /// Background color of the button. 11 | final Color buttonColor; 12 | 13 | /// Text label displayed on the button. 14 | final String label; 15 | 16 | /// Optional text style for the label. 17 | final TextStyle? titleStyle; 18 | 19 | /// Size of the icon on the button. 20 | final double iconSize; 21 | 22 | /// Boolean to control whether the label is displayed or not. 23 | final bool showLabel; 24 | 25 | /// Optional border radius for the button (applies to square style only). 26 | final BorderRadius? borderRadius; 27 | 28 | /// Optional padding for the button. 29 | final EdgeInsets? padding; 30 | 31 | /// Optional elevation for the button. 32 | final double? elevation; 33 | 34 | /// Optional border color for the button. 35 | final Color? borderColor; 36 | 37 | /// Optional border width for the button. 38 | final double? borderWidth; 39 | 40 | /// Optional width for the button. 41 | final double? width; 42 | 43 | /// Optional height for the button. 44 | final double? height; 45 | final bool mini; 46 | 47 | /// Enum to define the button style (circle or square). 48 | final CustomButtonStyle buttonStyle; 49 | 50 | // Constructor to initialize the button properties 51 | const SocialButton({ 52 | required this.onTap, /// Callback for tap action 53 | required this.icon, /// Icon widget for the button 54 | required this.mini, required this.buttonColor, required this.label, super.key, 55 | 56 | /// Background color, required this.label, Key? key,, required this.label, super.key, 57 | 58 | /// Label text 59 | this.titleStyle, 60 | 61 | /// Optional custom text style for the label 62 | this.iconSize = 24.0, 63 | 64 | /// Optional icon size 65 | this.showLabel = true, 66 | 67 | /// Optional flag to show/hide label 68 | this.borderRadius, 69 | 70 | /// Optional custom border radius 71 | this.padding, 72 | 73 | /// Optional padding 74 | this.elevation = 2.0, 75 | 76 | /// Optional shadow elevation 77 | this.borderColor, 78 | 79 | /// Optional border color 80 | this.borderWidth = 0.0, 81 | 82 | /// Optional border width 83 | this.width, 84 | 85 | /// Optional button width 86 | this.height, 87 | 88 | /// Optional button height 89 | this.buttonStyle = CustomButtonStyle.square, 90 | 91 | /// Default button style is square 92 | }); 93 | 94 | @override 95 | Widget build(BuildContext context) { 96 | /// Build the custom button 97 | return GestureDetector( 98 | /// Detects tap action and triggers the onTap callback 99 | onTap: onTap, 100 | child: Container( 101 | /// Wraps the button inside a container 102 | width: width, 103 | 104 | /// Custom width if provided 105 | height: height, 106 | 107 | /// Custom height if provided 108 | padding: padding ?? 109 | const EdgeInsets.symmetric( 110 | horizontal: 16, 111 | vertical: 12,), // Default padding if none provided 112 | decoration: BoxDecoration( 113 | /// Custom button styling 114 | color: buttonColor, 115 | 116 | /// Background color 117 | borderRadius: buttonStyle == CustomButtonStyle.circle 118 | ? null 119 | 120 | /// Circle button should not have a border radius 121 | : (borderRadius ?? BorderRadius.circular(5)), 122 | 123 | /// Default or custom border radius for square buttons 124 | border: borderColor != null && borderWidth! > 0 125 | ? Border.all(color: borderColor!, width: borderWidth!) 126 | 127 | /// Border with specified color and width 128 | : null, 129 | 130 | /// No border if none specified 131 | shape: buttonStyle == CustomButtonStyle.circle 132 | ? BoxShape.circle 133 | 134 | /// Circle shape if specified 135 | : BoxShape.rectangle, 136 | 137 | /// Default to rectangle for square button 138 | boxShadow: [ 139 | if (elevation != 0.0) 140 | 141 | /// Adds shadow if elevation is not zero 142 | BoxShadow( 143 | color: Colors.black.withOpacity(0.2), 144 | blurRadius: elevation!, // Blur radius of the shadow 145 | spreadRadius: 1.0, // Spread radius of the shadow 146 | ), 147 | ], 148 | ), 149 | child: Center( 150 | /// Centers the content inside the button 151 | child: buttonStyle == CustomButtonStyle.circle || mini 152 | ? icon 153 | 154 | /// Only display the icon for circle button 155 | : Row( 156 | /// Displays icon and label for square button 157 | mainAxisSize: 158 | MainAxisSize.min, // Minimize row size to fit content 159 | children: [ 160 | icon, 161 | 162 | /// Display the icon 163 | if (showLabel) 164 | 165 | /// Conditionally display label based on the showLabel flag 166 | Padding( 167 | padding: const EdgeInsets.only( 168 | left: 8.0,), // Add space between icon and label 169 | child: Text( 170 | label, 171 | 172 | /// Text to be displayed 173 | style: titleStyle ?? 174 | const TextStyle( 175 | fontSize: 16, 176 | fontWeight: FontWeight.w600, 177 | color: Colors 178 | .white, // Default label style (white text) 179 | ), 180 | ), 181 | ), 182 | ], 183 | ), 184 | ), 185 | ), 186 | ); 187 | } 188 | } 189 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

Flutter Social Button

2 | 3 | # Flutter Social Button 4 | 5 | [![pub package](https://img.shields.io/pub/v/flutter_social_button.svg)](https://pub.dev/packages/flutter_social_button) 6 | [![pub points](https://img.shields.io/pub/likes/flutter_social_button?logo=dart)](https://pub.dev/packages/flutter_social_button) 7 | [![LinkedIn](https://img.shields.io/badge/LinkedIn-in-0e76a8)](https://www.linkedin.com/in/alok-dubey-02ba331b6) 8 | [![Instagram](https://img.shields.io/badge/Instagram-E4405F?logo=instagram&logoColor=white)](https://www.instagram.com/flutter_coding_/) 9 | [![Facebook](https://img.shields.io/badge/Facebook-1877F2?logo=facebook&logoColor=white)](https://www.facebook.com/dalok2811/) 10 | [![Youtube](https://img.shields.io/badge/YouTube-FF0000?logo=youtube&logoColor=white)](https://www.youtube.com/channel/UC7S6rSRNON1_YvKgiUjfyIw) 11 | 12 | --- 13 | 14 | ## Features 15 | 16 | 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. 17 | 18 | --- 19 | 20 | ## Getting Started 21 | 22 | Add the following dependency to your `pubspec.yaml` file: 23 | 24 | ```yaml 25 | dependencies: 26 | flutter: 27 | sdk: flutter 28 | flutter_social_button: ^latest_version 29 | ``` 30 | 31 | ## Usage Example 32 | 33 | import flutter_social_button.dart 34 | 35 | ``` 36 | 37 | import 'package:flutter_social_button/flutter_social_button.dart'; 38 | 39 | ``` 40 | ## For built-in buttons. 41 | 42 | ``` 43 | 44 | // for full width Buttons 45 | 46 | //For default Button Its return a Email Button 47 | FlutterSocialButton( 48 | onTap: () {}, ), 49 | 50 | //For facebook Button 51 | 52 | FlutterSocialButton( 53 | onTap: () {}, 54 | buttonType: ButtonType.facebook, // Button type for different type buttons 55 | ), 56 | 57 | //For google Button 58 | 59 | FlutterSocialButton( 60 | onTap: () {}, 61 | buttonType: ButtonType.google, // Button type for different type buttons 62 | iconColor: Colors.black, // for change icons colors 63 | ), 64 | 65 | // for Mini Circle Button 66 | 67 | FlutterSocialButton( 68 | onTap: () {}, 69 | mini: true, //just pass true for mini circle buttons 70 | buttonType: ButtonType.phone, // Button type for different type buttons 71 | ), 72 | 73 | ``` 74 | 75 | 76 | ## Button Types 77 | 78 | - Facebook 79 | - Google 80 | - Yahoo 81 | - Twitter 82 | - LinkedIn 83 | - WhatsApp 84 | - Apple 85 | - GitHub 86 | - Phone 87 | - Email 88 | - Instagram 89 | - YouTube 90 | - Snapchat 91 | - Pinterest 92 | - TikTok 93 | - Reddit 94 | - Tumblr 95 | - Skype 96 | - Viber 97 | - Discord 98 | - WeChat 99 | - Line 100 | - Quora 101 | - Twitch 102 | - Flickr 103 | - Yelp 104 | - Spotify 105 | 106 | 107 | 108 | ## Example 109 | 110 | 111 | 112 | ``` 113 | import 'package:flutter/material.dart'; 114 | import 'package:flutter_social_button/flutter_social_button.dart'; 115 | 116 | void main() { 117 | runApp(const MyApp()); 118 | } 119 | 120 | class MyApp extends StatelessWidget { 121 | const MyApp({Key? key}) : super(key: key); 122 | 123 | // This widget is the root of your application. 124 | @override 125 | Widget build(BuildContext context) { 126 | return MaterialApp( 127 | title: 'Flutter Demo', 128 | theme: ThemeData( 129 | primarySwatch: Colors.blue, 130 | ), 131 | home: const HomePage(), 132 | ); 133 | } 134 | } 135 | 136 | class HomePage extends StatelessWidget { 137 | const HomePage({Key? key}) : super(key: key); 138 | 139 | @override 140 | Widget build(BuildContext context) { 141 | return Scaffold( 142 | appBar: AppBar( 143 | title: const Text("Social Buttons"), 144 | centerTitle: true, 145 | ), 146 | body: Center( 147 | child: SingleChildScrollView( 148 | child: Column( 149 | mainAxisAlignment: MainAxisAlignment.center, 150 | children: [ 151 | //For default Button 152 | FlutterSocialButton( 153 | onTap: () {}, 154 | ), 155 | const SizedBox( 156 | height: 2, 157 | ), 158 | 159 | //For facebook Button 160 | FlutterSocialButton( 161 | onTap: () {}, 162 | buttonType: ButtonType.facebook, 163 | ), 164 | const SizedBox( 165 | height: 2, 166 | ), 167 | 168 | //For google Button 169 | FlutterSocialButton( 170 | onTap: () {}, 171 | buttonType: ButtonType.google, 172 | ), 173 | const SizedBox( 174 | height: 2, 175 | ), 176 | 177 | //For phone Button 178 | FlutterSocialButton( 179 | onTap: () {}, 180 | buttonType: ButtonType.phone, 181 | ), 182 | 183 | const SizedBox( 184 | height: 2, 185 | ), 186 | 187 | //For Whatsapp Button 188 | FlutterSocialButton( 189 | onTap: () {}, 190 | buttonType: ButtonType.whatsapp, 191 | ), 192 | const SizedBox( 193 | height: 2, 194 | ), 195 | 196 | const Divider( 197 | color: Colors.black, 198 | thickness: 2.5, 199 | ), 200 | Row( 201 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 202 | children: [ 203 | FlutterSocialButton( 204 | onTap: () {}, 205 | mini: true, 206 | ), 207 | FlutterSocialButton( 208 | onTap: () {}, 209 | mini: true, 210 | buttonType: ButtonType.facebook, 211 | ), 212 | FlutterSocialButton( 213 | onTap: () {}, 214 | mini: true, 215 | buttonType: ButtonType.google, 216 | ), 217 | FlutterSocialButton( 218 | onTap: () {}, 219 | mini: true, 220 | buttonType: ButtonType.phone, 221 | ), 222 | ], 223 | ) 224 | ], 225 | ), 226 | ), 227 | ), 228 | ); 229 | } 230 | } 231 | 232 | ``` 233 | 234 | 235 | 236 | 237 | ## Contributing 238 | Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. 239 | -------------------------------------------------------------------------------- /example/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "2.11.0" 12 | boolean_selector: 13 | dependency: transitive 14 | description: 15 | name: boolean_selector 16 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "2.1.1" 20 | characters: 21 | dependency: transitive 22 | description: 23 | name: characters 24 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "1.3.0" 28 | clock: 29 | dependency: transitive 30 | description: 31 | name: clock 32 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "1.1.1" 36 | collection: 37 | dependency: transitive 38 | description: 39 | name: collection 40 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "1.18.0" 44 | cupertino_icons: 45 | dependency: "direct main" 46 | description: 47 | name: cupertino_icons 48 | sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "1.0.8" 52 | fake_async: 53 | dependency: transitive 54 | description: 55 | name: fake_async 56 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "1.3.1" 60 | flutter: 61 | dependency: "direct main" 62 | description: flutter 63 | source: sdk 64 | version: "0.0.0" 65 | flutter_lints: 66 | dependency: "direct dev" 67 | description: 68 | name: flutter_lints 69 | sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1" 70 | url: "https://pub.dev" 71 | source: hosted 72 | version: "5.0.0" 73 | flutter_social_button: 74 | dependency: "direct main" 75 | description: 76 | path: ".." 77 | relative: true 78 | source: path 79 | version: "1.1.6+1" 80 | flutter_test: 81 | dependency: "direct dev" 82 | description: flutter 83 | source: sdk 84 | version: "0.0.0" 85 | font_awesome_flutter: 86 | dependency: transitive 87 | description: 88 | name: font_awesome_flutter 89 | sha256: d3a89184101baec7f4600d58840a764d2ef760fe1c5a20ef9e6b0e9b24a07a3a 90 | url: "https://pub.dev" 91 | source: hosted 92 | version: "10.8.0" 93 | leak_tracker: 94 | dependency: transitive 95 | description: 96 | name: leak_tracker 97 | sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" 98 | url: "https://pub.dev" 99 | source: hosted 100 | version: "10.0.5" 101 | leak_tracker_flutter_testing: 102 | dependency: transitive 103 | description: 104 | name: leak_tracker_flutter_testing 105 | sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" 106 | url: "https://pub.dev" 107 | source: hosted 108 | version: "3.0.5" 109 | leak_tracker_testing: 110 | dependency: transitive 111 | description: 112 | name: leak_tracker_testing 113 | sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" 114 | url: "https://pub.dev" 115 | source: hosted 116 | version: "3.0.1" 117 | lints: 118 | dependency: transitive 119 | description: 120 | name: lints 121 | sha256: "3315600f3fb3b135be672bf4a178c55f274bebe368325ae18462c89ac1e3b413" 122 | url: "https://pub.dev" 123 | source: hosted 124 | version: "5.0.0" 125 | matcher: 126 | dependency: transitive 127 | description: 128 | name: matcher 129 | sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb 130 | url: "https://pub.dev" 131 | source: hosted 132 | version: "0.12.16+1" 133 | material_color_utilities: 134 | dependency: transitive 135 | description: 136 | name: material_color_utilities 137 | sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec 138 | url: "https://pub.dev" 139 | source: hosted 140 | version: "0.11.1" 141 | meta: 142 | dependency: transitive 143 | description: 144 | name: meta 145 | sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 146 | url: "https://pub.dev" 147 | source: hosted 148 | version: "1.15.0" 149 | path: 150 | dependency: transitive 151 | description: 152 | name: path 153 | sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" 154 | url: "https://pub.dev" 155 | source: hosted 156 | version: "1.9.0" 157 | sky_engine: 158 | dependency: transitive 159 | description: flutter 160 | source: sdk 161 | version: "0.0.99" 162 | source_span: 163 | dependency: transitive 164 | description: 165 | name: source_span 166 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" 167 | url: "https://pub.dev" 168 | source: hosted 169 | version: "1.10.0" 170 | stack_trace: 171 | dependency: transitive 172 | description: 173 | name: stack_trace 174 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" 175 | url: "https://pub.dev" 176 | source: hosted 177 | version: "1.11.1" 178 | stream_channel: 179 | dependency: transitive 180 | description: 181 | name: stream_channel 182 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 183 | url: "https://pub.dev" 184 | source: hosted 185 | version: "2.1.2" 186 | string_scanner: 187 | dependency: transitive 188 | description: 189 | name: string_scanner 190 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 191 | url: "https://pub.dev" 192 | source: hosted 193 | version: "1.2.0" 194 | term_glyph: 195 | dependency: transitive 196 | description: 197 | name: term_glyph 198 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 199 | url: "https://pub.dev" 200 | source: hosted 201 | version: "1.2.1" 202 | test_api: 203 | dependency: transitive 204 | description: 205 | name: test_api 206 | sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" 207 | url: "https://pub.dev" 208 | source: hosted 209 | version: "0.7.2" 210 | vector_math: 211 | dependency: transitive 212 | description: 213 | name: vector_math 214 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 215 | url: "https://pub.dev" 216 | source: hosted 217 | version: "2.1.4" 218 | vm_service: 219 | dependency: transitive 220 | description: 221 | name: vm_service 222 | sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" 223 | url: "https://pub.dev" 224 | source: hosted 225 | version: "14.2.5" 226 | sdks: 227 | dart: ">=3.5.0 <4.0.0" 228 | flutter: ">=3.18.0-18.0.pre.54" 229 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. -------------------------------------------------------------------------------- /lib/src/widgets/social_login_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_social_button/flutter_social_button.dart'; // For icons 2 | 3 | class FlutterSocialButton extends StatelessWidget { 4 | /// The callback function when the button is tapped. 5 | final VoidCallback onTap; 6 | 7 | /// The type of social button. 8 | final ButtonType buttonType; 9 | 10 | /// The icon color for the button. 11 | final Color iconColor; 12 | 13 | /// Determines if the button is a mini (circular) or normal (rectangular). 14 | final bool mini; 15 | 16 | /// The title of the button (e.g., 'Login with Facebook'). 17 | final String? title; 18 | 19 | /// The size of the icon displayed on the button. 20 | final double iconSize; 21 | 22 | /// Whether to show the label or not. 23 | final bool showLabel; 24 | 25 | /// Custom text style for the label. 26 | final TextStyle? titleStyle; 27 | 28 | /// Custom icon widget for the button. 29 | final Widget? icon; 30 | 31 | /// The background color of the button. 32 | final Color? customButtonColor; 33 | 34 | /// Fully customizable width of the button. 35 | final double? width; 36 | 37 | /// Fully customizable height of the button. 38 | final double? height; 39 | 40 | /// Optional padding for the button. 41 | final EdgeInsets? padding; 42 | 43 | /// The border radius for the button. 44 | final BorderRadius? borderRadius; 45 | 46 | /// Optional elevation for the button. 47 | final double elevation; 48 | 49 | /// Optional border color for the button. 50 | final Color? borderColor; 51 | 52 | /// Optional border width for the button. 53 | final double borderWidth; 54 | 55 | final CustomButtonStyle buttonStyle; 56 | 57 | const FlutterSocialButton({ 58 | required this.onTap, 59 | super.key, 60 | this.buttonType = ButtonType.email, 61 | this.iconColor = Colors.white, 62 | this.title, 63 | this.buttonStyle = CustomButtonStyle.square, 64 | this.iconSize = 24.0, 65 | this.showLabel = true, 66 | this.titleStyle, 67 | this.icon, 68 | this.customButtonColor, 69 | this.width, 70 | this.height, 71 | this.padding, 72 | this.mini = false, 73 | this.borderRadius, 74 | this.elevation = 2.0, 75 | this.borderColor, 76 | this.borderWidth = 0.0, 77 | }); 78 | 79 | /// A utility function to retrieve the color by ButtonType 80 | /// A method to return a color based on the button type. 81 | Color _getColor() { 82 | ButtonColors buttonColors = ButtonColors(); 83 | 84 | /// Use a switch statement to determine which color to return based on the button type. 85 | switch (buttonType) { 86 | case ButtonType.apple: 87 | 88 | /// Return the apple button color from buttonColors.. 89 | return buttonColors.apple; 90 | case ButtonType.yahoo: 91 | 92 | /// Return the yahoo button color from buttonColors. 93 | return buttonColors.yahoo; 94 | case ButtonType.facebook: 95 | 96 | /// Return the facebook button color from buttonColors. 97 | return buttonColors.facebook; 98 | case ButtonType.google: 99 | 100 | /// Return the google button color from buttonColors. 101 | return buttonColors.google; 102 | case ButtonType.twitter: 103 | 104 | /// Return the twitter button color from buttonColors. 105 | return buttonColors 106 | .twitter; // 'x' is used here for Twitter, assuming that's the defined color. 107 | case ButtonType.linkedin: 108 | 109 | /// Return the linkedin button color from buttonColors. 110 | return buttonColors.linkedin; 111 | case ButtonType.whatsapp: 112 | 113 | /// Return the whatsapp button color from buttonColors. 114 | return buttonColors.whatsapp; 115 | case ButtonType.github: 116 | 117 | /// Return the github button color from buttonColors. 118 | return buttonColors.github; 119 | case ButtonType.phone: 120 | 121 | /// Return the phone button color from buttonColors. 122 | return buttonColors.phone; 123 | case ButtonType.instagram: 124 | 125 | /// Return the instagram button color from buttonColors. 126 | return buttonColors.instagram; 127 | case ButtonType.snapchat: 128 | 129 | /// Return the snapchat button color from buttonColors. 130 | return buttonColors.snapchat; 131 | case ButtonType.pinterest: 132 | 133 | /// Return the pinterest button color from buttonColors. 134 | return buttonColors.pinterest; 135 | case ButtonType.tiktok: 136 | 137 | /// Return the tiktok button color from buttonColors. 138 | return buttonColors.tiktok; 139 | case ButtonType.reddit: 140 | 141 | /// Return the reddit button color from buttonColors. 142 | return buttonColors.reddit; 143 | case ButtonType.discord: 144 | 145 | /// Return the discord button color from buttonColors. 146 | return buttonColors.discord; 147 | case ButtonType.wechat: 148 | 149 | /// Return the wechat button color from buttonColors. 150 | return buttonColors.wechat; 151 | case ButtonType.line: 152 | 153 | /// Return the line button color from buttonColors. 154 | return buttonColors.line; 155 | case ButtonType.quora: 156 | 157 | /// Return the quora button color from buttonColors. 158 | return buttonColors.quora; 159 | case ButtonType.twitch: 160 | 161 | /// Return the twitch button color from buttonColors. 162 | return buttonColors.twitch; 163 | case ButtonType.flickr: 164 | 165 | /// Return the flickr button color from buttonColors. 166 | return buttonColors.flickr; 167 | case ButtonType.spotify: 168 | 169 | /// Return the spotify button color from buttonColors. 170 | return buttonColors.spotify; 171 | case ButtonType.youtube: 172 | 173 | /// Return the youtube button color from buttonColors. 174 | return buttonColors.youtube; 175 | case ButtonType.tumblr: 176 | 177 | /// Return the tumblr button color from buttonColors. 178 | return buttonColors.tumblr; 179 | case ButtonType.skype: 180 | 181 | /// Return the skype button color from buttonColors. 182 | return buttonColors.skype; 183 | case ButtonType.viber: 184 | 185 | /// Return the viber button color from buttonColors. 186 | return buttonColors.viber; 187 | case ButtonType.yelp: 188 | 189 | /// Return the yelp button color from buttonColors. 190 | return buttonColors.yelp; 191 | case ButtonType.website: 192 | 193 | /// Return the website button color from buttonColors. 194 | return buttonColors.website; 195 | default: 196 | 197 | /// Return a default color if no matching button type is found. 198 | return buttonColors.defaultColor; 199 | } 200 | } 201 | 202 | /// A method to return an icon widget based on the button type. 203 | Widget _getIcon() { 204 | switch (buttonType) { 205 | case ButtonType.facebook: 206 | 207 | /// If no customIcon is provided, return the Facebook icon from FontAwesome with the specified color and size. 208 | return icon ?? 209 | Icon(FontAwesomeIcons.facebookF, color: iconColor, size: iconSize); 210 | case ButtonType.google: 211 | 212 | /// Return the Google icon from FontAwesome with the specified color and size. 213 | return icon ?? 214 | Icon(FontAwesomeIcons.google, color: iconColor, size: iconSize); 215 | case ButtonType.twitter: 216 | 217 | /// Return the Twitter icon from FontAwesome with the specified color and size. 218 | return icon ?? 219 | Icon(FontAwesomeIcons.twitter, color: iconColor, size: iconSize); 220 | case ButtonType.linkedin: 221 | 222 | /// Return the LinkedIn icon from FontAwesome with the specified color and size. 223 | return icon ?? 224 | Icon(FontAwesomeIcons.linkedin, color: iconColor, size: iconSize); 225 | case ButtonType.whatsapp: 226 | 227 | /// Return the WhatsApp icon from FontAwesome with the specified color and size. 228 | return icon ?? 229 | Icon(FontAwesomeIcons.whatsapp, color: iconColor, size: iconSize); 230 | case ButtonType.apple: 231 | 232 | /// Return the Apple icon from FontAwesome with the specified color and size. 233 | return icon ?? 234 | Icon(FontAwesomeIcons.apple, color: iconColor, size: iconSize); 235 | case ButtonType.github: 236 | 237 | /// Return the GitHub icon from FontAwesome with the specified color and size. 238 | return icon ?? 239 | Icon(FontAwesomeIcons.github, color: iconColor, size: iconSize); 240 | case ButtonType.yahoo: 241 | 242 | /// Return the Yahoo icon from FontAwesome with the specified color and size. 243 | return icon ?? 244 | Icon(FontAwesomeIcons.yahoo, color: iconColor, size: iconSize); 245 | case ButtonType.phone: 246 | 247 | /// Return the Phone icon using Flutter's built-in icon with the specified color and size. 248 | return icon ?? 249 | Icon(Icons.phone_android, color: iconColor, size: iconSize); 250 | case ButtonType.email: 251 | 252 | /// Return the Email icon using Flutter's built-in icon with the specified color and size. 253 | return icon ?? Icon(Icons.email, color: iconColor, size: iconSize); 254 | case ButtonType.instagram: 255 | 256 | /// Return the Instagram icon from FontAwesome with the specified color and size. 257 | return icon ?? 258 | Icon(FontAwesomeIcons.instagram, color: iconColor, size: iconSize); 259 | case ButtonType.youtube: 260 | 261 | /// Return the YouTube icon from FontAwesome with the specified color and size. 262 | return icon ?? 263 | Icon(FontAwesomeIcons.youtube, color: iconColor, size: iconSize); 264 | case ButtonType.snapchat: 265 | 266 | /// Return the Snapchat icon from FontAwesome with the specified color and size. 267 | return icon ?? 268 | Icon(FontAwesomeIcons.snapchat, color: iconColor, size: iconSize); 269 | case ButtonType.pinterest: 270 | 271 | /// Return the Pinterest icon from FontAwesome with the specified color and size. 272 | return icon ?? 273 | Icon(FontAwesomeIcons.pinterest, color: iconColor, size: iconSize); 274 | case ButtonType.tiktok: 275 | 276 | /// Return the TikTok icon from FontAwesome with the specified color and size. 277 | return icon ?? 278 | Icon(FontAwesomeIcons.tiktok, color: iconColor, size: iconSize); 279 | case ButtonType.reddit: 280 | 281 | /// Return the Reddit icon from FontAwesome with the specified color and size. 282 | return icon ?? 283 | Icon( 284 | FontAwesomeIcons.redditAlien, 285 | color: iconColor, 286 | size: iconSize, 287 | ); 288 | case ButtonType.tumblr: 289 | 290 | /// Return the Tumblr icon from FontAwesome with the specified color and size. 291 | return icon ?? 292 | Icon(FontAwesomeIcons.tumblr, color: iconColor, size: iconSize); 293 | case ButtonType.skype: 294 | 295 | /// Return the Skype icon from FontAwesome with the specified color and size. 296 | return icon ?? 297 | Icon(FontAwesomeIcons.skype, color: iconColor, size: iconSize); 298 | case ButtonType.viber: 299 | 300 | /// Return the Viber icon from FontAwesome with the specified color and size. 301 | return icon ?? 302 | Icon(FontAwesomeIcons.viber, color: iconColor, size: iconSize); 303 | case ButtonType.discord: 304 | 305 | /// Return the Discord icon from FontAwesome with the specified color and size. 306 | return icon ?? 307 | Icon(FontAwesomeIcons.discord, color: iconColor, size: iconSize); 308 | case ButtonType.wechat: 309 | 310 | /// Return the WeChat icon (weixin) from FontAwesome with the specified color and size. 311 | return icon ?? 312 | Icon(FontAwesomeIcons.weixin, color: iconColor, size: iconSize); 313 | case ButtonType.line: 314 | 315 | /// Return the Line icon from FontAwesome with the specified color and size. 316 | return icon ?? 317 | Icon(FontAwesomeIcons.line, color: iconColor, size: iconSize); 318 | case ButtonType.quora: 319 | 320 | /// Return the Quora icon from FontAwesome with the specified color and size. 321 | return icon ?? 322 | Icon(FontAwesomeIcons.quora, color: iconColor, size: iconSize); 323 | case ButtonType.twitch: 324 | 325 | /// Return the Twitch icon from FontAwesome with the specified color and size. 326 | return icon ?? 327 | Icon(FontAwesomeIcons.twitch, color: iconColor, size: iconSize); 328 | case ButtonType.flickr: 329 | 330 | /// Return the Flickr icon from FontAwesome with the specified color and size. 331 | return icon ?? 332 | Icon(FontAwesomeIcons.flickr, color: iconColor, size: iconSize); 333 | case ButtonType.yelp: 334 | 335 | /// Return the Yelp icon from FontAwesome with the specified color and size. 336 | return icon ?? 337 | Icon(FontAwesomeIcons.yelp, color: iconColor, size: iconSize); 338 | case ButtonType.spotify: 339 | 340 | /// Return the Spotify icon from FontAwesome with the specified color and size. 341 | return icon ?? 342 | Icon(FontAwesomeIcons.spotify, color: iconColor, size: iconSize); 343 | case ButtonType.website: 344 | 345 | /// Return the Website icon using Flutter's built-in icon with the specified color and size. 346 | return icon ?? Icon(Icons.language, color: iconColor, size: iconSize); 347 | default: 348 | 349 | /// Return a default icon (email icon) if no matching button type is found. 350 | return icon ?? 351 | Icon(Icons.email, color: iconColor, size: iconSize); // Default case 352 | } 353 | } 354 | 355 | @override 356 | Widget build(BuildContext context) => SocialButton( 357 | onTap: onTap, 358 | icon: _getIcon(), 359 | buttonColor: customButtonColor ?? _getColor(), 360 | label: title ?? '', 361 | mini: mini, 362 | titleStyle: titleStyle, 363 | iconSize: iconSize, 364 | showLabel: showLabel, 365 | padding: padding, 366 | borderRadius: borderRadius, 367 | elevation: elevation, 368 | borderColor: borderColor, 369 | borderWidth: borderWidth, 370 | width: width, 371 | height: height, 372 | buttonStyle: buttonStyle, 373 | ); 374 | } 375 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1510; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | alwaysOutOfDate = 1; 175 | buildActionMask = 2147483647; 176 | files = ( 177 | ); 178 | inputPaths = ( 179 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", 180 | ); 181 | name = "Thin Binary"; 182 | outputPaths = ( 183 | ); 184 | runOnlyForDeploymentPostprocessing = 0; 185 | shellPath = /bin/sh; 186 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 187 | }; 188 | 9740EEB61CF901F6004384FC /* Run Script */ = { 189 | isa = PBXShellScriptBuildPhase; 190 | alwaysOutOfDate = 1; 191 | buildActionMask = 2147483647; 192 | files = ( 193 | ); 194 | inputPaths = ( 195 | ); 196 | name = "Run Script"; 197 | outputPaths = ( 198 | ); 199 | runOnlyForDeploymentPostprocessing = 0; 200 | shellPath = /bin/sh; 201 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 202 | }; 203 | /* End PBXShellScriptBuildPhase section */ 204 | 205 | /* Begin PBXSourcesBuildPhase section */ 206 | 97C146EA1CF9000F007C117D /* Sources */ = { 207 | isa = PBXSourcesBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 211 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | }; 215 | /* End PBXSourcesBuildPhase section */ 216 | 217 | /* Begin PBXVariantGroup section */ 218 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 219 | isa = PBXVariantGroup; 220 | children = ( 221 | 97C146FB1CF9000F007C117D /* Base */, 222 | ); 223 | name = Main.storyboard; 224 | sourceTree = ""; 225 | }; 226 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 227 | isa = PBXVariantGroup; 228 | children = ( 229 | 97C147001CF9000F007C117D /* Base */, 230 | ); 231 | name = LaunchScreen.storyboard; 232 | sourceTree = ""; 233 | }; 234 | /* End PBXVariantGroup section */ 235 | 236 | /* Begin XCBuildConfiguration section */ 237 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 238 | isa = XCBuildConfiguration; 239 | buildSettings = { 240 | ALWAYS_SEARCH_USER_PATHS = NO; 241 | CLANG_ANALYZER_NONNULL = YES; 242 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 243 | CLANG_CXX_LIBRARY = "libc++"; 244 | CLANG_ENABLE_MODULES = YES; 245 | CLANG_ENABLE_OBJC_ARC = YES; 246 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 247 | CLANG_WARN_BOOL_CONVERSION = YES; 248 | CLANG_WARN_COMMA = YES; 249 | CLANG_WARN_CONSTANT_CONVERSION = YES; 250 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 251 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 252 | CLANG_WARN_EMPTY_BODY = YES; 253 | CLANG_WARN_ENUM_CONVERSION = YES; 254 | CLANG_WARN_INFINITE_RECURSION = YES; 255 | CLANG_WARN_INT_CONVERSION = YES; 256 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 257 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 258 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 259 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 260 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 261 | CLANG_WARN_STRICT_PROTOTYPES = YES; 262 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 263 | CLANG_WARN_UNREACHABLE_CODE = YES; 264 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 265 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 266 | COPY_PHASE_STRIP = NO; 267 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 268 | ENABLE_NS_ASSERTIONS = NO; 269 | ENABLE_STRICT_OBJC_MSGSEND = YES; 270 | GCC_C_LANGUAGE_STANDARD = gnu99; 271 | GCC_NO_COMMON_BLOCKS = YES; 272 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 273 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 274 | GCC_WARN_UNDECLARED_SELECTOR = YES; 275 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 276 | GCC_WARN_UNUSED_FUNCTION = YES; 277 | GCC_WARN_UNUSED_VARIABLE = YES; 278 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 279 | MTL_ENABLE_DEBUG_INFO = NO; 280 | SDKROOT = iphoneos; 281 | SUPPORTED_PLATFORMS = iphoneos; 282 | TARGETED_DEVICE_FAMILY = "1,2"; 283 | VALIDATE_PRODUCT = YES; 284 | }; 285 | name = Profile; 286 | }; 287 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 288 | isa = XCBuildConfiguration; 289 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 290 | buildSettings = { 291 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 292 | CLANG_ENABLE_MODULES = YES; 293 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 294 | DEVELOPMENT_TEAM = W3TVMLV5C9; 295 | ENABLE_BITCODE = NO; 296 | INFOPLIST_FILE = Runner/Info.plist; 297 | LD_RUNPATH_SEARCH_PATHS = ( 298 | "$(inherited)", 299 | "@executable_path/Frameworks", 300 | ); 301 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example; 302 | PRODUCT_NAME = "$(TARGET_NAME)"; 303 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 304 | SWIFT_VERSION = 5.0; 305 | VERSIONING_SYSTEM = "apple-generic"; 306 | }; 307 | name = Profile; 308 | }; 309 | 97C147031CF9000F007C117D /* Debug */ = { 310 | isa = XCBuildConfiguration; 311 | buildSettings = { 312 | ALWAYS_SEARCH_USER_PATHS = NO; 313 | CLANG_ANALYZER_NONNULL = YES; 314 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 315 | CLANG_CXX_LIBRARY = "libc++"; 316 | CLANG_ENABLE_MODULES = YES; 317 | CLANG_ENABLE_OBJC_ARC = YES; 318 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 319 | CLANG_WARN_BOOL_CONVERSION = YES; 320 | CLANG_WARN_COMMA = YES; 321 | CLANG_WARN_CONSTANT_CONVERSION = YES; 322 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 323 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 324 | CLANG_WARN_EMPTY_BODY = YES; 325 | CLANG_WARN_ENUM_CONVERSION = YES; 326 | CLANG_WARN_INFINITE_RECURSION = YES; 327 | CLANG_WARN_INT_CONVERSION = YES; 328 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 329 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 330 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 331 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 332 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 333 | CLANG_WARN_STRICT_PROTOTYPES = YES; 334 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 335 | CLANG_WARN_UNREACHABLE_CODE = YES; 336 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 337 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 338 | COPY_PHASE_STRIP = NO; 339 | DEBUG_INFORMATION_FORMAT = dwarf; 340 | ENABLE_STRICT_OBJC_MSGSEND = YES; 341 | ENABLE_TESTABILITY = YES; 342 | GCC_C_LANGUAGE_STANDARD = gnu99; 343 | GCC_DYNAMIC_NO_PIC = NO; 344 | GCC_NO_COMMON_BLOCKS = YES; 345 | GCC_OPTIMIZATION_LEVEL = 0; 346 | GCC_PREPROCESSOR_DEFINITIONS = ( 347 | "DEBUG=1", 348 | "$(inherited)", 349 | ); 350 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 351 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 352 | GCC_WARN_UNDECLARED_SELECTOR = YES; 353 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 354 | GCC_WARN_UNUSED_FUNCTION = YES; 355 | GCC_WARN_UNUSED_VARIABLE = YES; 356 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 357 | MTL_ENABLE_DEBUG_INFO = YES; 358 | ONLY_ACTIVE_ARCH = YES; 359 | SDKROOT = iphoneos; 360 | TARGETED_DEVICE_FAMILY = "1,2"; 361 | }; 362 | name = Debug; 363 | }; 364 | 97C147041CF9000F007C117D /* Release */ = { 365 | isa = XCBuildConfiguration; 366 | buildSettings = { 367 | ALWAYS_SEARCH_USER_PATHS = NO; 368 | CLANG_ANALYZER_NONNULL = YES; 369 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 370 | CLANG_CXX_LIBRARY = "libc++"; 371 | CLANG_ENABLE_MODULES = YES; 372 | CLANG_ENABLE_OBJC_ARC = YES; 373 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 374 | CLANG_WARN_BOOL_CONVERSION = YES; 375 | CLANG_WARN_COMMA = YES; 376 | CLANG_WARN_CONSTANT_CONVERSION = YES; 377 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 378 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 379 | CLANG_WARN_EMPTY_BODY = YES; 380 | CLANG_WARN_ENUM_CONVERSION = YES; 381 | CLANG_WARN_INFINITE_RECURSION = YES; 382 | CLANG_WARN_INT_CONVERSION = YES; 383 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 384 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 385 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 386 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 387 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 388 | CLANG_WARN_STRICT_PROTOTYPES = YES; 389 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 390 | CLANG_WARN_UNREACHABLE_CODE = YES; 391 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 392 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 393 | COPY_PHASE_STRIP = NO; 394 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 395 | ENABLE_NS_ASSERTIONS = NO; 396 | ENABLE_STRICT_OBJC_MSGSEND = YES; 397 | GCC_C_LANGUAGE_STANDARD = gnu99; 398 | GCC_NO_COMMON_BLOCKS = YES; 399 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 400 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 401 | GCC_WARN_UNDECLARED_SELECTOR = YES; 402 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 403 | GCC_WARN_UNUSED_FUNCTION = YES; 404 | GCC_WARN_UNUSED_VARIABLE = YES; 405 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 406 | MTL_ENABLE_DEBUG_INFO = NO; 407 | SDKROOT = iphoneos; 408 | SUPPORTED_PLATFORMS = iphoneos; 409 | SWIFT_COMPILATION_MODE = wholemodule; 410 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 411 | TARGETED_DEVICE_FAMILY = "1,2"; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 97C147061CF9000F007C117D /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 419 | buildSettings = { 420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 421 | CLANG_ENABLE_MODULES = YES; 422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 423 | DEVELOPMENT_TEAM = W3TVMLV5C9; 424 | ENABLE_BITCODE = NO; 425 | INFOPLIST_FILE = Runner/Info.plist; 426 | LD_RUNPATH_SEARCH_PATHS = ( 427 | "$(inherited)", 428 | "@executable_path/Frameworks", 429 | ); 430 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example; 431 | PRODUCT_NAME = "$(TARGET_NAME)"; 432 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 433 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 434 | SWIFT_VERSION = 5.0; 435 | VERSIONING_SYSTEM = "apple-generic"; 436 | }; 437 | name = Debug; 438 | }; 439 | 97C147071CF9000F007C117D /* Release */ = { 440 | isa = XCBuildConfiguration; 441 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 442 | buildSettings = { 443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 444 | CLANG_ENABLE_MODULES = YES; 445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 446 | DEVELOPMENT_TEAM = W3TVMLV5C9; 447 | ENABLE_BITCODE = NO; 448 | INFOPLIST_FILE = Runner/Info.plist; 449 | LD_RUNPATH_SEARCH_PATHS = ( 450 | "$(inherited)", 451 | "@executable_path/Frameworks", 452 | ); 453 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example; 454 | PRODUCT_NAME = "$(TARGET_NAME)"; 455 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 456 | SWIFT_VERSION = 5.0; 457 | VERSIONING_SYSTEM = "apple-generic"; 458 | }; 459 | name = Release; 460 | }; 461 | /* End XCBuildConfiguration section */ 462 | 463 | /* Begin XCConfigurationList section */ 464 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 465 | isa = XCConfigurationList; 466 | buildConfigurations = ( 467 | 97C147031CF9000F007C117D /* Debug */, 468 | 97C147041CF9000F007C117D /* Release */, 469 | 249021D3217E4FDB00AE95B9 /* Profile */, 470 | ); 471 | defaultConfigurationIsVisible = 0; 472 | defaultConfigurationName = Release; 473 | }; 474 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 475 | isa = XCConfigurationList; 476 | buildConfigurations = ( 477 | 97C147061CF9000F007C117D /* Debug */, 478 | 97C147071CF9000F007C117D /* Release */, 479 | 249021D4217E4FDB00AE95B9 /* Profile */, 480 | ); 481 | defaultConfigurationIsVisible = 0; 482 | defaultConfigurationName = Release; 483 | }; 484 | /* End XCConfigurationList section */ 485 | }; 486 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 487 | } 488 | --------------------------------------------------------------------------------