How to write a Flutter desktop application

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025
  • Build a Flutter desktop app that accesses GitHub APIs to retrieve your repositories, assigned issues, and pull requests. Create and use plugins to interact with native APIs and desktop applications, and use code generation to build type safe client libraries for GitHub's APIs.
    Resource:
    Write a Flutter desktop application codelab → goo.gle/3JEOoML
    Speaker: Justin McCandless
    Watch more:
    All Google I/O 2022 Sessions → goo.gle/IO22_A...
    Flutter at I/O 2022 playlist → goo.gle/IO22_F...
    All Google I/O 2022 workshops → goo.gle/IO22_W...
    Subscribe to Flutter! → goo.gle/FlutterYT
    #GoogleIO

ความคิดเห็น • 57

  • @d.developer
    @d.developer 2 ปีที่แล้ว +49

    Using Vim makes him superior then other members

    • @justinmccandless2163
      @justinmccandless2163 2 ปีที่แล้ว +30

      I could have recorded this using VS Code but I had to flex 💪

  • @tonystorcke
    @tonystorcke 2 ปีที่แล้ว +32

    Seeing this on Linux would have been nice.

    • @justinmccandless2163
      @justinmccandless2163 2 ปีที่แล้ว +14

      Sorry ah if only I had time to do both. Fortunately all the Flutter stuff is identical. You would have to add Linux support to the window_to_front plugin in linux/window_to_front.cc.

    • @tranthientrong7582
      @tranthientrong7582 2 ปีที่แล้ว +4

      For sure, Google is trying their best to dominate the cross-platform frameworks

    • @k4ba
      @k4ba 2 ปีที่แล้ว +1

      Ubuntu tweet years ago Flutter was it's official development framework

  • @exploring_thailand
    @exploring_thailand 2 ปีที่แล้ว +18

    It would be good to see an example that devlops an app that runs across multiple platforms, and details how to deal with the associated challenges.

    • @flutterdev
      @flutterdev  2 ปีที่แล้ว +13

      Agreed, I would love to do a longer version of this that gets this running on Windows, Linux, and Mac and explores the challenges there.

  • @jeschinstad
    @jeschinstad 2 ปีที่แล้ว +17

    It's a good video, but I guess I was looking for more desktop centic stuff. Most of this would be the same on phones. Anyway, I'm excited about Flutter on Linux for phones and desktop.

  • @phainom
    @phainom 2 ปีที่แล้ว +5

    While it is nice to get desktop support for flutter, the tutorial here builds an app which looks exactly like a mobile app.

  • @whocen
    @whocen 2 ปีที่แล้ว +7

    Damn you using vim making us vscoders feel small.

  • @mayur16
    @mayur16 2 ปีที่แล้ว +3

    Please make a video on flutter windows app with local mysql server..

  • @jay8235
    @jay8235 2 ปีที่แล้ว

    You can simply call method channel to bring the app back to front, plugin is not really needed here unless u r just trying to demo plugin approach.

    • @roslanamir9760
      @roslanamir9760 2 ปีที่แล้ว

      Can you go into a bit more detail on this approach?

    • @jay8235
      @jay8235 2 ปีที่แล้ว

      @@roslanamir9760 what I mean is, without a plugin the app still has its own native portion, e.g. /macos. Working on it directly is more straight forward than creating an additional plugin which is basically like taking a detour. plugin approach is more suitable for federated plugin pattern.

  • @pramodjingade6581
    @pramodjingade6581 2 ปีที่แล้ว +4

    Wow he uses Neo vim. 😎 may I know some of the vim plugs used?

    • @justinmccandless2163
      @justinmccandless2163 2 ปีที่แล้ว +5

      Here is my init.vim (probably a little bit out of date and definitely suboptimal): github.com/justinmc/dotfiles/blob/master/init.vim

    • @pramodjingade6581
      @pramodjingade6581 2 ปีที่แล้ว +1

      @@justinmccandless2163 Thank you so much ❤️

    • @roslanamir9760
      @roslanamir9760 2 ปีที่แล้ว

      Why not use AndroidStudio since you are a Google employee?

  • @amirulidzham
    @amirulidzham 2 ปีที่แล้ว

    Wow, I never wonder that Flutter also support desktop app either Windows or MacOS. Looking forward to Flutter than Ionic for now.

  • @binalparekh7770
    @binalparekh7770 2 ปีที่แล้ว +2

    Can you share you vim configuration

  • @akrooma
    @akrooma ปีที่แล้ว

    you are using a very cool font for the editor.. what is that?

  • @pardeepsolution
    @pardeepsolution หลายเดือนก่อน

    hello good morning Sir. push notification is show through the firebase in window app in flutter

  • @adimardev1550
    @adimardev1550 ปีที่แล้ว

    when i do 'flutter run', the response in my terminal is :
    CMake Error: The source directory "C:/Windows/System32/myApp/windows" does not exist.
    Specify --help for usage, or press the help button on the CMake GUI."

  • @danielfrimu1996
    @danielfrimu1996 ปีที่แล้ว

    what editor are you using?

  • @antoniokomangyudistira4150
    @antoniokomangyudistira4150 ปีที่แล้ว

    Really great videos!! But one thing, please zoom the code and the terminal 😂

  • @prateeksharma3817
    @prateeksharma3817 2 ปีที่แล้ว +4

    Wow neovim ❤

  • @manass3801
    @manass3801 2 ปีที่แล้ว

    sir I am getting this error (Because window_to_front depends on window_to_front, version solving failed.
    pub finished with exit code 65) when using this command flutter pub add --path ../window_to_front window_to_front

  • @pratronald
    @pratronald 2 ปีที่แล้ว +2

    i wish that these videos were made in windows not MacOS..
    The challenges faced by us windows users are way different and given that we are in majority it definitely makes sense to make these videos in windows

    • @Rogueixpresents
      @Rogueixpresents 2 ปีที่แล้ว +1

      u know flutter is cross platform......... copy paste code.................

    • @pratronald
      @pratronald 2 ปีที่แล้ว

      @@Rogueixpresents there are are differences in how emulator is installed and used... It's not about the code, it's about the experience and solutions to existing issues.

    • @exogendesign4582
      @exogendesign4582 2 ปีที่แล้ว

      @@pratronald hence why I stop learning flutter its still too new, community is still too small, I still uses native language for desktop app, and go react native for mobile. Flutter is promising but all tutorials and examples are repetitive, and I never see good practices. I've been searching for a book to learn it from scratch but some books focuses only on Mobilecentric solution. Right now Java Fx and C# WPF is still probably a go to in building desktop app UI.

    • @ABDTalk1
      @ABDTalk1 2 ปีที่แล้ว

      true.. Also windows is a better desktop operating system than macOS anyway

  • @chandramdutta3328
    @chandramdutta3328 2 ปีที่แล้ว +2

    Vim superiority.

  • @devvictorruan5543
    @devvictorruan5543 2 ปีที่แล้ว

    Someone know about native payment with flutter desktop using .dll or some package/implementation??

    • @flutterdev
      @flutterdev  2 ปีที่แล้ว +1

      We are not aware of an existing Pub package that exposes Windows’ native payment APIs. There is an existing first-party Pub package called in_app_purchase, but it doesn’t support desktop yet. You can always add your own support for native APIs like this by writing a plugin and using Dart FFI.
      There is also an ongoing WinRT project (github.com/timsneath/win32/projects/1) in the win32 package that might help. Or we’d be happy to review a PR that added Windows support to in_app_purchase!

    • @devvictorruan5543
      @devvictorruan5543 2 ปีที่แล้ว +1

      @@flutterdev Thank You!

  • @Cerberodev
    @Cerberodev 2 ปีที่แล้ว +1

    Hellow Dash’s !

  • @algeriennesaffaires7017
    @algeriennesaffaires7017 ปีที่แล้ว

    I hope flutter support MRZ soon

  • @ajaikrishnajm9146
    @ajaikrishnajm9146 2 ปีที่แล้ว

    Will this desktop app run on Windows XP ?

    • @flutterdev
      @flutterdev  2 ปีที่แล้ว

      Hi, Ajai!
      Here is a link to some useful information about system requirements:
      goo.gle/3RBSyu0
      We hope this helps 😎

    • @ajaikrishnajm9146
      @ajaikrishnajm9146 2 ปีที่แล้ว

      @@flutterdev Hi thank you so much for the Documentation,
      However my question is - Will the Desktop applications "created using Flutter" run on an Windows XP Operating system with ease ?
      Since the Windows XP is an Old Operating system, Im really not sure if it can handle a Desktop applications "created using Flutter" that has a couple of widget Animations embedded into it.

    • @ajaikrishnajm9146
      @ajaikrishnajm9146 2 ปีที่แล้ว +1

      @@justinmccandless2163 Thanks a lot....

  • @markvanbeek3338
    @markvanbeek3338 2 ปีที่แล้ว +1

    Last decade the world transitioned to mobile… now we reverse this? It’s a crazy world …

  • @peekpt
    @peekpt 2 ปีที่แล้ว

    Using native lsp or coc ?

  • @ghassanalokla7875
    @ghassanalokla7875 6 หลายเดือนก่อน

    It is not have the design view . It is not work for good database .

  • @konfinoyair
    @konfinoyair 2 ปีที่แล้ว

    Man you rock

  • @0xbinarylol
    @0xbinarylol 2 ปีที่แล้ว

    flutter run -d windows taking toooooooooooooooooooooooooooooooooooox10000000000 times

  • @bokunochannel84207
    @bokunochannel84207 ปีที่แล้ว

    the title is misleading

  • @werrutkyupnext
    @werrutkyupnext 2 ปีที่แล้ว

    bro I am not willing to take 17,000 hours and 23 tb of storage just to install flutter, I wanted to do this at first now I am uninterested

    • @TekExplorer
      @TekExplorer 2 ปีที่แล้ว +3

      What are you on about?
      Its really easy. it doesnt take much at all.

    • @werrutkyupnext
      @werrutkyupnext 2 ปีที่แล้ว

      @@TekExplorer well tell me how to do it very easily

  • @manfredkernMK
    @manfredkernMK 2 ปีที่แล้ว +6

    Not much special about a desktop app. Could have also been a mobile app. A bit disappointing.

    • @henrikholst7490
      @henrikholst7490 9 หลายเดือนก่อน

      That sounds good to me. :)

    • @ap80shg
      @ap80shg 3 หลายเดือนก่อน +1

      That’s the point of flutter…

  • @unsalpisirgen9204
    @unsalpisirgen9204 3 หลายเดือนก่อน

    I find it difficult to understand you, especially with the loud keyboard sound effect. How can people listening through headphones even stand it? It's like you're assaulting people's ears. What is the purpose of adding this sound effect? Are you trying to decrease your views? I can't make sense of it at all. If you didn't include such ridiculous effects, we could enjoy and watch your content properly. This isn't just criticism for you, but for a few other TH-camrs as well. Please show some respect for people's sense of hearing.