Flutter

Flutter (Coming Soon)

Flutter is an open-source UI software development kit created by Google. It can be used to develop cross platform applications from a single codebase for the web, Fuchsia, Android, iOS, Linux, macOS, and Windows. First described in 2015, Flutter was released in May 2017. Flutter is used internally by Google in apps such as Google Pay and Google Earth as well as by other software developers including ByteDance and Alibaba.

Flutter apps are written in the Dart language. Release versions of Flutter apps on all platforms use ahead-of-time (AOT) compilation except for on the Web where code is transpiled to JavaScript or WebAssembly. Flutter inherits Dart's Pub package manager and software repository, which allows users to publish and use custom packages as well as Flutter-specific plugins. The Foundation library, written in Dart, provides basic classes and functions that are used to construct applications using Flutter, such as APIs to communicate with the engine.

See Flutter on Wikipedia.

Getting started

To get started with Flutter development on BRAP.dev, install the Flutter dependencies by running the script on your BRAP.dev terminal:

curl -sL https://brap.dev/setup-flutter.sh | zsh

You can develop Flutter apps on BRAP.dev using the web as your target platform. Of course, you can still target other platforms such as Android or iOS when you're not on BRAP.dev.

To create a new Flutter app and run it on BRAP.dev, run:

cd ~/
flutter create my_flutter_app
cd create my_flutter_app
flutter run -d web-server --web-hostname=0.0.0.0 --web-port=8000

Flutter screenshot

Screenshot: Flutter app running on BRAP.dev as web platform.

Notice that you need to specify a specific port when developing Flutter apps in BRAP.dev, since flutter run uses any random port available, which BRAP.dev may not port-forward. Hence, use any of the available ports that BRAP.dev port-forwards, such as port 8000 used as example here.

Keywords

  • flutter web
  • flutter
  • android
  • ios
  • apple
  • google
  • dart
  • multi-platform
  • multiplatform
  • hybrid
  • native
  • mobile
  • desktop
  • single codebase

Back to top