{"id":15489208,"url":"https://github.com/roughike/flutter_twitter_login","last_synced_at":"2025-04-09T21:18:44.099Z","repository":{"id":46424459,"uuid":"120519156","full_name":"roughike/flutter_twitter_login","owner":"roughike","description":"A Flutter plugin for authenticating users by using the native TwitterKit SDKs on Android \u0026 iOS.","archived":false,"fork":false,"pushed_at":"2021-08-04T17:21:22.000Z","size":125,"stargazers_count":83,"open_issues_count":39,"forks_count":135,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T19:05:56.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roughike.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-06T20:26:56.000Z","updated_at":"2024-09-19T16:35:04.000Z","dependencies_parsed_at":"2022-08-26T13:51:26.557Z","dependency_job_id":null,"html_url":"https://github.com/roughike/flutter_twitter_login","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roughike%2Fflutter_twitter_login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roughike%2Fflutter_twitter_login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roughike%2Fflutter_twitter_login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roughike%2Fflutter_twitter_login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roughike","download_url":"https://codeload.github.com/roughike/flutter_twitter_login/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248111973,"owners_count":21049578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T07:04:25.470Z","updated_at":"2025-04-09T21:18:44.060Z","avatar_url":"https://github.com/roughike.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_twitter_login\n\n[![pub package](https://img.shields.io/pub/v/flutter_twitter_login.svg)](https://pub.dartlang.org/packages/flutter_twitter_login)\n [![Build Status](https://travis-ci.org/roughike/flutter_twitter_login.svg?branch=master)](https://travis-ci.org/roughike/flutter_twitter_login)\n [![Coverage Status](https://coveralls.io/repos/github/roughike/flutter_twitter_login/badge.svg)](https://coveralls.io/github/roughike/flutter_twitter_login)\n\nA Flutter plugin for using the native TwitterKit SDKs on Android and iOS.\n\nThis plugin uses [the new Gradle 4.1 and Android Studio 3.0 project setup](https://github.com/flutter/flutter/wiki/Updating-Flutter-projects-to-Gradle-4.1-and-Android-Studio-Gradle-plugin-3.0.1).\n\n## Dart support\n\n* Dart 1: 1.0.x.\n* Dart 2: 1.1.0 and up.\n\n## Installation\n\nSee the [installation instructions on pub](https://pub.dartlang.org/packages/flutter_twitter_login#-installing-tab-). No platform-specific configuration is needed!\n\n## How do I use it?\n\nHere's some sample code that should cover most of the cases. For full API reference, just [see the source code](https://github.com/roughike/flutter_twitter_login/blob/master/lib/flutter_twitter_login.dart). Everything is documented there.\n\n```dart\nvar twitterLogin = new TwitterLogin(\n  consumerKey: '\u003cyour consumer key\u003e',\n  consumerSecret: '\u003cyour consumer secret\u003e',\n);\n\nfinal TwitterLoginResult result = await twitterLogin.authorize();\n\nswitch (result.status) {\n  case TwitterLoginStatus.loggedIn:\n    var session = result.session;\n    _sendTokenAndSecretToServer(session.token, session.secret);\n    break;\n  case TwitterLoginStatus.cancelledByUser:\n    _showCancelMessage();\n    break;\n  case TwitterLoginStatus.error:\n    _showErrorMessage(result.error);\n    break;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froughike%2Fflutter_twitter_login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froughike%2Fflutter_twitter_login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froughike%2Fflutter_twitter_login/lists"}