Search packages, repositories and app categories

Package detailsv1.1.0

flutter_twitter_login

A Flutter plugin for allowing users to authenticate with native Android & iOS Twitter login SDKs.

30-day downloads
76
Likes
35
Pub points
40

Install package

flutter pub add flutter_twitter_login

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter plugin that enables native Twitter authentication on Android and iOS using the official Twitter SDKs. It simplifies the process of integrating Twitter login into Flutter apps, handling OAuth flows and token management securely. The plugin provides a straightforward API for initiating login, retrieving user credentials, and managing session state. Designed to work seamlessly with platform-specific implementations, it ensures consistent behavior across devices. Ideal for apps requiring social login or user identity verification via Twitter.

Use cases

  • Social login integration
  • User authentication via Twitter
  • App onboarding with social accounts
  • Secure OAuth flow implementation
  • Cross-platform Twitter login

Key features

  • Native Android & iOS SDK integration
  • OAuth 1.0a support
  • Token management
  • Platform-specific UI handling
  • Simple API for login and logout

Suitable for

  • Apps needing Twitter login
  • Developers building social features
  • Projects requiring secure authentication
  • Cross-platform mobile apps
  • Startups using social sign-in

Considerations

  • Requires Twitter Developer account
  • Needs proper app configuration in Twitter Developer Portal
  • Limited to OAuth 1.0a (not OAuth 2.0)
  • Dependent on external Twitter SDKs
  • May require additional permissions for user data access

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_twitter_login

pub package Build Status Coverage Status

A Flutter plugin for using the native TwitterKit SDKs on Android and iOS.

This plugin uses the new Gradle 4.1 and Android Studio 3.0 project setup.

Dart support

  • Dart 1: 1.0.x.
  • Dart 2: 1.1.0 and up.

Installation

See the installation instructions on pub. No platform-specific configuration is needed!

How do I use it?

Here's some sample code that should cover most of the cases. For full API reference, just see the source code. Everything is documented there.

var twitterLogin = new TwitterLogin(
  consumerKey: '<your consumer key>',
  consumerSecret: '<your consumer secret>',
);

final TwitterLoginResult result = await twitterLogin.authorize();

switch (result.status) {
  case TwitterLoginStatus.loggedIn:
    var session = result.session;
    _sendTokenAndSecretToServer(session.token, session.secret);
    break;
  case TwitterLoginStatus.cancelledByUser:
    _showCancelMessage();
    break;
  case TwitterLoginStatus.error:
    _showErrorMessage(result.error);
    break;
}

Categories

Source repository

Projects using this package

No data available yet.