From 2dbc8307e59d9139db193daccc35935e259ca186 Mon Sep 17 00:00:00 2001 From: Himanshu Maurya <40685364+refoxdev@users.noreply.github.com> Date: Thu, 13 Aug 2020 16:41:18 +0530 Subject: [PATCH 1/2] version and small bug fixed --- example/pubspec.lock | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index f099c66..384fa48 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -75,7 +75,7 @@ packages: path: ".." relative: true source: path - version: "0.1.0" + version: "0.1.1" flutter_test: dependency: "direct dev" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index d87c605..f79e64d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_insta description: Flutter package to get instagram user's details such as prifile picture url,number of followers,following,Bio,website and download reels video. -version: 0.1.0 +version: 0.1.1 homepage: https://github.com/viralvaghela/flutter_insta environment: From 4d21f83fccf2372c7f449816d34afe62a74bba6d Mon Sep 17 00:00:00 2001 From: Himanshu Maurya <40685364+refoxdev@users.noreply.github.com> Date: Thu, 13 Aug 2020 16:43:12 +0530 Subject: [PATCH 2/2] 20/30 points: code has no errors, warnings, lints, or formatting issues pub.dev score increased --- lib/flutter_insta.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/flutter_insta.dart b/lib/flutter_insta.dart index 8d435e8..cd9111a 100644 --- a/lib/flutter_insta.dart +++ b/lib/flutter_insta.dart @@ -14,9 +14,9 @@ class FlutterInsta { "/?__a=1"); var data = json.decode(downloadURL.body); var graphql = data['graphql']; - var shortcode_media = graphql['shortcode_media']; - var video_url = shortcode_media['video_url']; - return video_url; // return download link + var shortcodeMedia = graphql['shortcode_media']; + var videoUrl = shortcodeMedia['video_url']; + return videoUrl; // return download link } //get profile details