flutter_twitter_login 1.0.0 copy "flutter_twitter_login: ^1.0.0" to clipboard
flutter_twitter_login: ^1.0.0 copied to clipboard

outdatedDart 1 only

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

flutter_twitter_login #

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.

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;
}
35
likes
0
pub points
71%
popularity

Publisher

verified publisheriiro.dev

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_twitter_login