Published my first flutter package

viralvaghela

Viral Vaghela

Posted on July 25, 2020

Published my first flutter package

Hello developers, Today I have published my first flutter package flutter_insta to pub.dev.

Using this plugin you can get details of the Instagram user.

How to Use ?

LINK : https://pub.dev/packages/flutter_insta

First add in dependency

dependencies:
  flutter_insta: ^0.0.6
Enter fullscreen mode Exit fullscreen mode

You can install packages from the command line:

$ flutter pub get
Enter fullscreen mode Exit fullscreen mode

Import it

import 'package:flutter_insta/flutter_insta.dart';
Enter fullscreen mode Exit fullscreen mode

Now you have to create object of FlutterInsta class

FlutterInsta flutterInsta = new FlutterInsta("coding_boy_");
Enter fullscreen mode Exit fullscreen mode

and inside constructor pass the username.

Now you can get all details like this

print("Username : ${flutterInsta.username}");
print("Followers : ${flutterInsta.followers}");
print("Folowing : ${flutterInsta.following}");
print("Bio : ${flutterInsta.bio}");
print("Website : ${flutterInsta.website}");
print("Profile Image : ${flutterInsta.imgurl}");
Enter fullscreen mode Exit fullscreen mode

Thanks for reading :) , if you found it useful then please like the plugin and give your valuable feedback.

💖 💪 🙅 🚩
viralvaghela
Viral Vaghela

Posted on July 25, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related