v1.1.0
flutter_twitter_login
एक फ्लटर प्लगइन जो उपयोगकर्ताओं को मूल एंड्रॉइड और आईओएस ट्विटर लॉगिन SDK के साथ प्रमाणीकरण करने की अनुमति देता है।
35लाइक 2630-दिन डाउनलोड40Pub अंक
प्लेटफ़ॉर्म डेटा नहीं
एंड्रॉइड और आईओएस पर मूल ट्विटरकिट SDK का उपयोग करके उपयोगकर्ताओं की प्रमाणीकरण के लिए एक फ्लटर प्लगइन।
{"sdk":"flutter"}{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
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.
See the installation instructions on pub. No platform-specific configuration is needed!
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;
}