├── .github
└── ISSUE_TEMPLATE
│ └── bug_report.md
├── .gitignore
├── .metadata
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── techwithsam
│ │ │ │ └── flutter_webview
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── imgs
├── flutter_01.png
├── flutter_02.png
└── youtube_banner.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── check_internet.dart
├── homepage.dart
├── main.dart
└── webview
│ ├── example1.dart
│ ├── example2.dart
│ ├── example3.dart
│ ├── example4.dart
│ └── example5.dart
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
├── Icon-512.png
├── Icon-maskable-192.png
└── Icon-maskable-512.png
├── index.html
└── manifest.json
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. iOS]
28 | - Browser [e.g. chrome, safari]
29 | - Version [e.g. 22]
30 |
31 | **Smartphone (please complete the following information):**
32 | - Device: [e.g. iPhone6]
33 | - OS: [e.g. iOS8.1]
34 | - Browser [e.g. stock browser, safari]
35 | - Version [e.g. 22]
36 |
37 | **Additional context**
38 | Add any other context about the problem here.
39 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: b0a22998593fc605c723dee8ff4d9315c32cfe2c
8 | channel: beta
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, religion, or sexual identity
10 | and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | * Demonstrating empathy and kindness toward other people
21 | * Being respectful of differing opinions, viewpoints, and experiences
22 | * Giving and gracefully accepting constructive feedback
23 | * Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | * Focusing on what is best not just for us as individuals, but for the
26 | overall community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | * The use of sexualized language or imagery, and sexual attention or
31 | advances of any kind
32 | * Trolling, insulting or derogatory comments, and personal or political attacks
33 | * Public or private harassment
34 | * Publishing others' private information, such as a physical or email
35 | address, without their explicit permission
36 | * Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement at
63 | email.
64 | All complaints will be reviewed and investigated promptly and fairly.
65 |
66 | All community leaders are obligated to respect the privacy and security of the
67 | reporter of any incident.
68 |
69 | ## Enforcement Guidelines
70 |
71 | Community leaders will follow these Community Impact Guidelines in determining
72 | the consequences for any action they deem in violation of this Code of Conduct:
73 |
74 | ### 1. Correction
75 |
76 | **Community Impact**: Use of inappropriate language or other behavior deemed
77 | unprofessional or unwelcome in the community.
78 |
79 | **Consequence**: A private, written warning from community leaders, providing
80 | clarity around the nature of the violation and an explanation of why the
81 | behavior was inappropriate. A public apology may be requested.
82 |
83 | ### 2. Warning
84 |
85 | **Community Impact**: A violation through a single incident or series
86 | of actions.
87 |
88 | **Consequence**: A warning with consequences for continued behavior. No
89 | interaction with the people involved, including unsolicited interaction with
90 | those enforcing the Code of Conduct, for a specified period of time. This
91 | includes avoiding interactions in community spaces as well as external channels
92 | like social media. Violating these terms may lead to a temporary or
93 | permanent ban.
94 |
95 | ### 3. Temporary Ban
96 |
97 | **Community Impact**: A serious violation of community standards, including
98 | sustained inappropriate behavior.
99 |
100 | **Consequence**: A temporary ban from any sort of interaction or public
101 | communication with the community for a specified period of time. No public or
102 | private interaction with the people involved, including unsolicited interaction
103 | with those enforcing the Code of Conduct, is allowed during this period.
104 | Violating these terms may lead to a permanent ban.
105 |
106 | ### 4. Permanent Ban
107 |
108 | **Community Impact**: Demonstrating a pattern of violation of community
109 | standards, including sustained inappropriate behavior, harassment of an
110 | individual, or aggression toward or disparagement of classes of individuals.
111 |
112 | **Consequence**: A permanent ban from any sort of public interaction within
113 | the community.
114 |
115 | ## Attribution
116 |
117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118 | version 2.0, available at
119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120 |
121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct
122 | enforcement ladder](https://github.com/mozilla/diversity).
123 |
124 | [homepage]: https://www.contributor-covenant.org
125 |
126 | For answers to common questions about this code of conduct, see the FAQ at
127 | https://www.contributor-covenant.org/faq. Translations are available at
128 | https://www.contributor-covenant.org/translations.
129 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | New features
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 Samuel Adekunle
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flutter Webview | Tech With Sam
2 |
3 | [](https://youtube.com/techwithsam)
4 | [](https://twitter.com/techwithsam_)
5 | [](https://github.com/techwithsam/flutter_webview)
6 | [](https://github.com/techwithsam)
7 |
8 |
9 |
10 |
11 | Flutter Webview Tutorial - [Watch on youtube](https://youtube.com/playlist?list=PLMfrNHAjWCoB6roLO1soz6RMc5BdnU9pk)
12 |
13 | ---------------------------
14 |
15 | ### ✌ App Preview
16 |
17 | | App Screenshot | App Screenshot |
18 | | :----------------------------------: | :----------------------------------: |
19 | |
|
|
20 |
21 |
25 |
26 |
27 | A new Flutter project.
28 |
29 | ## Getting Started
30 |
31 | This project is a starting point for a Flutter application.
32 |
33 | A few resources to get you started if this is your first Flutter project:
34 |
35 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
36 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
37 |
38 | For help getting started with Flutter, view our
39 | [online documentation](https://flutter.dev/docs), which offers tutorials,
40 | samples, guidance on mobile development, and a full API reference.
41 | "# flutter_webview"
42 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
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
30 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 30
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.techwithsam.flutter_webview"
38 | minSdkVersion 21
39 | targetSdkVersion 30
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59 | }
60 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
18 |
19 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/techwithsam/flutter_webview/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.techwithsam.flutter_webview
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.5.20'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/imgs/flutter_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/imgs/flutter_01.png
--------------------------------------------------------------------------------
/imgs/flutter_02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/imgs/flutter_02.png
--------------------------------------------------------------------------------
/imgs/youtube_banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/imgs/youtube_banner.png
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | $FirebaseSDKVersion = '7.11.0'
3 | platform :ios, '12.1'
4 |
5 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
6 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
7 |
8 | project 'Runner', {
9 | 'Debug' => :debug,
10 | 'Profile' => :release,
11 | 'Release' => :release,
12 | }
13 |
14 | def flutter_root
15 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
16 | unless File.exist?(generated_xcode_build_settings_path)
17 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
18 | end
19 |
20 | File.foreach(generated_xcode_build_settings_path) do |line|
21 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
22 | return matches[1].strip if matches
23 | end
24 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
25 | end
26 |
27 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
28 |
29 | flutter_ios_podfile_setup
30 |
31 | target 'Runner' do
32 | use_frameworks!
33 | use_modular_headers!
34 |
35 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
36 | end
37 |
38 | post_install do |installer|
39 | installer.pods_project.targets.each do |target|
40 | flutter_additional_ios_build_settings(target)
41 | # config.build_settings['SWIFT_VERSION'] = '5.0' # required by simple_permission
42 | # config.build_settings['ENABLE_BITCODE'] = 'NO'
43 | end
44 | end
45 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - connectivity (0.0.1):
3 | - Flutter
4 | - Reachability
5 | - Flutter (1.0.0)
6 | - flutter_downloader (0.0.1):
7 | - Flutter
8 | - flutter_inappwebview (0.0.1):
9 | - Flutter
10 | - flutter_inappwebview/Core (= 0.0.1)
11 | - OrderedSet (~> 5.0)
12 | - flutter_inappwebview/Core (0.0.1):
13 | - Flutter
14 | - OrderedSet (~> 5.0)
15 | - integration_test (0.0.1):
16 | - Flutter
17 | - OrderedSet (5.0.0)
18 | - path_provider (0.0.1):
19 | - Flutter
20 | - "permission_handler (5.1.0+2)":
21 | - Flutter
22 | - Reachability (3.2)
23 | - url_launcher (0.0.1):
24 | - Flutter
25 | - webview_flutter (0.0.1):
26 | - Flutter
27 |
28 | DEPENDENCIES:
29 | - connectivity (from `.symlinks/plugins/connectivity/ios`)
30 | - Flutter (from `Flutter`)
31 | - flutter_downloader (from `.symlinks/plugins/flutter_downloader/ios`)
32 | - flutter_inappwebview (from `.symlinks/plugins/flutter_inappwebview/ios`)
33 | - integration_test (from `.symlinks/plugins/integration_test/ios`)
34 | - path_provider (from `.symlinks/plugins/path_provider/ios`)
35 | - permission_handler (from `.symlinks/plugins/permission_handler/ios`)
36 | - url_launcher (from `.symlinks/plugins/url_launcher/ios`)
37 | - webview_flutter (from `.symlinks/plugins/webview_flutter/ios`)
38 |
39 | SPEC REPOS:
40 | trunk:
41 | - OrderedSet
42 | - Reachability
43 |
44 | EXTERNAL SOURCES:
45 | connectivity:
46 | :path: ".symlinks/plugins/connectivity/ios"
47 | Flutter:
48 | :path: Flutter
49 | flutter_downloader:
50 | :path: ".symlinks/plugins/flutter_downloader/ios"
51 | flutter_inappwebview:
52 | :path: ".symlinks/plugins/flutter_inappwebview/ios"
53 | integration_test:
54 | :path: ".symlinks/plugins/integration_test/ios"
55 | path_provider:
56 | :path: ".symlinks/plugins/path_provider/ios"
57 | permission_handler:
58 | :path: ".symlinks/plugins/permission_handler/ios"
59 | url_launcher:
60 | :path: ".symlinks/plugins/url_launcher/ios"
61 | webview_flutter:
62 | :path: ".symlinks/plugins/webview_flutter/ios"
63 |
64 | SPEC CHECKSUMS:
65 | connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467
66 | Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
67 | flutter_downloader: 058b9c41564a90500f67f3e432e3524613a7fd83
68 | flutter_inappwebview: bfd58618f49dc62f2676de690fc6dcda1d6c3721
69 | integration_test: 6eb66a19f7104200dcfdd62bc0077e1b09686e4f
70 | OrderedSet: aaeb196f7fef5a9edf55d89760da9176ad40b93c
71 | path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
72 | permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
73 | Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
74 | url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef
75 | webview_flutter: 9f491a9b5a66f2573946a389b2677987b0ff8c0b
76 |
77 | PODFILE CHECKSUM: c5406677ca913e84b27291cdda0fc4124b8cf008
78 |
79 | COCOAPODS: 1.10.1
80 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | F6921CECAF1BF48EE9BD14B6 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AFEE1F1082A4BA480FC97FD5 /* Pods_Runner.framework */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
35 | 29DE6DF89E206D8A5EDBEE89 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
36 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
37 | 55069C2000FE2728A3915566 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
38 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
39 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
40 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | AFEE1F1082A4BA480FC97FD5 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
49 | D5836A6EC6D6E1F9CCCAB449 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | F6921CECAF1BF48EE9BD14B6 /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 6313EB2990734F0993AFFE6B /* Frameworks */ = {
65 | isa = PBXGroup;
66 | children = (
67 | AFEE1F1082A4BA480FC97FD5 /* Pods_Runner.framework */,
68 | );
69 | name = Frameworks;
70 | sourceTree = "";
71 | };
72 | 9740EEB11CF90186004384FC /* Flutter */ = {
73 | isa = PBXGroup;
74 | children = (
75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
76 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
77 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
78 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
79 | );
80 | name = Flutter;
81 | sourceTree = "";
82 | };
83 | 97C146E51CF9000F007C117D = {
84 | isa = PBXGroup;
85 | children = (
86 | 9740EEB11CF90186004384FC /* Flutter */,
87 | 97C146F01CF9000F007C117D /* Runner */,
88 | 97C146EF1CF9000F007C117D /* Products */,
89 | B995F942C40298F45E75C4EA /* Pods */,
90 | 6313EB2990734F0993AFFE6B /* Frameworks */,
91 | );
92 | sourceTree = "";
93 | };
94 | 97C146EF1CF9000F007C117D /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 97C146EE1CF9000F007C117D /* Runner.app */,
98 | );
99 | name = Products;
100 | sourceTree = "";
101 | };
102 | 97C146F01CF9000F007C117D /* Runner */ = {
103 | isa = PBXGroup;
104 | children = (
105 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
106 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
107 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
108 | 97C147021CF9000F007C117D /* Info.plist */,
109 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
110 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
111 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
112 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
113 | );
114 | path = Runner;
115 | sourceTree = "";
116 | };
117 | B995F942C40298F45E75C4EA /* Pods */ = {
118 | isa = PBXGroup;
119 | children = (
120 | 29DE6DF89E206D8A5EDBEE89 /* Pods-Runner.debug.xcconfig */,
121 | D5836A6EC6D6E1F9CCCAB449 /* Pods-Runner.release.xcconfig */,
122 | 55069C2000FE2728A3915566 /* Pods-Runner.profile.xcconfig */,
123 | );
124 | name = Pods;
125 | path = Pods;
126 | sourceTree = "";
127 | };
128 | /* End PBXGroup section */
129 |
130 | /* Begin PBXNativeTarget section */
131 | 97C146ED1CF9000F007C117D /* Runner */ = {
132 | isa = PBXNativeTarget;
133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
134 | buildPhases = (
135 | EB0E4139DD24BB835BCC7380 /* [CP] Check Pods Manifest.lock */,
136 | 9740EEB61CF901F6004384FC /* Run Script */,
137 | 97C146EA1CF9000F007C117D /* Sources */,
138 | 97C146EB1CF9000F007C117D /* Frameworks */,
139 | 97C146EC1CF9000F007C117D /* Resources */,
140 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
142 | F22B34D27EE40046C9863357 /* [CP] Embed Pods Frameworks */,
143 | );
144 | buildRules = (
145 | );
146 | dependencies = (
147 | );
148 | name = Runner;
149 | productName = Runner;
150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
151 | productType = "com.apple.product-type.application";
152 | };
153 | /* End PBXNativeTarget section */
154 |
155 | /* Begin PBXProject section */
156 | 97C146E61CF9000F007C117D /* Project object */ = {
157 | isa = PBXProject;
158 | attributes = {
159 | LastUpgradeCheck = 1020;
160 | ORGANIZATIONNAME = "";
161 | TargetAttributes = {
162 | 97C146ED1CF9000F007C117D = {
163 | CreatedOnToolsVersion = 7.3.1;
164 | LastSwiftMigration = 1100;
165 | };
166 | };
167 | };
168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
169 | compatibilityVersion = "Xcode 9.3";
170 | developmentRegion = en;
171 | hasScannedForEncodings = 0;
172 | knownRegions = (
173 | en,
174 | Base,
175 | );
176 | mainGroup = 97C146E51CF9000F007C117D;
177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
178 | projectDirPath = "";
179 | projectRoot = "";
180 | targets = (
181 | 97C146ED1CF9000F007C117D /* Runner */,
182 | );
183 | };
184 | /* End PBXProject section */
185 |
186 | /* Begin PBXResourcesBuildPhase section */
187 | 97C146EC1CF9000F007C117D /* Resources */ = {
188 | isa = PBXResourcesBuildPhase;
189 | buildActionMask = 2147483647;
190 | files = (
191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | };
198 | /* End PBXResourcesBuildPhase section */
199 |
200 | /* Begin PBXShellScriptBuildPhase section */
201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
202 | isa = PBXShellScriptBuildPhase;
203 | buildActionMask = 2147483647;
204 | files = (
205 | );
206 | inputPaths = (
207 | );
208 | name = "Thin Binary";
209 | outputPaths = (
210 | );
211 | runOnlyForDeploymentPostprocessing = 0;
212 | shellPath = /bin/sh;
213 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
214 | };
215 | 9740EEB61CF901F6004384FC /* Run Script */ = {
216 | isa = PBXShellScriptBuildPhase;
217 | buildActionMask = 2147483647;
218 | files = (
219 | );
220 | inputPaths = (
221 | );
222 | name = "Run Script";
223 | outputPaths = (
224 | );
225 | runOnlyForDeploymentPostprocessing = 0;
226 | shellPath = /bin/sh;
227 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
228 | };
229 | EB0E4139DD24BB835BCC7380 /* [CP] Check Pods Manifest.lock */ = {
230 | isa = PBXShellScriptBuildPhase;
231 | buildActionMask = 2147483647;
232 | files = (
233 | );
234 | inputFileListPaths = (
235 | );
236 | inputPaths = (
237 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
238 | "${PODS_ROOT}/Manifest.lock",
239 | );
240 | name = "[CP] Check Pods Manifest.lock";
241 | outputFileListPaths = (
242 | );
243 | outputPaths = (
244 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
245 | );
246 | runOnlyForDeploymentPostprocessing = 0;
247 | shellPath = /bin/sh;
248 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
249 | showEnvVarsInLog = 0;
250 | };
251 | F22B34D27EE40046C9863357 /* [CP] Embed Pods Frameworks */ = {
252 | isa = PBXShellScriptBuildPhase;
253 | buildActionMask = 2147483647;
254 | files = (
255 | );
256 | inputFileListPaths = (
257 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
258 | );
259 | name = "[CP] Embed Pods Frameworks";
260 | outputFileListPaths = (
261 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
262 | );
263 | runOnlyForDeploymentPostprocessing = 0;
264 | shellPath = /bin/sh;
265 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
266 | showEnvVarsInLog = 0;
267 | };
268 | /* End PBXShellScriptBuildPhase section */
269 |
270 | /* Begin PBXSourcesBuildPhase section */
271 | 97C146EA1CF9000F007C117D /* Sources */ = {
272 | isa = PBXSourcesBuildPhase;
273 | buildActionMask = 2147483647;
274 | files = (
275 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
276 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
277 | );
278 | runOnlyForDeploymentPostprocessing = 0;
279 | };
280 | /* End PBXSourcesBuildPhase section */
281 |
282 | /* Begin PBXVariantGroup section */
283 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
284 | isa = PBXVariantGroup;
285 | children = (
286 | 97C146FB1CF9000F007C117D /* Base */,
287 | );
288 | name = Main.storyboard;
289 | sourceTree = "";
290 | };
291 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
292 | isa = PBXVariantGroup;
293 | children = (
294 | 97C147001CF9000F007C117D /* Base */,
295 | );
296 | name = LaunchScreen.storyboard;
297 | sourceTree = "";
298 | };
299 | /* End PBXVariantGroup section */
300 |
301 | /* Begin XCBuildConfiguration section */
302 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
333 | ENABLE_NS_ASSERTIONS = NO;
334 | ENABLE_STRICT_OBJC_MSGSEND = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_NO_COMMON_BLOCKS = YES;
337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
339 | GCC_WARN_UNDECLARED_SELECTOR = YES;
340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
341 | GCC_WARN_UNUSED_FUNCTION = YES;
342 | GCC_WARN_UNUSED_VARIABLE = YES;
343 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
344 | MTL_ENABLE_DEBUG_INFO = NO;
345 | SDKROOT = iphoneos;
346 | SUPPORTED_PLATFORMS = iphoneos;
347 | TARGETED_DEVICE_FAMILY = "1,2";
348 | VALIDATE_PRODUCT = YES;
349 | };
350 | name = Profile;
351 | };
352 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
353 | isa = XCBuildConfiguration;
354 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
355 | buildSettings = {
356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
357 | CLANG_ENABLE_MODULES = YES;
358 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
359 | ENABLE_BITCODE = NO;
360 | INFOPLIST_FILE = Runner/Info.plist;
361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
362 | PRODUCT_BUNDLE_IDENTIFIER = com.techwithsam.flutterWebview;
363 | PRODUCT_NAME = "$(TARGET_NAME)";
364 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
365 | SWIFT_VERSION = 5.0;
366 | VERSIONING_SYSTEM = "apple-generic";
367 | };
368 | name = Profile;
369 | };
370 | 97C147031CF9000F007C117D /* Debug */ = {
371 | isa = XCBuildConfiguration;
372 | buildSettings = {
373 | ALWAYS_SEARCH_USER_PATHS = NO;
374 | CLANG_ANALYZER_NONNULL = YES;
375 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
376 | CLANG_CXX_LIBRARY = "libc++";
377 | CLANG_ENABLE_MODULES = YES;
378 | CLANG_ENABLE_OBJC_ARC = YES;
379 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
380 | CLANG_WARN_BOOL_CONVERSION = YES;
381 | CLANG_WARN_COMMA = YES;
382 | CLANG_WARN_CONSTANT_CONVERSION = YES;
383 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
385 | CLANG_WARN_EMPTY_BODY = YES;
386 | CLANG_WARN_ENUM_CONVERSION = YES;
387 | CLANG_WARN_INFINITE_RECURSION = YES;
388 | CLANG_WARN_INT_CONVERSION = YES;
389 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
390 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
394 | CLANG_WARN_STRICT_PROTOTYPES = YES;
395 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
396 | CLANG_WARN_UNREACHABLE_CODE = YES;
397 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
399 | COPY_PHASE_STRIP = NO;
400 | DEBUG_INFORMATION_FORMAT = dwarf;
401 | ENABLE_STRICT_OBJC_MSGSEND = YES;
402 | ENABLE_TESTABILITY = YES;
403 | GCC_C_LANGUAGE_STANDARD = gnu99;
404 | GCC_DYNAMIC_NO_PIC = NO;
405 | GCC_NO_COMMON_BLOCKS = YES;
406 | GCC_OPTIMIZATION_LEVEL = 0;
407 | GCC_PREPROCESSOR_DEFINITIONS = (
408 | "DEBUG=1",
409 | "$(inherited)",
410 | );
411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
413 | GCC_WARN_UNDECLARED_SELECTOR = YES;
414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
415 | GCC_WARN_UNUSED_FUNCTION = YES;
416 | GCC_WARN_UNUSED_VARIABLE = YES;
417 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
418 | MTL_ENABLE_DEBUG_INFO = YES;
419 | ONLY_ACTIVE_ARCH = YES;
420 | SDKROOT = iphoneos;
421 | TARGETED_DEVICE_FAMILY = "1,2";
422 | };
423 | name = Debug;
424 | };
425 | 97C147041CF9000F007C117D /* Release */ = {
426 | isa = XCBuildConfiguration;
427 | buildSettings = {
428 | ALWAYS_SEARCH_USER_PATHS = NO;
429 | CLANG_ANALYZER_NONNULL = YES;
430 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
431 | CLANG_CXX_LIBRARY = "libc++";
432 | CLANG_ENABLE_MODULES = YES;
433 | CLANG_ENABLE_OBJC_ARC = YES;
434 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
435 | CLANG_WARN_BOOL_CONVERSION = YES;
436 | CLANG_WARN_COMMA = YES;
437 | CLANG_WARN_CONSTANT_CONVERSION = YES;
438 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
439 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
440 | CLANG_WARN_EMPTY_BODY = YES;
441 | CLANG_WARN_ENUM_CONVERSION = YES;
442 | CLANG_WARN_INFINITE_RECURSION = YES;
443 | CLANG_WARN_INT_CONVERSION = YES;
444 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
445 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
446 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
447 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
448 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
449 | CLANG_WARN_STRICT_PROTOTYPES = YES;
450 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
451 | CLANG_WARN_UNREACHABLE_CODE = YES;
452 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
453 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
454 | COPY_PHASE_STRIP = NO;
455 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
456 | ENABLE_NS_ASSERTIONS = NO;
457 | ENABLE_STRICT_OBJC_MSGSEND = YES;
458 | GCC_C_LANGUAGE_STANDARD = gnu99;
459 | GCC_NO_COMMON_BLOCKS = YES;
460 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
461 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
462 | GCC_WARN_UNDECLARED_SELECTOR = YES;
463 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
464 | GCC_WARN_UNUSED_FUNCTION = YES;
465 | GCC_WARN_UNUSED_VARIABLE = YES;
466 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
467 | MTL_ENABLE_DEBUG_INFO = NO;
468 | SDKROOT = iphoneos;
469 | SUPPORTED_PLATFORMS = iphoneos;
470 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
471 | TARGETED_DEVICE_FAMILY = "1,2";
472 | VALIDATE_PRODUCT = YES;
473 | };
474 | name = Release;
475 | };
476 | 97C147061CF9000F007C117D /* Debug */ = {
477 | isa = XCBuildConfiguration;
478 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
479 | buildSettings = {
480 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
481 | CLANG_ENABLE_MODULES = YES;
482 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
483 | ENABLE_BITCODE = NO;
484 | INFOPLIST_FILE = Runner/Info.plist;
485 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
486 | PRODUCT_BUNDLE_IDENTIFIER = com.techwithsam.flutterWebview;
487 | PRODUCT_NAME = "$(TARGET_NAME)";
488 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
489 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
490 | SWIFT_VERSION = 5.0;
491 | VERSIONING_SYSTEM = "apple-generic";
492 | };
493 | name = Debug;
494 | };
495 | 97C147071CF9000F007C117D /* Release */ = {
496 | isa = XCBuildConfiguration;
497 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
498 | buildSettings = {
499 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
500 | CLANG_ENABLE_MODULES = YES;
501 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
502 | ENABLE_BITCODE = NO;
503 | INFOPLIST_FILE = Runner/Info.plist;
504 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
505 | PRODUCT_BUNDLE_IDENTIFIER = com.techwithsam.flutterWebview;
506 | PRODUCT_NAME = "$(TARGET_NAME)";
507 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
508 | SWIFT_VERSION = 5.0;
509 | VERSIONING_SYSTEM = "apple-generic";
510 | };
511 | name = Release;
512 | };
513 | /* End XCBuildConfiguration section */
514 |
515 | /* Begin XCConfigurationList section */
516 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
517 | isa = XCConfigurationList;
518 | buildConfigurations = (
519 | 97C147031CF9000F007C117D /* Debug */,
520 | 97C147041CF9000F007C117D /* Release */,
521 | 249021D3217E4FDB00AE95B9 /* Profile */,
522 | );
523 | defaultConfigurationIsVisible = 0;
524 | defaultConfigurationName = Release;
525 | };
526 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
527 | isa = XCConfigurationList;
528 | buildConfigurations = (
529 | 97C147061CF9000F007C117D /* Debug */,
530 | 97C147071CF9000F007C117D /* Release */,
531 | 249021D4217E4FDB00AE95B9 /* Profile */,
532 | );
533 | defaultConfigurationIsVisible = 0;
534 | defaultConfigurationName = Release;
535 | };
536 | /* End XCConfigurationList section */
537 | };
538 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
539 | }
540 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | full_webview
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | LSApplicationQueriesSchemes
26 |
27 | https
28 | http
29 |
30 | NSAppTransportSecurity
31 |
32 | NSAllowsArbitraryLoads
33 |
34 | NSAppTransportSecurity
35 |
36 | NSExceptionDomains
37 |
38 | www.github.com
39 |
40 | NSIncludesSubdomains
41 |
42 | NSTemporaryExceptionAllowsInsecureHTTPLoads
43 |
44 | NSTemporaryExceptionMinimumTLSVersion
45 | TLSv1.1
46 |
47 |
48 |
49 | UILaunchStoryboardName
50 | LaunchScreen
51 | UIMainStoryboardFile
52 | Main
53 | UISupportedInterfaceOrientations
54 |
55 | UIInterfaceOrientationPortrait
56 | UIInterfaceOrientationLandscapeLeft
57 | UIInterfaceOrientationLandscapeRight
58 |
59 | UISupportedInterfaceOrientations~ipad
60 |
61 | UIInterfaceOrientationPortrait
62 | UIInterfaceOrientationPortraitUpsideDown
63 | UIInterfaceOrientationLandscapeLeft
64 | UIInterfaceOrientationLandscapeRight
65 |
66 | UIViewControllerBasedStatusBarAppearance
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/check_internet.dart:
--------------------------------------------------------------------------------
1 | import 'package:connectivity_plus/connectivity_plus.dart';
2 |
3 | class CheckInternet {
4 | Future checkInternetConnection() async {
5 | var result = await Connectivity().checkConnectivity();
6 | if (result == ConnectivityResult.none) {
7 | return 0;
8 | } else if (result == ConnectivityResult.mobile) {
9 | return 1;
10 | } else if (result == ConnectivityResult.wifi) {
11 | return 1;
12 | } else {
13 | return 0;
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/lib/homepage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/gestures.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_inappwebview/flutter_inappwebview.dart';
4 | import 'package:url_launcher/url_launcher.dart';
5 | import 'package:full_webview/check_internet.dart';
6 | import 'webview/example2.dart';
7 | import 'webview/example3.dart';
8 | import 'webview/example4.dart';
9 | import 'webview/example5.dart';
10 |
11 | class HomePage extends StatefulWidget {
12 | HomePage({Key? key}) : super(key: key);
13 |
14 | @override
15 | _HomePageState createState() => _HomePageState();
16 | }
17 |
18 | class _HomePageState extends State {
19 | var _scaffoldKey = GlobalKey();
20 | final WebExampleThree inAppBrowser = WebExampleThree();
21 | final WebExampleFour inAppChrome = WebExampleFour();
22 | String _url = "https://github.com/techwithsam";
23 | int checkInt = 0;
24 |
25 | var options = InAppBrowserClassOptions(
26 | crossPlatform: InAppBrowserOptions(
27 | hideUrlBar: false, toolbarTopBackgroundColor: Colors.blue),
28 | inAppWebViewGroupOptions: InAppWebViewGroupOptions(
29 | crossPlatform: InAppWebViewOptions(
30 | javaScriptEnabled: true,
31 | cacheEnabled: true,
32 | transparentBackground: true,
33 | ),
34 | ),
35 | );
36 |
37 | @override
38 | void initState() {
39 | super.initState();
40 | Future a = CheckInternet().checkInternetConnection();
41 | a.then((value) {
42 | if (value == 0) {
43 | setState(() {
44 | checkInt = 0;
45 | });
46 | print('No internet connect');
47 | ScaffoldMessenger.of(context).showSnackBar(SnackBar(
48 | content: Text('No internet connection!'),
49 | ));
50 | } else {
51 | setState(() {
52 | checkInt = 1;
53 | });
54 | print('Internet connected');
55 | ScaffoldMessenger.of(context).showSnackBar(SnackBar(
56 | content: Text('Connected to the internet'),
57 | ));
58 | }
59 | });
60 | inAppChrome.addMenuItem(ChromeSafariBrowserMenuItem(
61 | id: 1,
62 | label: 'Example 1',
63 | action: (title, url) {
64 | print(title);
65 | print(url);
66 | },
67 | ));
68 | inAppChrome.addMenuItem(ChromeSafariBrowserMenuItem(
69 | id: 2,
70 | label: 'Example 2',
71 | action: (title, url) {
72 | print(title);
73 | print(url);
74 | },
75 | ));
76 | }
77 |
78 | @override
79 | Widget build(BuildContext context) {
80 | return Scaffold(
81 | key: _scaffoldKey,
82 | appBar: AppBar(
83 | title: Text('Flutter Webview Tutorial'),
84 | centerTitle: true,
85 | elevation: 0,
86 | ),
87 | bottomNavigationBar: Padding(
88 | padding: EdgeInsets.fromLTRB(3, 6, 3, 6),
89 | child: RichText(
90 | text: TextSpan(
91 | text: 'Connect with me Online - ',
92 | style: TextStyle(color: Colors.black),
93 | recognizer: TapGestureRecognizer()..onTap = () => _launchURL(),
94 | children: [
95 | TextSpan(
96 | text: '@techwithsam',
97 | style:
98 | TextStyle(color: Colors.blue, fontWeight: FontWeight.w600),
99 | recognizer: TapGestureRecognizer()..onTap = () => _launchURL(),
100 | )
101 | ],
102 | ),
103 | textAlign: TextAlign.center,
104 | ),
105 | ),
106 | body: Center(
107 | child: SingleChildScrollView(
108 | child: Column(
109 | children: [
110 | SizedBox(height: 12),
111 | MaterialButton(
112 | onPressed: () {
113 | Navigator.push(
114 | context,
115 | MaterialPageRoute(
116 | builder: (_) => WebExampleTwo(url: _url),
117 | ));
118 | },
119 | child: Text(
120 | 'Example 2',
121 | style: TextStyle(color: Colors.white),
122 | ),
123 | color: Colors.green,
124 | padding: EdgeInsets.symmetric(horizontal: 70, vertical: 12),
125 | ),
126 | SizedBox(height: 12),
127 | MaterialButton(
128 | onPressed: () {
129 | inAppBrowser.openUrlRequest(
130 | urlRequest: URLRequest(url: Uri.parse(_url)),
131 | options: options);
132 | },
133 | child: Text(
134 | 'Example 3',
135 | style: TextStyle(color: Colors.white),
136 | ),
137 | color: Colors.purple[700],
138 | padding: EdgeInsets.symmetric(horizontal: 70, vertical: 12),
139 | ),
140 | SizedBox(height: 12),
141 | MaterialButton(
142 | onPressed: () {
143 | checkInt == 1
144 | ? inAppChrome.open(
145 | url: Uri.parse(_url),
146 | options: ChromeSafariBrowserClassOptions(
147 | android: AndroidChromeCustomTabsOptions(
148 | addDefaultShareMenuItem: false),
149 | ios: IOSSafariOptions(barCollapsingEnabled: true),
150 | ),
151 | )
152 | : ScaffoldMessenger.of(context).showSnackBar(
153 | SnackBar(
154 | content: Text('No internet connection!'),
155 | ),
156 | );
157 | },
158 | child: Text(
159 | 'Example 4',
160 | style: TextStyle(color: Colors.white),
161 | ),
162 | color: Colors.pink[900],
163 | padding: EdgeInsets.symmetric(horizontal: 70, vertical: 12),
164 | ),
165 | SizedBox(height: 12),
166 | MaterialButton(
167 | onPressed: () {
168 | Navigator.of(context).push(MaterialPageRoute(
169 | builder: (context) => WebExampleFive(url: _url)));
170 | },
171 | child: Text(
172 | 'Example 5',
173 | style: TextStyle(color: Colors.white),
174 | ),
175 | color: Colors.yellow[900],
176 | padding: EdgeInsets.symmetric(horizontal: 70, vertical: 12),
177 | ),
178 | ],
179 | ),
180 | ),
181 | ),
182 | );
183 | }
184 |
185 | void _launchURL() async => await canLaunch(_url)
186 | ? await launch(_url)
187 | : throw 'Could not launch $_url';
188 | }
189 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | // Developer: Samuel Adekunle
2 | // YouTube Tutorial: https://youtube.com/playlist?list=PLMfrNHAjWCoB6roLO1soz6RMc5BdnU9pk
3 | // Join the community on Discord: https://discord.com/invite/NytgTkyw3R
4 | // Let's connect on Twitter: https://twitter.com/techwithsam_
5 |
6 | import 'dart:io';
7 | import 'package:flutter/material.dart';
8 | import 'package:flutter_downloader/flutter_downloader.dart';
9 | import 'package:flutter_inappwebview/flutter_inappwebview.dart';
10 | import 'package:permission_handler/permission_handler.dart';
11 | import 'homepage.dart';
12 |
13 | Future main() async {
14 | WidgetsFlutterBinding.ensureInitialized();
15 |
16 | if (Platform.isAndroid) {
17 | await AndroidInAppWebViewController.setWebContentsDebuggingEnabled(true);
18 | }
19 | await FlutterDownloader.initialize(debug: true);
20 | // set true to enable printing logs to console
21 | await Permission.storage.request();
22 | await Permission.mediaLibrary.request();
23 | // ask for storage permission on app create
24 |
25 | runApp(MyApp());
26 | }
27 |
28 | class MyApp extends StatelessWidget {
29 | @override
30 | Widget build(BuildContext context) {
31 | return MaterialApp(
32 | title: 'TechWithSam - Flutter Webview Tutorial',
33 | theme: ThemeData(
34 | primarySwatch: Colors.blue, visualDensity: VisualDensity.standard),
35 | debugShowCheckedModeBanner: false,
36 | home: HomePage(),
37 | );
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/lib/webview/example1.dart:
--------------------------------------------------------------------------------
1 | // import 'package:flutter/material.dart';
2 | // import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
3 |
4 | // class WebExampleOne extends StatefulWidget {
5 | // WebExampleOne({Key? key}) : super(key: key);
6 |
7 | // @override
8 | // _WebExampleOneState createState() => _WebExampleOneState();
9 | // }
10 |
11 | // class _WebExampleOneState extends State {
12 | // final _flutterwebview = FlutterWebviewPlugin();
13 | // @override
14 | // Widget build(BuildContext context) {
15 | // return WebviewScaffold(
16 | // url: 'https://obounce.net',
17 | // appBar: AppBar(
18 | // title: Text("O'Bounce Technologies"),
19 | // centerTitle: true,
20 | // elevation: 0,
21 | // ),
22 | // withZoom: true,
23 | // withLocalStorage: true,
24 | // scrollBar: true,
25 | // withJavascript: true,
26 | // initialChild: Center(child: Text('Loading...')),
27 | // bottomNavigationBar: Padding(
28 | // padding: EdgeInsets.all(12),
29 | // child: Text('This is the bottomNavigationBar on a webview page.'),
30 | // ),
31 | // persistentFooterButtons: [
32 | // CircleAvatar(
33 | // backgroundColor: Colors.purple,
34 | // child: Text('btn1'),
35 | // ),
36 | // CircleAvatar(
37 | // backgroundColor: Colors.orange,
38 | // child: Text('btn2'),
39 | // ),
40 | // CircleAvatar(
41 | // backgroundColor: Colors.red,
42 | // child: Text('btn3'),
43 | // ),
44 | // CircleAvatar(
45 | // backgroundColor: Colors.grey[700],
46 | // child: Text('btn4'),
47 | // ),
48 | // ],
49 | // );
50 | // }
51 |
52 | // @override
53 | // void dispose() {
54 | // _flutterwebview.dispose();
55 | // super.dispose();
56 | // }
57 | // }
58 |
--------------------------------------------------------------------------------
/lib/webview/example2.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_downloader/flutter_downloader.dart';
4 | import 'package:path_provider/path_provider.dart';
5 | import 'package:flutter_inappwebview/flutter_inappwebview.dart';
6 |
7 | class WebExampleTwo extends StatefulWidget {
8 | final String url;
9 | WebExampleTwo({Key? key, required this.url}) : super(key: key);
10 |
11 | @override
12 | _WebExampleTwoState createState() => _WebExampleTwoState();
13 | }
14 |
15 | class _WebExampleTwoState extends State {
16 | final GlobalKey webViewKey = GlobalKey();
17 | InAppWebViewController? _webViewController;
18 | late PullToRefreshController pullToRefreshController;
19 | final urlController = TextEditingController();
20 | double progress = 0;
21 | String url = '';
22 |
23 | // Future? _externalDocumentsDirectory =
24 | // getExternalStorageDirectory();
25 |
26 | InAppWebViewGroupOptions options = InAppWebViewGroupOptions(
27 | crossPlatform: InAppWebViewOptions(
28 | javaScriptEnabled: true,
29 | useShouldOverrideUrlLoading: true,
30 | useOnDownloadStart: true,
31 | allowFileAccessFromFileURLs: true,
32 | mediaPlaybackRequiresUserGesture: false,
33 | ),
34 | android: AndroidInAppWebViewOptions(
35 | initialScale: 100,
36 | allowFileAccess: true,
37 | useShouldInterceptRequest: true,
38 | useHybridComposition: true,
39 | ),
40 | ios: IOSInAppWebViewOptions(
41 | allowsInlineMediaPlayback: true,
42 | ),
43 | );
44 |
45 | @override
46 | void initState() {
47 | super.initState();
48 | pullToRefreshController = PullToRefreshController(
49 | options: PullToRefreshOptions(color: Colors.blue),
50 | onRefresh: () async {
51 | if (Platform.isAndroid) {
52 | _webViewController?.reload();
53 | } else if (Platform.isIOS) {
54 | _webViewController?.loadUrl(
55 | urlRequest: URLRequest(url: await _webViewController?.getUrl()));
56 | }
57 | },
58 | );
59 | }
60 |
61 | @override
62 | void dispose() {
63 | super.dispose();
64 | }
65 |
66 | @override
67 | Widget build(BuildContext context) {
68 | return Scaffold(
69 | // appBar: AppBar(
70 | // title: Text("Tect With Sam"),
71 | // centerTitle: true,
72 | // elevation: 0,
73 | // actions: [
74 | // IconButton(
75 | // onPressed: () => _webViewController?.reload(),
76 | // icon: Icon(Icons.refresh),
77 | // ),
78 | // ],
79 | // ),
80 | body: SafeArea(
81 | child: Column(
82 | children: [
83 | Expanded(
84 | child: Stack(
85 | children: [
86 | InAppWebView(
87 | key: webViewKey,
88 | initialUrlRequest: URLRequest(
89 | url: Uri.parse('https://resizeimage.net/'),
90 | headers: {},
91 | ), // "https://unsplash.com/photos/odxB5oIG_iA"
92 | initialOptions: options,
93 | pullToRefreshController: pullToRefreshController,
94 | onDownloadStart: (controller, url) async {
95 | // downloading a file in a webview application
96 | print("onDownloadStart $url");
97 | await FlutterDownloader.enqueue(
98 | url: url.toString(), // url to download
99 | savedDir: (await getExternalStorageDirectory())!.path,
100 | // the directory to store the download
101 | fileName: 'downloads',
102 | headers: {},
103 | showNotification: true,
104 | openFileFromNotification: true,
105 | );
106 | },
107 | onWebViewCreated: (controller) {
108 | _webViewController = controller;
109 | },
110 | onLoadStart: (controller, url) {
111 | setState(() {
112 | this.url = url.toString();
113 | urlController.text = this.url;
114 | });
115 | },
116 | androidOnPermissionRequest:
117 | (controller, origin, resources) async {
118 | return PermissionRequestResponse(
119 | resources: resources,
120 | action: PermissionRequestResponseAction.GRANT);
121 | },
122 | onLoadStop: (controller, url) async {
123 | pullToRefreshController.endRefreshing();
124 | setState(() {
125 | this.url = url.toString();
126 | urlController.text = this.url;
127 | });
128 | },
129 | onLoadError: (controller, url, code, message) {
130 | pullToRefreshController.endRefreshing();
131 | },
132 | onProgressChanged: (controller, progress) {
133 | if (progress == 100) {
134 | pullToRefreshController.endRefreshing();
135 | }
136 | setState(() {
137 | this.progress = progress / 100;
138 | urlController.text = this.url;
139 | });
140 | },
141 | onUpdateVisitedHistory: (controller, url, androidIsReload) {
142 | setState(() {
143 | this.url = url.toString();
144 | urlController.text = this.url;
145 | });
146 | },
147 | onConsoleMessage: (controller, consoleMessage) {
148 | print(consoleMessage);
149 | },
150 | ),
151 | progress < 1.0
152 | ? LinearProgressIndicator(
153 | value: progress,
154 | backgroundColor: Colors.white,
155 | valueColor:
156 | AlwaysStoppedAnimation(Colors.green[800]!),
157 | )
158 | : Center(),
159 | ],
160 | ),
161 | ),
162 | ButtonBar(
163 | buttonAlignedDropdown: true,
164 | buttonPadding: EdgeInsets.all(2),
165 | alignment: MainAxisAlignment.spaceAround,
166 | children: [
167 | ElevatedButton(
168 | child: Icon(Icons.arrow_back),
169 | onPressed: () {
170 | _webViewController?.goBack();
171 | },
172 | ),
173 | ElevatedButton(
174 | child: Icon(Icons.arrow_forward),
175 | onPressed: () {
176 | _webViewController?.goForward();
177 | },
178 | ),
179 | ElevatedButton(
180 | child: Icon(Icons.refresh),
181 | onPressed: () {
182 | _webViewController?.reload();
183 | },
184 | ),
185 | ],
186 | ),
187 | ],
188 | ),
189 | ),
190 | );
191 | }
192 | }
193 |
--------------------------------------------------------------------------------
/lib/webview/example3.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_inappwebview/flutter_inappwebview.dart';
2 |
3 | class WebExampleThree extends InAppBrowser {
4 | @override
5 | Future onBrowserCreated() async {
6 | print("Browser Created!");
7 | }
8 |
9 | @override
10 | Future onLoadStart(url) async {
11 | print("Started $url");
12 | }
13 |
14 | @override
15 | Future onLoadStop(url) async {
16 | print("Stopped $url");
17 | }
18 |
19 | @override
20 | void onLoadError(url, code, message) {
21 | print("Can't load $url.. Error: $message");
22 | }
23 |
24 | @override
25 | void onProgressChanged(progress) {
26 | print("Progress: $progress");
27 | }
28 |
29 | @override
30 | void onExit() {
31 | print("Browser closed!");
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/lib/webview/example4.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_inappwebview/flutter_inappwebview.dart';
2 |
3 | class WebExampleFour extends ChromeSafariBrowser {
4 | @override
5 | void onOpened() {
6 | print("ChromeSafari browser opened");
7 | }
8 |
9 | @override
10 | void onCompletedInitialLoad() {
11 | print("ChromeSafari browser initial load completed");
12 | }
13 |
14 | @override
15 | void onClosed() {
16 | print("ChromeSafari browser closed");
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lib/webview/example5.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 | import 'package:flutter/material.dart';
3 | import 'package:webview_flutter/webview_flutter.dart';
4 |
5 | class WebExampleFive extends StatefulWidget {
6 | final String url;
7 | WebExampleFive({required this.url});
8 |
9 | @override
10 | WebExampleFiveState createState() => WebExampleFiveState();
11 | }
12 |
13 | class WebExampleFiveState extends State {
14 | WebViewController? webViewController;
15 |
16 | @override
17 | void initState() {
18 | super.initState();
19 | // Enable hybrid composition.
20 | if (Platform.isAndroid) WebView.platform = SurfaceAndroidWebView();
21 | }
22 |
23 | @override
24 | Widget build(BuildContext context) {
25 | return SafeArea(
26 | child: WebView(
27 | initialUrl: widget.url,
28 | javascriptMode: JavascriptMode.unrestricted,
29 | allowsInlineMediaPlayback: true,
30 | debuggingEnabled: true,
31 | userAgent: "",
32 | onWebViewCreated: (controller) {
33 | webViewController = controller;
34 | },
35 | initialMediaPlaybackPolicy: AutoMediaPlaybackPolicy.always_allow,
36 | ),
37 | );
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | archive:
5 | dependency: transitive
6 | description:
7 | name: archive
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "3.1.2"
11 | args:
12 | dependency: transitive
13 | description:
14 | name: args
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.2.0"
18 | async:
19 | dependency: transitive
20 | description:
21 | name: async
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.8.1"
25 | boolean_selector:
26 | dependency: transitive
27 | description:
28 | name: boolean_selector
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "2.1.0"
32 | characters:
33 | dependency: transitive
34 | description:
35 | name: characters
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.1.0"
39 | charcode:
40 | dependency: transitive
41 | description:
42 | name: charcode
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.3.1"
46 | clock:
47 | dependency: transitive
48 | description:
49 | name: clock
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.1.0"
53 | collection:
54 | dependency: transitive
55 | description:
56 | name: collection
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.15.0"
60 | connectivity_plus:
61 | dependency: "direct main"
62 | description:
63 | name: connectivity_plus
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.0.6"
67 | connectivity_plus_linux:
68 | dependency: transitive
69 | description:
70 | name: connectivity_plus_linux
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "1.0.3"
74 | connectivity_plus_macos:
75 | dependency: transitive
76 | description:
77 | name: connectivity_plus_macos
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "1.0.2"
81 | connectivity_plus_platform_interface:
82 | dependency: transitive
83 | description:
84 | name: connectivity_plus_platform_interface
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "1.0.2"
88 | connectivity_plus_web:
89 | dependency: transitive
90 | description:
91 | name: connectivity_plus_web
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "1.0.2"
95 | connectivity_plus_windows:
96 | dependency: transitive
97 | description:
98 | name: connectivity_plus_windows
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "1.0.2"
102 | crypto:
103 | dependency: transitive
104 | description:
105 | name: crypto
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "3.0.1"
109 | cupertino_icons:
110 | dependency: "direct main"
111 | description:
112 | name: cupertino_icons
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "1.0.2"
116 | dbus:
117 | dependency: transitive
118 | description:
119 | name: dbus
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "0.5.4"
123 | fake_async:
124 | dependency: transitive
125 | description:
126 | name: fake_async
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "1.2.0"
130 | ffi:
131 | dependency: transitive
132 | description:
133 | name: ffi
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "1.0.0"
137 | file:
138 | dependency: transitive
139 | description:
140 | name: file
141 | url: "https://pub.dartlang.org"
142 | source: hosted
143 | version: "6.1.2"
144 | flutter:
145 | dependency: "direct main"
146 | description: flutter
147 | source: sdk
148 | version: "0.0.0"
149 | flutter_downloader:
150 | dependency: "direct main"
151 | description:
152 | name: flutter_downloader
153 | url: "https://pub.dartlang.org"
154 | source: hosted
155 | version: "1.6.1"
156 | flutter_driver:
157 | dependency: transitive
158 | description: flutter
159 | source: sdk
160 | version: "0.0.0"
161 | flutter_inappwebview:
162 | dependency: "direct main"
163 | description:
164 | name: flutter_inappwebview
165 | url: "https://pub.dartlang.org"
166 | source: hosted
167 | version: "5.3.2"
168 | flutter_test:
169 | dependency: "direct dev"
170 | description: flutter
171 | source: sdk
172 | version: "0.0.0"
173 | flutter_web_plugins:
174 | dependency: transitive
175 | description: flutter
176 | source: sdk
177 | version: "0.0.0"
178 | fuchsia_remote_debug_protocol:
179 | dependency: transitive
180 | description: flutter
181 | source: sdk
182 | version: "0.0.0"
183 | integration_test:
184 | dependency: "direct dev"
185 | description: flutter
186 | source: sdk
187 | version: "0.0.0"
188 | js:
189 | dependency: transitive
190 | description:
191 | name: js
192 | url: "https://pub.dartlang.org"
193 | source: hosted
194 | version: "0.6.3"
195 | matcher:
196 | dependency: transitive
197 | description:
198 | name: matcher
199 | url: "https://pub.dartlang.org"
200 | source: hosted
201 | version: "0.12.10"
202 | meta:
203 | dependency: transitive
204 | description:
205 | name: meta
206 | url: "https://pub.dartlang.org"
207 | source: hosted
208 | version: "1.7.0"
209 | path:
210 | dependency: transitive
211 | description:
212 | name: path
213 | url: "https://pub.dartlang.org"
214 | source: hosted
215 | version: "1.8.0"
216 | path_provider:
217 | dependency: "direct main"
218 | description:
219 | name: path_provider
220 | url: "https://pub.dartlang.org"
221 | source: hosted
222 | version: "2.0.2"
223 | path_provider_linux:
224 | dependency: transitive
225 | description:
226 | name: path_provider_linux
227 | url: "https://pub.dartlang.org"
228 | source: hosted
229 | version: "2.0.0"
230 | path_provider_macos:
231 | dependency: transitive
232 | description:
233 | name: path_provider_macos
234 | url: "https://pub.dartlang.org"
235 | source: hosted
236 | version: "2.0.0"
237 | path_provider_platform_interface:
238 | dependency: transitive
239 | description:
240 | name: path_provider_platform_interface
241 | url: "https://pub.dartlang.org"
242 | source: hosted
243 | version: "2.0.1"
244 | path_provider_windows:
245 | dependency: transitive
246 | description:
247 | name: path_provider_windows
248 | url: "https://pub.dartlang.org"
249 | source: hosted
250 | version: "2.0.0"
251 | pedantic:
252 | dependency: transitive
253 | description:
254 | name: pedantic
255 | url: "https://pub.dartlang.org"
256 | source: hosted
257 | version: "1.11.1"
258 | permission_handler:
259 | dependency: "direct main"
260 | description:
261 | name: permission_handler
262 | url: "https://pub.dartlang.org"
263 | source: hosted
264 | version: "8.1.4+2"
265 | permission_handler_platform_interface:
266 | dependency: transitive
267 | description:
268 | name: permission_handler_platform_interface
269 | url: "https://pub.dartlang.org"
270 | source: hosted
271 | version: "3.6.1"
272 | petitparser:
273 | dependency: transitive
274 | description:
275 | name: petitparser
276 | url: "https://pub.dartlang.org"
277 | source: hosted
278 | version: "4.1.0"
279 | platform:
280 | dependency: transitive
281 | description:
282 | name: platform
283 | url: "https://pub.dartlang.org"
284 | source: hosted
285 | version: "3.0.0"
286 | plugin_platform_interface:
287 | dependency: transitive
288 | description:
289 | name: plugin_platform_interface
290 | url: "https://pub.dartlang.org"
291 | source: hosted
292 | version: "2.0.0"
293 | process:
294 | dependency: transitive
295 | description:
296 | name: process
297 | url: "https://pub.dartlang.org"
298 | source: hosted
299 | version: "4.2.3"
300 | sky_engine:
301 | dependency: transitive
302 | description: flutter
303 | source: sdk
304 | version: "0.0.99"
305 | source_span:
306 | dependency: transitive
307 | description:
308 | name: source_span
309 | url: "https://pub.dartlang.org"
310 | source: hosted
311 | version: "1.8.1"
312 | stack_trace:
313 | dependency: transitive
314 | description:
315 | name: stack_trace
316 | url: "https://pub.dartlang.org"
317 | source: hosted
318 | version: "1.10.0"
319 | stream_channel:
320 | dependency: transitive
321 | description:
322 | name: stream_channel
323 | url: "https://pub.dartlang.org"
324 | source: hosted
325 | version: "2.1.0"
326 | string_scanner:
327 | dependency: transitive
328 | description:
329 | name: string_scanner
330 | url: "https://pub.dartlang.org"
331 | source: hosted
332 | version: "1.1.0"
333 | sync_http:
334 | dependency: transitive
335 | description:
336 | name: sync_http
337 | url: "https://pub.dartlang.org"
338 | source: hosted
339 | version: "0.3.0"
340 | term_glyph:
341 | dependency: transitive
342 | description:
343 | name: term_glyph
344 | url: "https://pub.dartlang.org"
345 | source: hosted
346 | version: "1.2.0"
347 | test_api:
348 | dependency: transitive
349 | description:
350 | name: test_api
351 | url: "https://pub.dartlang.org"
352 | source: hosted
353 | version: "0.4.2"
354 | typed_data:
355 | dependency: transitive
356 | description:
357 | name: typed_data
358 | url: "https://pub.dartlang.org"
359 | source: hosted
360 | version: "1.3.0"
361 | url_launcher:
362 | dependency: "direct main"
363 | description:
364 | name: url_launcher
365 | url: "https://pub.dartlang.org"
366 | source: hosted
367 | version: "6.0.9"
368 | url_launcher_linux:
369 | dependency: transitive
370 | description:
371 | name: url_launcher_linux
372 | url: "https://pub.dartlang.org"
373 | source: hosted
374 | version: "2.0.0"
375 | url_launcher_macos:
376 | dependency: transitive
377 | description:
378 | name: url_launcher_macos
379 | url: "https://pub.dartlang.org"
380 | source: hosted
381 | version: "2.0.0"
382 | url_launcher_platform_interface:
383 | dependency: transitive
384 | description:
385 | name: url_launcher_platform_interface
386 | url: "https://pub.dartlang.org"
387 | source: hosted
388 | version: "2.0.4"
389 | url_launcher_web:
390 | dependency: transitive
391 | description:
392 | name: url_launcher_web
393 | url: "https://pub.dartlang.org"
394 | source: hosted
395 | version: "2.0.0"
396 | url_launcher_windows:
397 | dependency: transitive
398 | description:
399 | name: url_launcher_windows
400 | url: "https://pub.dartlang.org"
401 | source: hosted
402 | version: "2.0.0"
403 | vector_math:
404 | dependency: transitive
405 | description:
406 | name: vector_math
407 | url: "https://pub.dartlang.org"
408 | source: hosted
409 | version: "2.1.0"
410 | vm_service:
411 | dependency: transitive
412 | description:
413 | name: vm_service
414 | url: "https://pub.dartlang.org"
415 | source: hosted
416 | version: "7.1.1"
417 | webdriver:
418 | dependency: transitive
419 | description:
420 | name: webdriver
421 | url: "https://pub.dartlang.org"
422 | source: hosted
423 | version: "3.0.0"
424 | webview_flutter:
425 | dependency: "direct main"
426 | description:
427 | name: webview_flutter
428 | url: "https://pub.dartlang.org"
429 | source: hosted
430 | version: "2.0.12"
431 | win32:
432 | dependency: transitive
433 | description:
434 | name: win32
435 | url: "https://pub.dartlang.org"
436 | source: hosted
437 | version: "2.0.5"
438 | xdg_directories:
439 | dependency: transitive
440 | description:
441 | name: xdg_directories
442 | url: "https://pub.dartlang.org"
443 | source: hosted
444 | version: "0.2.0"
445 | xml:
446 | dependency: transitive
447 | description:
448 | name: xml
449 | url: "https://pub.dartlang.org"
450 | source: hosted
451 | version: "5.1.2"
452 | sdks:
453 | dart: ">=2.12.0 <3.0.0"
454 | flutter: ">=2.0.0"
455 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: full_webview
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.12.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 |
27 |
28 | # The following adds the Cupertino Icons font to your application.
29 | # Use with the CupertinoIcons class for iOS style icons.
30 | cupertino_icons: ^1.0.1
31 | flutter_inappwebview: ^5.3.2
32 | webview_flutter: ^2.0.12
33 | connectivity_plus: ^1.0.6
34 | url_launcher: ^6.0.9
35 | flutter_downloader: ^1.6.1
36 | permission_handler: ^8.1.4+2
37 | path_provider: ^2.0.2
38 |
39 | dev_dependencies:
40 | flutter_test:
41 | sdk: flutter
42 | integration_test:
43 | sdk: flutter
44 |
45 | # For information on the generic Dart part of this file, see the
46 | # following page: https://dart.dev/tools/pub/pubspec
47 |
48 | # The following section is specific to Flutter.
49 | flutter:
50 |
51 | # The following line ensures that the Material Icons font is
52 | # included with your application, so that you can use the icons in
53 | # the material Icons class.
54 | uses-material-design: true
55 |
56 | # To add assets to your application, add an assets section, like this:
57 | # assets:
58 | # - images/a_dot_burr.jpeg
59 | # - images/a_dot_ham.jpeg
60 |
61 | # An image asset can refer to one or more resolution-specific "variants", see
62 | # https://flutter.dev/assets-and-images/#resolution-aware.
63 |
64 | # For details regarding adding assets from package dependencies, see
65 | # https://flutter.dev/assets-and-images/#from-packages
66 |
67 | # To add custom fonts to your application, add a fonts section here,
68 | # in this "flutter" section. Each entry in this list should have a
69 | # "family" key with the font family name, and a "fonts" key with a
70 | # list giving the asset and other descriptors for the font. For
71 | # example:
72 | # fonts:
73 | # - family: Schyler
74 | # fonts:
75 | # - asset: fonts/Schyler-Regular.ttf
76 | # - asset: fonts/Schyler-Italic.ttf
77 | # style: italic
78 | # - family: Trajan Pro
79 | # fonts:
80 | # - asset: fonts/TrajanPro.ttf
81 | # - asset: fonts/TrajanPro_Bold.ttf
82 | # weight: 700
83 | #
84 | # For details regarding fonts from package dependencies,
85 | # see https://flutter.dev/custom-fonts/#from-packages
86 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:full_webview/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techwithsam/flutter_webview/0ddc7fcda622dbf6d95af6c0e16afb07cb1ad3fe/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | flutter_webview
27 |
28 |
29 |
30 |
33 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "flutter_webview",
3 | "short_name": "flutter_webview",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------