https://github.com/bryanbill/flutter_twitter_login_v2
https://github.com/bryanbill/flutter_twitter_login_v2
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bryanbill/flutter_twitter_login_v2
- Owner: bryanbill
- License: mit
- Created: 2022-09-14T09:27:03.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-14T09:27:07.000Z (almost 4 years ago)
- Last Synced: 2025-02-17T07:45:05.417Z (over 1 year ago)
- Language: Java
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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();
```