flutter_github 0.0.5 flutter_github: ^0.0.5 copied to clipboard
A new Flutter plugin to get details of Github account of any user such as name, bio, profile image and other details.
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}")
Example #