What does HackerNews think of flutter?

Flutter makes it easy and fast to build beautiful apps for mobile and beyond

Language: Dart

#2 in Android
#2 in iOS
#7 in macOS
#1 in Mobile
#2 in Laravel
#5 in Windows
> On total whimsy, I tried Flutter. I downloaded it, and built "Hello World" for macOS. Not only did it take an eternity to compile (on my modern, SSD enabled, eleventy gigablip iMac), the result was 108MB. And that was just for the Mac version, I'd need 2 others for Linux and Windows. The compile time was glacial (I know, its got hot reloading to speed things up).

I'm curious how you got 108mb. Here's what I'm seeing:

  $ flutter --version
  Flutter 3.0.4 • channel stable • 
  https://github.com/flutter/flutter
  Framework • revision 85684f9300 (7 days ago) • 2022-06-30 13:22:47 -0700
  Engine • revision 6ba2af10bb
  Tools • Dart 2.17.5 • DevTools 2.12.2
  $ flutter create hello_world && cd hello_world
  Creating project hello_world...
  Running "flutter pub get" in hello_world...                      1,764ms
  Wrote 127 files.

  All done!
  In order to run your application, type:

    $ cd hello_world
    $ flutter run

  Your application code is in hello_world/lib/main.dart.

  $ flutter build macos

  Building with sound null safety

  Building macOS application...

  $ du -ah build/macos/Build/Products/Release/hello_world.app | tail -1
   44M build/macos/Build/Products/Release/hello_world.app
Note, the release build is significantly smaller than the debug build, which includes a full Dart VM for hot swapping application code:

  $ flutter build macos --debug

  Building with sound null safety

  Building macOS application...

  $ du -ah build/macos/Build/Products/Debug/hello_world.app | tail -1
   98M build/macos/Build/Products/Debug/hello_world.app
Note, on the glacial compiles, here is what I'm seeing on my M1 mac laptop:

  $ time flutter build macos

  Building with sound null safety

  Building macOS application...
  flutter build macos  1.20s user 0.59s system 47% cpu 3.801 total
It's slower than building web pages in vim, but this is comparable with compiling desktop applications in Xcode.

Disclosure: I'm a Developer Relations Engineer for Flutter

Ah! I am brand new to learning flutter and was trying to change the Flutter channel with the command:

flutter channel master

And it kept failing with:

------

git: remote: Internal Server Error.

git: remote:

git: fatal: unable to access 'https://github.com/flutter/flutter.git/': The requested URL returned error: 500

Switching channels failed with error code 128.

------

thought I was doing something wrong and spent some time troubleshooting.

By some measures Flutter is taking off [1], and it's Github repo has certainly drawn some interest [2]. At any rate, Flutter is far from unpopular, and is iirc the youngest of any of the competing frameworks.

[1] https://trends.google.com/trends/explore?q=%2Fg%2F11f03_rzbg...

[2] https://github.com/flutter/flutter

Dart had an initial hiccup, but I think things started changing with flutter - https://github.com/flutter/flutter
I had the same issue.

"Go Flutter desktop embedder". Well, that's that? Click (https://github.com/flutter/flutter/wiki/Custom-Flutter-Engin...)

"The Flutter Engine is window toolkit agnostic. " What's flutter engine? Click (https://github.com/google/flutter-desktop-embedding)

"The purpose of this project is to support building applications that use Flutter " Ok, but what's Flutter? Click (https://github.com/flutter/flutter)

"Flutter is Google’s mobile app SDK for crafting high-quality native interfaces on iOS and Android in record time."

OOOOH. Ok.

The difference with other Google projects is that Flutter is open source[1][2], one can fork it and continue the project if Google decides not to work on it anymore.

[1] https://github.com/flutter

[2] https://github.com/flutter/flutter

Yeah, we've got some work to do to fill out our set of examples. (Disclaimer: I work on the Flutter team.)

- There's a catalog of simple but official examples in the Flutter repo, under the examples directory: https://github.com/flutter/flutter

- One Flutter user has contributed a pretty impressive list of examples and learning resources here: https://github.com/Solido/awesome-flutter

- One of my personal favorite examples is this restaurant app prototype, which is inspired by an Uplabs design: https://github.com/braulio94/menu_flutter

Thank you for WSL! I've been using it to learn more about what it could be done with it, and at home have been trying to compile flutter (http://flutter.org) on it... Currently it gets stuck in the "pub upgrade" (the dart language packaging mechanism), as it runs several tar's to unpack packages.

If you just follow the simple:

bash.exe...:

  $ mkdir p; cd p

  $ git clone https://github.com/flutter/flutter

  $ cd bin

  $ ./flutter doctor
it'll soon get up to speed, and eventually hang. Off course all this works on Windows, but I wanted to experiment with something as it encompasses several different things - language, environment, packages, jit-ing, etc.

Still pretty excited about the development!

Heh, one thing I've learned the hard way, I made a symlink on my /mnt/c/ as /mnt/c/something - and this was making several windows tools unhappy, had to deleted from WSL and now it's fine.

Dart doesn't have the adoption yet and has a different plan when it comes to mobile ( https://github.com/flutter/flutter ).

I love Go, but it's not really a suitable language to do UI, or anything that deals with data models.

C#, however, is a perfect replacement for Java, most of the times. I would say "it's simply superior in every imaginable metric other than cross-platform implementations of the compiler/VM" but that's just my opinion.

Just the raw statistics from github plus the direct link. Don't over-interpret it.

What you mean is there: https://github.com/flutter/flutter (99.1% Dart)