twitter_login 0.0.4 copy "twitter_login: ^0.0.4" to clipboard
twitter_login: ^0.0.4 copied to clipboard

outdated

Flutter Twitter Login Plugin

twitter_login #

Pub Version

Flutter Twitter Login Plugin

Requirements #

  • Dart sdk: ">=2.7.0 <3.0.0"
  • Flutter: ">=1.10.0"
  • Android: minSdkVersion 17 and add support for androidx
  • iOS: --ios-language swift, Xcode version >= 11

Example code #

See the example directory for a complete sample app using twitter_login.

example

Usage #

To use this plugin, add twitter_login as a dependency in your pubspec.yaml file.

Example #

import 'package:flutter/material.dart';
import 'package:twitter_login/twitter_login.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: FlatButton(
            child: Text('login'),
            onPressed: () async {
              final twitterLogin = TwitterLogin(
                apiKey: 'xxxx',
                apiSecretKey: 'xxxx',
                redirectURI: 'URLScheme',
              );
              final authResult = twitterLogin.login();
            },
          ),
        ),
      ),
    );
  }
}
109
likes
30
pub points
97%
popularity

Publisher

unverified uploader

Flutter Twitter Login Plugin

Homepage

License

BSD-3-Clause (LICENSE)

Dependencies

crypto, flutter, flutter_inappwebview, http

More

Packages that depend on twitter_login