WebView In Flutter For Beginners

Поділитися
Вставка
  • Опубліковано 16 вер 2024
  • How to implement WebView In Flutter for Beginners. Load a website in a Flutter application. Easy and simple implementations in Visual Studio Code.
    Download full source code: youtube.codese...
    WebView Version: pub.dev/packag...
    Starter Code: flutter.dev/do...
    Join our Whatsapp group for continuous discussions: whatsappgroup....
    Contact us for any business queries:
    Email: mail@codeseasy.com
    Phone number: +918281536333
    Whatsapp: whatsapp.codes...
    Setup Android Emulator: • Setup Android Emulator...
    Setup Flutter: • Setup Flutter and Visu...
    Find us on Social Media:
    Website: www.codeseasy.com
    Discord: / discord
    GitHub: github.com/Vis...
    Facebook: / codeseasy
    Instagram: / codeseasy
    Twitter: / codeseasyblog
    UA-cam: / codeseasy
    ~-~~-~~~-~~-~
    Please watch: "Create Wallpaper Application In Android Studio - Full Project Tutorial For Beginners"
    • Create Wallpaper Appli...
    ~-~~-~~~-~~-~

КОМЕНТАРІ • 144

  • @mohammedsolyman3891
    @mohammedsolyman3891 Рік тому +1

    thank you very much

  • @retropad2020
    @retropad2020 3 роки тому +2

    thank you so much this help a lot. its also easy and works like a charm.

  • @megameketref
    @megameketref 3 роки тому +6

    Excelente vídeo, muito obrigado 👏👏👏

  • @Undurkhaan
    @Undurkhaan 3 роки тому +1

    Awesome video. Thank you so much!

  • @fluttermakers
    @fluttermakers 3 роки тому +1

    Awesome video. Thank you so much much much

    • @CodesEasy
      @CodesEasy  3 роки тому +1

      Happy that it helped you

  • @bensosfrequents
    @bensosfrequents Рік тому +1

    Hello how do you show a loading spinnet instead of blank page while pages are loading. Import6to show the user some tasks are on the progress

  • @user-ui4mh1vl2b
    @user-ui4mh1vl2b Рік тому +1

    Sir can u pleaase explain internet connectivity in webview also please

    • @CodesEasy
      @CodesEasy  Рік тому

      In flutter you don't have to worry about internet permission

    • @user-ui4mh1vl2b
      @user-ui4mh1vl2b Рік тому

      @@CodesEasy
      Sir if i open app when net is in off mode i am getting message like (webpage not Availabale net::ERR_INTERNET_DISCONNECTED )sir

  • @rohithkannan627
    @rohithkannan627 4 роки тому +1

    I have a doubt and wanna learn that how to make upload file in webview. I can make it in android studio for android native. But don't know in flutter for both ios and android. So please tell me how to do that. Please, waiting for your reply.

    • @tikodi40
      @tikodi40 4 роки тому

      @@CodesEasy How soon? Do not forget permissions especially MIC and CAMERA

  • @jbaatstudio7093
    @jbaatstudio7093 4 роки тому

    I'm waiting for your next video you promised at the end of this video.

  • @iraqtech5693
    @iraqtech5693 4 роки тому +1

    great many thanks:)

  • @ahmadrindhoni58
    @ahmadrindhoni58 3 роки тому +1

    thank you it works

    • @CodesEasy
      @CodesEasy  3 роки тому

      Happy that you liked it

  • @AVAVines
    @AVAVines 4 роки тому +1

    error while hot reload
    it says :
    Try correcting the name to the name of an existing method, or defining a method named 'WebView'.
    body: WebView(
    ^^^^^^^
    lib/main.dart:20:27: Error: The getter 'JavascriptMode' isn't defined for the class 'MyApp'.
    - 'MyApp' is from 'package:flutterapp/main.dart' ('lib/main.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'JavascriptMode'.
    javascriptMode: JavascriptMode.unrestricted,

    • @tanjilalomjahid995
      @tanjilalomjahid995 5 місяців тому

      It's now WebView it is WebViewWidget
      You can use like below
      return WebViewWidget(controller: controller);

  • @honestwebhostingreviews6140
    @honestwebhostingreviews6140 3 роки тому +1

    can you make a video on how to add flutter navigation bar and about the URL launcher package please ?? i created my app by seeing your tutorial however i want to add these two features in it whenever i click the back button it takes me out of the app so i want it to take me back when i press that rather than taking me out of the app

    • @CodesEasy
      @CodesEasy  3 роки тому

      You have to implement those features. Its easy, you could check flutter documentation.

    • @honestwebhostingreviews6140
      @honestwebhostingreviews6140 3 роки тому

      @@CodesEasy i tried seeing the documentation but i don't understand anything can you please make a video would love to watch your video as you explain it in a very easy and simple way please

  • @berat4935
    @berat4935 4 роки тому

    Well, can the back and forth buttons be added in the following videos?

  • @RajPatel-xv9in
    @RajPatel-xv9in 3 роки тому +1

    Can anyone help me how can I manage hardware permission requested by website in webview and also the notification sent by the website as app notification......

    • @CodesEasy
      @CodesEasy  3 роки тому

      You have to enable it in WebView, check the documentation

  •  4 роки тому

    I have a question. Is it possible to inject JavaScript to that webview? And how?
    Cuz, I’m planning to do that in order to make webscrapping

  • @aaratechnologies8096
    @aaratechnologies8096 2 роки тому +1

    open web view qr are not showing when open webview link hwo to change webview in desktop mode?

    • @CodesEasy
      @CodesEasy  2 роки тому

      i dont understand your question

  • @jesuscristo5008
    @jesuscristo5008 4 роки тому +1

    Does this work on IOS Catalina?

  • @bryantmichael6863
    @bryantmichael6863 11 місяців тому +1

    Can fingerprint authentication be added to a webapp in flutter?

    • @CodesEasy
      @CodesEasy  11 місяців тому

      You can add it to android and iOS apps etc.

    • @bryantmichael6863
      @bryantmichael6863 11 місяців тому

      @@CodesEasy how

  • @LoryTheHawk
    @LoryTheHawk 3 роки тому +1

    Hi! I followed your tutorial but when i lunch app in chrome says: trying to use the default webview implementation for targetplatform.windows but there isn't a default one... How can i solve?

    • @CodesEasy
      @CodesEasy  3 роки тому

      Check logcat for the error.

  • @kupkumral2793
    @kupkumral2793 3 роки тому +1

    thanks

  • @esdest
    @esdest 2 роки тому +1

    How to connect it to webview php localhost...web adrress

    • @CodesEasy
      @CodesEasy  2 роки тому

      You can use ip address of the machine, but you should use an emulator. Or use something like ngrok for cheating http links for localhost.

  • @user-le7iw5wm1c
    @user-le7iw5wm1c 11 місяців тому +1

    How to show current location in webview

    • @CodesEasy
      @CodesEasy  11 місяців тому

      Use some api or use javascript to fetch location

  • @umutbulut4966
    @umutbulut4966 2 роки тому +1

    Is it possibe to get push notification with webview

  • @swastikapokharel7385
    @swastikapokharel7385 4 роки тому

    Is this only for developer preview? It is not working transferred in APK file. Any solution? @code easy

  • @anjotech1329
    @anjotech1329 3 роки тому +1

    Hola como estas tengo una consulta se puede eliminar la barra de arriba azul o el header como lo conozcan?

    • @CodesEasy
      @CodesEasy  3 роки тому

      great

    • @distritomau
      @distritomau 3 роки тому

      Elimina las lineas que contengan:
      appBar: AppBar(
      title: Text('Welcome to Flutter'),
      ),

  • @SmashCoder12
    @SmashCoder12 Рік тому +1

    How can add bottom bar?

    • @CodesEasy
      @CodesEasy  Рік тому

      We have video on this on Java. For flutter you can refer the docs. We will be definitely creating more videos on flutter soon.

  • @akhihalder9496
    @akhihalder9496 4 роки тому

    @Codes Easy Hi, how can I add a loading page at first with an icon?

  • @raghumca
    @raghumca 4 роки тому

    Hi, I would like cache webpage so that delay in rendering the website can be reduced. How to achieve that.

  • @iamriwash7943
    @iamriwash7943 4 роки тому

    bro i dnt know about flutter so i start this webview or need to learn flutter first . i want to convert my site to apps

  • @hakanyusufoglu
    @hakanyusufoglu 4 роки тому

    Thank you

  • @DigiSevak
    @DigiSevak 4 роки тому

    Thanks 👍

  • @omprakashnajwani633
    @omprakashnajwani633 4 роки тому

    webview me share link not working it's important part of any website

  • @donaldmemooqaed3222
    @donaldmemooqaed3222 4 роки тому

    PS X:\MyApp> flutter run
    Error: No pubspec.yaml file found.
    This command should be run from the root of your Flutter project.
    Do not run this command from the root of your git clone of Flutter.

  • @atthanaphiphat8215
    @atthanaphiphat8215 3 роки тому +1

    Hi @Codes Easy
    How to pitch to "zoom in" in that mode.

    • @CodesEasy
      @CodesEasy  3 роки тому

      You can set that in WebView.

  • @khalidaymaan4062
    @khalidaymaan4062 3 роки тому +1

    How to use offline files like html, css, js in webview for flutter.

    • @CodesEasy
      @CodesEasy  3 роки тому

      You can add as assets then load from it

  • @Technonews1999
    @Technonews1999 2 роки тому +1

    bro how to create webview that run on windows web & android

    • @CodesEasy
      @CodesEasy  2 роки тому

      For Android you simply need to run this or export apk

  • @nishanshashintha2863
    @nishanshashintha2863 4 роки тому

    There is an error -> net::ERR_CLEARTEXT_NOT_PERMITTED

  • @berat4935
    @berat4935 4 роки тому +1

    Hello Exception: Gradle task assembleDebug failed with exit code 1
    problem :(

    • @berat4935
      @berat4935 4 роки тому +1

      @@CodesEasy Ok. :) Thanx

  • @techvarun1561
    @techvarun1561 3 роки тому +1

    Where I can find back button video?

    • @CodesEasy
      @CodesEasy  3 роки тому

      Not yet uploaded, we will soon do it

  • @vaishrox66
    @vaishrox66 4 роки тому

    Running Gradle task 'assembleRelease'...
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: /home/builder/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.22+1/android/src/main/java/io/flutter/plugins/webviewflutter/FlutterWebView.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Project is still getting built, but its corrupted and not installing. Please help

    • @vaishrox66
      @vaishrox66 4 роки тому

      I fixed that error by letting flutter choose the webview package, but now I'm getting err cache miss on my webpage. Pls help

  • @honestwebhostingreviews6140
    @honestwebhostingreviews6140 3 роки тому +1

    increase this project's minSdk version to at least 19, this is the error i am getting when i am trying to run the app

    • @CodesEasy
      @CodesEasy  3 роки тому +1

      Like in an Android Studio project, you have to edit the build.gradle file. In a flutter project, it is found at the path ./android/app/build.gradle.
      The parameter that needs to be changed is, of course, minSdkVersion 16, bumping it up to what you need (in this case 19).

  • @lLlLawliet1
    @lLlLawliet1 2 роки тому

    how to make the minSdkVersion be able to edit?

    • @CodesEasy
      @CodesEasy  2 роки тому

      You have to do set minSdkVersion in build.gradle file, located in /android/app and set a value in the defaultConfig block:
      There are two API level settings available:
      minSdkVersion - The minimum version of the Android platform on which the app will run, specified by the platform's API level identifier.
      targetSdkVersion - Specifies the API level on which the app is designed to run. In some cases, this allows the app to use manifest elements or behaviors defined in the target API level, rather than being restricted to using only those defined for the minimum API level.

  • @anandrajrajendran2603
    @anandrajrajendran2603 3 роки тому +1

    The same is not working in web app

  • @neteshpaudel724
    @neteshpaudel724 4 роки тому

    Is there any way to block the ads in webview ?

  • @alessandrolittera4733
    @alessandrolittera4733 4 роки тому

    The virtual keyboard of the smartphone does not work. Do you know how to solve the problem?

    • @alessandrolittera4733
      @alessandrolittera4733 4 роки тому

      @@CodesEasy A problem occurs when there is a form with inputs in the html page stackoverflow.com/questions/55805743/flutter-webview-keyboard-cannot-show-up

  • @tirtharajbhattacharjee2665
    @tirtharajbhattacharjee2665 4 роки тому

    How can I change the Nav menu styles and add extra features to a webview app?

  • @logicaloffensive1050
    @logicaloffensive1050 4 роки тому

    Can you please add a widget for No internet connection?

  • @kevinaffram3265
    @kevinaffram3265 4 роки тому

    did exactly as in video but i get an error message
    error: The method 'webview' isn't defined for the type 'MyApp'. (undefined_method at [flutter_app] lib\main.dart:16)

    • @zerefX_
      @zerefX_ 4 роки тому

      Maybe you didn't import the package properly, if the problem still exists do a flutter clean and then pub get

    • @webhost1804
      @webhost1804 4 роки тому

      make sure your project files are in the same partition where you installed flutter. in other words make sure the project & flutter are in C:/

  • @aleksandarvukazic8895
    @aleksandarvukazic8895 4 роки тому

    Great tut.But webviews are uselles in flutter with out download option.Sending user to download in external broswer is idiotic...

    • @aleksandarvukazic8895
      @aleksandarvukazic8895 4 роки тому

      @@CodesEasy I am thinking that they rush to push flutter cos React n.But in truth he is not ready to play that battle.To much bugs.For example i found bug in List Tile-Textview with some latin letters.No one knows how to fix that.I realy liked flutter but he need few years to get old...It will be nice to show how flutter_downloader works cos i am not able to make it work.

  • @reetabhardwaj9679
    @reetabhardwaj9679 4 роки тому

    How to add webview can go back then go back method on back pressed plzzzz help!!
    When I press the back button it close the application what to do

    • @reetabhardwaj9679
      @reetabhardwaj9679 4 роки тому

      @@CodesEasy plzz publish the video very very very very soon

    • @reetabhardwaj9679
      @reetabhardwaj9679 4 роки тому

      @@CodesEasy if you are making video on it plzz also add the downloading listener on webview

  • @suriyashopping407
    @suriyashopping407 3 роки тому +1

    i couldnt open whatsapp or telegram when a link with opening it is pressed

    • @CodesEasy
      @CodesEasy  3 роки тому

      You will have to handle such intent URLs separately.

    • @acmsohail
      @acmsohail 3 роки тому

      @Codes Easy can you share those code. I need to open tel, WhatsApp and google maps.

  • @ishantkrishna
    @ishantkrishna 3 роки тому +1

    How upload images in webview

    • @CodesEasy
      @CodesEasy  3 роки тому +1

      You will have to add separate implementations for that.

  • @Anamaria.m
    @Anamaria.m 4 роки тому

    How do i turn on the feature when i type something and options comes in as shown at 3:18 . when you started typing the list popup with the options. How do i turn it on .Please anyone help me

    • @Anamaria.m
      @Anamaria.m 4 роки тому

      @@CodesEasy i need it for Android studio

    • @felixmacaraig7633
      @felixmacaraig7633 3 роки тому

      @@Anamaria.m... Kimono.. M... I o k. Omo9k.? K90.. Mm..

  • @Truongsiuquay
    @Truongsiuquay 3 роки тому +1

    How can i block ads on webview, sir ?

    • @CodesEasy
      @CodesEasy  3 роки тому

      Check for other libraries.

  • @BellatrixLugosi
    @BellatrixLugosi 2 роки тому +1

    the release app does't want to open the url

    • @CodesEasy
      @CodesEasy  2 роки тому

      Try cleaning the build cache and try again

    • @BellatrixLugosi
      @BellatrixLugosi 2 роки тому

      I got it, i need to set internet permission on@@CodesEasy

  • @teches_congito
    @teches_congito 4 роки тому

    How to fix unknown error schemes for call, email, whatsapp. Kindly solve my doubt.

  • @KIRANCHABUKSWAR
    @KIRANCHABUKSWAR 3 роки тому +2

    pub get failed (65; ╵)
    Exited (65)

    • @CodesEasy
      @CodesEasy  3 роки тому +1

      Make sure you have internet connection also make sure you have added the cose in proper format

  • @PRAMODYADAV-mk7ow
    @PRAMODYADAV-mk7ow 4 роки тому

    How to remove WhatsApp link error.

  • @jpchicon7040
    @jpchicon7040 3 роки тому +1

    Works in Android Studio?

  • @aqilalovebunda7751
    @aqilalovebunda7751 4 роки тому

    How to add booting logo and icon logo and how to build it to apk? thank you :)

  • @rollingarchives
    @rollingarchives 2 роки тому

    It took 20 whole seconds to import the webview package

    • @CodesEasy
      @CodesEasy  2 роки тому

      Recommend using a fast internet connection

  • @clickstore8972
    @clickstore8972 4 роки тому

    hi watsap group not working\

  • @nirobahmed3896
    @nirobahmed3896 4 роки тому

    My webview apps is not approved in apple store

    • @nirobahmed3896
      @nirobahmed3896 4 роки тому

      @@CodesEasy yes,its working on ipone,but its not approved in iOS app store.

  • @Suprem3GamerDamianWinchester
    @Suprem3GamerDamianWinchester 3 роки тому +1

    Hi sir, your tutorial is not for beginners is it? it is not clear.

    • @CodesEasy
      @CodesEasy  3 роки тому

      Watch full playlist ua-cam.com/video/5izFFbdHnWY/v-deo.html

  • @RaviPrajapati-ih4js
    @RaviPrajapati-ih4js 4 роки тому

    I have some issue I want to load a lot pdf file in my app

  • @codesnacksIO
    @codesnacksIO 4 роки тому

    around 8 minutes of video for 2 lines of code! No offense, but increase value not the watch time :) All of us developers strive every day to be productive.

  • @teamsidladyrose
    @teamsidladyrose 4 роки тому

    how to adding permission on webview

    • @teamsidladyrose
      @teamsidladyrose 4 роки тому

      @@CodesEasy like webview facebook

    • @magoelias3846
      @magoelias3846 4 роки тому

      @@CodesEasy
      I can't access the location of my user, i'm developing a store that gets the location to show the services related according to his localization, using webview.I can't get his location because is missing a permission, and I couldn`t found a solution yet :/ Could you help me ?