flutter_github 0.0.3 flutter_github: ^0.0.3 copied to clipboard
A new Flutter plugin to get details of Github account of any user such as name, bio, profile image, number of followers,following, public repos and public gists, createdAt, updatedAt, email and detail [...]
Flutter package to get details of Github user
How to Use #
To use flutter_github start by importing the package
import 'package:flutter_github/flutter_github.dart';
Get Profile Details #
FlutterGithub _flutterGithub = new FlutterGithub();
await _flutterGithub.getUserData(userName);
Print User Details #
print("Name: ${_flutterGithub.name}")
print("Bio: ${_flutterGithub.bio}")
print("Image: ${_flutterGithub.image}")
print("Followers: ${_flutterGithub.followers}")
print("Following: ${_flutterGithub.following}")
print("CreatedAt: ${_flutterGithub.createdAt}")
print("UpdatedAt: ${_flutterGithub.updatedAt}")
print("Public Repos: ${_flutterGithub.publicRepos}")
print("Public Gists: ${_flutterGithub.publicGists}")
print("Email: ${_flutterGithub.email}")
print("Company: ${_flutterGithub.company}")
print("Location: ${_flutterGithub.location}")