DEV Community

Cover image for Published my first flutter package
Viral Vaghela
Viral Vaghela

Posted on • Updated on

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.

Top comments (2)

Collapse
 
vlazdra profile image
Vladimir Zdravkovic

Great work on the plugin!

Collapse
 
viralvaghela profile image
Viral Vaghela

Thank you, sir.