An open API service indexing awesome lists of open source software.

https://github.com/bryanbill/flutter_twitter_login_v2


https://github.com/bryanbill/flutter_twitter_login_v2

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# twitter_oauth_v2

![Pub Version](https://img.shields.io/pub/v/twitter_oauth_v2)

Flutter Twitter Login Plugin

## Install

```
twitter_oauth_v2: ^0.0.1
```

## Android Configuration

### Add intent filters for incoming links

[/example/android/app/src/main/AndroidManifest.xm](https://github.com/anycloud-inc/flutter_twitter_oauth_v2/blob/master/example/android/app/src/main/AndroidManifest.xml)

You need to replace {example} with a Callback URLs.

```xml






```

### Supporting the new Android plugins APIs

If you created your project with a version prior to 1.12, you will need to update your project to use the new Java Embedding API.
Make sure flutter_embedding v2 is enabled. Add the following code on the manifest file inside tag to enable embedding.
Flutter wiki: [Upgrading pre 1.12 Android projects.](https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects)

```xml

```

## iOS Configuration

### Add URLScheme

[/example/ios/Runner/Info.plist](https://github.com/anycloud-inc/flutter_twitter_oauth_v2/blob/master/example/ios/Runner/Info.plist)

You need to replace {example} with a Callback URLs.

```xml
CFBundleURLTypes


CFBundleTypeRole
Editor
CFBundleURLName

CFBundleURLSchemes


{example}

```

# Example of usage

```dart
final twitterLogin = TwitterLoginV2(
clientId: "CLIENT_ID", /// Consumer API keys
redirectURI: "REDIRECT_URI", /// Registered Callback URLs in TwitterApp
);

final accessToken = await twitterLogin.loginV2();
```