Connectivity (Flutter Package of the Week)

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • Learn more about connectivity → goo.gle/pub-dev...
    The connectivity package at its core tells developers if devices are connected to a wifi network, a cell network, or nothing at all. Use checkConnectivity to check if your app is connected to the internet.
    Learn everything about Flutter at → goo.gle/2WAhEN1
    Get more tips! → goo.gle/Flutte...
    Subscribe to Flutter! → goo.gle/FlutterYT
    #WidgetoftheWeek #Widgets #Flutter #PackageoftheWeek

Комментарии • 62

  • @olamilekanadeleke6806
    @olamilekanadeleke6806 3 года назад +43

    I love this series.. but it take too long for new episode to be realseed 😭

  • @naxcall
    @naxcall 3 года назад +3

    Video just got smoother and smoother 👍

  • @danilochantez5654
    @danilochantez5654 3 года назад +8

    Love this videos!

  • @eren1301312
    @eren1301312 3 года назад +7

    Boooom, it was in my today's task list to search which packages are available to check device's connection status lol. Thanks awesome Flutter community!

  • @triple3way
    @triple3way 3 года назад

    Superrrrr ... i was just searching for how to check the connectivity status yesterday, THANK YOU HEROD

  • @ricksondpenha
    @ricksondpenha 3 года назад +7

    Don't forget to add the "access to wifi state" capabilities in xcode...
    Also I've this weird error on iOS simulator.. whenever I switch wifi state I get the previous state in the stream

  • @SergeMatveenko
    @SergeMatveenko 3 года назад +5

    What about the desktop? There could be Bluetooth tethered connection or LAN and any type of connection could be labeled as having metered or unlimited traffic plan.

    • @FedJimSmith
      @FedJimSmith 3 года назад +2

      gonna ask the same thing, and there are other's how about tethered using usb connection

  • @fabmachi1565
    @fabmachi1565 3 года назад +5

    Note that on Android, this does not guarantee connection to Internet. For instance, the app might have wifi access but it might be a VPN or a hotel WiFi with no access.
    What about this note?

    • @rawquesh
      @rawquesh 3 года назад +1

      It will show connected even without internet access, and this package works 80% time so yeah

  • @M37Shadow
    @M37Shadow 3 года назад +1

    Its been more than a week we are still waiting the next widget 💗

  • @TarasBazyshyn
    @TarasBazyshyn 3 года назад +1

    And on iOS it requires additional check on init statez otherwise the stream is hanged.

  • @amdsy0997
    @amdsy0997 3 года назад

    Thanks, this package is very helpful

  • @OscarShaitanTigreros
    @OscarShaitanTigreros 3 года назад +6

    this package and internet_connection_checker have issues reporting wrong internet connection
    this one only report the current active network
    the internet_connection_checker dont work on limited net works like social media plans, the reason is because use the ping as checker and on this type of plans you can ping google but cant navigate to google.
    Im working on my own solution custom_ping this one already work using a get call to check the internet
    in the future im working on new features like tell the active network (like connectivity) and also a smart stream broad cast that stop the calls once there is no listener and reactivate when a new one arrives.

    • @NextLevelCode
      @NextLevelCode 3 года назад

      Anything like that where is does a ping is not a guarantee. The person could be online when you check the connection and dropped signal when you actually call http. Just try the request and handle the errors gracefully

    • @altayebyousif8469
      @altayebyousif8469 2 года назад

      is this solution ready?

  • @IsaiasBassTrue
    @IsaiasBassTrue 3 года назад

    Thanks. Great help.

  • @msundar661
    @msundar661 3 года назад

    I love flutter❤️

  • @robby2430
    @robby2430 3 года назад

    i love this kind of video

  • @AliYar-Khan
    @AliYar-Khan 3 года назад

    Awesome 👍🏻

  • @himchan-han
    @himchan-han 3 года назад

    Widgets for everyone!

  • @Prince-ds4zm
    @Prince-ds4zm 3 года назад +3

    This package cannot check if wifi has internet or not. for that feature i am using data_connection_checker

    • @NextLevelCode
      @NextLevelCode 3 года назад +1

      You don’t really need to check for connection. Just try the request and if it fails handle the error.
      Anything like that where is does a ping is not a guarantee. The person could be online when you check the connection and dropped signal when you actually call http

  • @FabioSouza-ge6no
    @FabioSouza-ge6no 3 года назад +3

    Muito bom, até o momento que estou mexendo com o Flutter, só vejo pontos positivos.

    • @admypz
      @admypz 2 года назад

      Learn English

  • @ombhd1131
    @ombhd1131 3 года назад

    Awsome !

  • @gooren
    @gooren 3 года назад +1

    What about Ethernet on Desktop?

  • @gourav7315
    @gourav7315 3 года назад +1

    Make Server Side Rendering in Flutter Web, Flutter web not Support Seo Why?

  • @JustinEltoft
    @JustinEltoft 3 года назад

    Will it work for web also someday? Say, wired LAN/WAN?

    • @NextLevelCode
      @NextLevelCode 3 года назад

      Probably not. It would require the web browser to surface that data to the webpage.
      On the native side the browser would have to hook into any api related to that status. Or if there is none to hook into the network stack. The former is a mild privacy concern. The latter would be a security concern. And even if it is possible no guarantee that every web browser would support it.

  • @gourav7315
    @gourav7315 3 года назад +1

    Flutter Web is little slow, Pls increase performance like ReactJs/NextJs

  • @kusumawardana9550
    @kusumawardana9550 3 года назад

    nice

  • @aniketshukla540
    @aniketshukla540 3 года назад

    Wow!

  • @mohammedsufiyan1139
    @mohammedsufiyan1139 4 месяца назад

    This package has discontinues any solution for it ! , Any alternative solution .

  • @erick-llerenas
    @erick-llerenas 3 года назад

    So damn good

  • @robertmollentze3862
    @robertmollentze3862 3 года назад +1

    Connectivity is TERRIBLE and doesn't always work on web and Android. I've tried it with three different devices and it tells me I'm not connected to 4G/5G mobile network when I clearly am. It does the same at my home and work WiFi.

  • @husseinnasibu
    @husseinnasibu 2 года назад

    So that mean flutter had this package a whole time while I was struggling with native android

  • @krishna_v98
    @krishna_v98 3 года назад

    flutter apps don't run at screen refresh rate on my OP7 Pro, any fix?

    • @rawquesh
      @rawquesh 3 года назад

      flutter build apk --split-per-abi

  • @simponcode
    @simponcode 3 года назад

    Wow

  • @arunrajs6572
    @arunrajs6572 3 года назад

    👍👍

  • @yznzi7403
    @yznzi7403 3 года назад

    who i can fix this error
    fatal error: 'Flutter/Flutter.h' file not found
    #import

    • @NextLevelCode
      @NextLevelCode 3 года назад +2

      StackOverflow

    • @yznzi7403
      @yznzi7403 3 года назад

      @@NextLevelCode
      this my question and not find answer yet
      stackoverflow.com/questions/67459438/i-have-this-problem-import-flutter-flutter-h

  • @howtoearn1664
    @howtoearn1664 3 года назад

    difficult...please make it hll code

  • @xcoder5795
    @xcoder5795 3 года назад

    Flutter is coming

  • @howtoearn1664
    @howtoearn1664 3 года назад +1

    please do bi-weekly

  • @wdestroier
    @wdestroier 3 года назад

    wait, what about the ethernet cable folks?

  • @tayanelesty2158
    @tayanelesty2158 3 года назад

    I guess this is just for mobile app and not desktop.

    • @ScHw0nSeN
      @ScHw0nSeN 3 года назад

      For me it works on all desktops but not in web browsers.

  • @Forzazak
    @Forzazak Год назад

    DISCONTINUED

  • @justincoding
    @justincoding 3 года назад

    ir mejo

  • @harshjain4256
    @harshjain4256 3 года назад

    Bcz of this package i cant build my project anymore

  • @itchannel5440
    @itchannel5440 3 года назад

    I am sharvesh from Tamilnadu, India. I am studying class 10. I am learning flutter and firebase. And currently I am doing a voting app can anyone help me for that

  • @sirnigelcogs
    @sirnigelcogs 3 года назад +1

    Flutter overall uses so, so many embedded parenthesis and curly braces, which is a shame. That's one aspect of JavaScript Flutter didn't need to copy. It could have come up with a smoother more elegant solution.

    • @ElVerdaderoAbejorro
      @ElVerdaderoAbejorro 3 года назад

      Agreed, but we don't use Flutter because of its stetics nor because of its language, but because of its awesome framework