Skip to content

Commit eb4ed58

Browse files
authored
Merge pull request #26 from viralvaghela/dev
Fix #25
2 parents 5ad5f10 + ba9392a commit eb4ed58

File tree

109 files changed

+3847
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+3847
-36
lines changed

CHANGELOG.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,46 @@
1-
## [0.1.5]
1+
## [1.0.1]
2+
3+
* Updated API endpoint
4+
* Improved documentation, added note for API call limit reach error
5+
6+
## [0.1.5]
7+
28
* small bug fixed
39

4-
## [0.1.4]
10+
## [0.1.4]
11+
512
* getFeedImages added
613

7-
## [0.1.3]
14+
## [0.1.3]
15+
816
* Typo fixed
917
* method name changed in readme
1018

11-
## [0.1.2]
19+
## [0.1.2]
20+
1221
* Scores increased by 10 points and small space bug fixed
1322
* Reformated,small bug fixed
1423

15-
## [0.1.1]
24+
## [0.1.1]
1625

1726
* fixed FormatException: Unexpected character
1827
* Reformated,small bug fixed
1928

20-
## [0.1.0]
29+
## [0.1.0]
2130

2231
* Reels download added
2332
* Example UI updated
24-
25-
## [0.0.9]
33+
34+
## [0.0.9]
2635

2736
* readme updated
28-
29-
## [0.0.8]
37+
38+
## [0.0.8]
3039

3140
* Screenshot added
3241
* no need of android/ios
3342

34-
## [0.0.7]
43+
## [0.0.7]
3544

3645
* Example updated
3746
* Bug fixed

README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
Flutter package to get Instagram user details and download reels videos.
22

3-
## How to Use
3+
## How to Use
4+
5+
##### To use flutter_insta, first start by importing the package.
46

5-
To use flutter_insta, first start by importing the package.
67
```dart
78
import 'package:flutter_insta/flutter_insta.dart';
89
```
910

10-
### Get profile details
11-
11+
##### Get profile details
12+
1213
```dart
1314
FlutterInsta flutterInsta = new FlutterInsta();
1415
await flutterInsta.getProfileData("coding_boy_); //instagram username
1516
```
1617

17-
Print Details
18+
##### Print Details
19+
1820
```dart
1921
print("Username : ${flutterInsta.username}");
2022
print("Followers : ${flutterInsta.followers}");
@@ -25,13 +27,20 @@ print("Profile Image : ${flutterInsta.imgurl}");
2527
print("Feed images":${flutterInsta.feedImagesUrl}");
2628
```
2729

28-
### Download Reels video
29-
```dart
30+
##### Download Reels video
31+
32+
```dart
3033
String downloadLink = await flutterInsta.downloadReels("https://www.instagram.com/reel/CDlGkdZgB2y/"); //URL
3134
```
3235

33-
### Example
36+
##### Example
37+
3438
[Click here for more Example](https://pub.dev/packages/flutter_insta/example)
3539

36-
![](./images/main.png)
40+
![Image](./images/main.png)
41+
42+
##### Important Note
43+
44+
There is a limitation by Instagram, not sure how much but if you reach 'X' number of API call requests in an hour then you won't get response data and you have to wait for some time, So during development avoid widget rebuild as much as possible. :)
45+
3746
Created by [Viral Vaghela](https://www.linkedin.com/in/viralv/)

example/.metadata

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,45 @@
11
# This file tracks properties of this Flutter project.
22
# Used by Flutter tool to assess capabilities and perform upgrades etc.
33
#
4-
# This file should be version controlled and should not be manually edited.
4+
# This file should be version controlled.
55

66
version:
7-
revision: 599566177736e6b30af922a8f06e8a260acafc36
8-
channel: master
7+
revision: cd41fdd495f6944ecd3506c21e94c6567b073278
8+
channel: stable
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
17+
base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
18+
- platform: android
19+
create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
20+
base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
21+
- platform: ios
22+
create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
23+
base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
24+
- platform: linux
25+
create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
26+
base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
27+
- platform: macos
28+
create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
29+
base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
30+
- platform: web
31+
create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
32+
base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
33+
- platform: windows
34+
create_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
35+
base_revision: cd41fdd495f6944ecd3506c21e94c6567b073278
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

example/analysis_options.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at
17+
# https://dart-lang.github.io/linter/lints/index.html.
18+
#
19+
# Instead of disabling a lint rule for the entire project in the
20+
# section below, it can also be suppressed for a single line of code
21+
# or a specific dart file by using the `// ignore: name_of_lint` and
22+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23+
# producing the lint.
24+
rules:
25+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27+
28+
# Additional information about this file can be found at
29+
# https://dart.dev/guides/language/analysis-options
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package `in`.codingboy.example
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity() {
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="?android:colorBackground" />
5+
6+
<!-- You can insert your own image assets here -->
7+
<!-- <item>
8+
<bitmap
9+
android:gravity="center"
10+
android:src="@mipmap/launch_image" />
11+
</item> -->
12+
</layer-list>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
5+
<!-- Show a splash screen on the activity. Automatically removed when
6+
the Flutter engine draws its first frame -->
7+
<item name="android:windowBackground">@drawable/launch_background</item>
8+
</style>
9+
<!-- Theme applied to the Android Window as soon as the process has started.
10+
This theme determines the color of the Android Window while your
11+
Flutter UI initializes, as well as behind your Flutter UI while its
12+
running.
13+
14+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15+
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
16+
<item name="android:windowBackground">?android:colorBackground</item>
17+
</style>
18+
</resources>

example/ios/.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
**/dgph
2+
*.mode1v3
3+
*.mode2v3
4+
*.moved-aside
5+
*.pbxuser
6+
*.perspectivev3
7+
**/*sync/
8+
.sconsign.dblite
9+
.tags*
10+
**/.vagrant/
11+
**/DerivedData/
12+
Icon?
13+
**/Pods/
14+
**/.symlinks/
15+
profile
16+
xcuserdata
17+
**/.generated/
18+
Flutter/App.framework
19+
Flutter/Flutter.framework
20+
Flutter/Flutter.podspec
21+
Flutter/Generated.xcconfig
22+
Flutter/ephemeral/
23+
Flutter/app.flx
24+
Flutter/app.zip
25+
Flutter/flutter_assets/
26+
Flutter/flutter_export_environment.sh
27+
ServiceDefinitions.json
28+
Runner/GeneratedPluginRegistrant.*
29+
30+
# Exceptions to above rules.
31+
!default.mode1v3
32+
!default.mode2v3
33+
!default.pbxuser
34+
!default.perspectivev3
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>App</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>io.flutter.flutter.app</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>App</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>1.0</string>
23+
<key>MinimumOSVersion</key>
24+
<string>9.0</string>
25+
</dict>
26+
</plist>

example/ios/Flutter/Debug.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "Generated.xcconfig"

example/ios/Flutter/Release.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "Generated.xcconfig"

0 commit comments

Comments
 (0)