Sitemap
ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Follow publication

Flutter Development on a Pixelbook

8 min readMay 30, 2018

--

Press enter or click to view image in full size
Flutter running locally on a Pixelbook, connected with hot reload to Visual Studio Code

Getting the basics installed

Press enter or click to view image in full size
Press enter or click to view image in full size

Installing Flutter

$ sudo apt install libglu1-mesa lib32stdc++6
$ curl -O https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz 
$ tar xf flutter_linux_v1.0.0-stable.tar.xz
$ export PATH=`pwd`/flutter/bin:$PATH

Installing Visual Studio Code and Android Studio

Press enter or click to view image in full size
$ unzip android-studio.zip
$ sudo mv ~/android-studio /usr/local/
$ cd /usr/local/android-studio/bin
$ ./studio.sh
Press enter or click to view image in full size
$ flutter doctor --android-licenses
$ curl -L -o vscode.deb https://go.microsoft.com/fwlink/?LinkID=760868
$ sudo apt install ./vscode.deb

Configuring the Pixelbook as a developer device

chronos@localhost / $ sudo crossystem dev_boot_signed_only=0
chronos@localhost / $ sudo /usr/libexec/debugd/helpers/dev_features_rootfs_verification
chronos@localhost / $ sudo reboot
chronos@localhost / $ sudo /usr/libexec/debugd/helpers/dev_features_ssh
Press enter or click to view image in full size
Press enter or click to view image in full size
$ adb connect 100.115.92.2:5555

Putting all the pieces together

$ flutter create testapp
$ cd testapp
$ flutter run
Press enter or click to view image in full size
A simple Flutter app running in full-screen mode on a Pixelbook.

Recommendations and Caveats

--

--

ProAndroidDev
ProAndroidDev

Published in ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Tim Sneath
Tim Sneath

Written by Tim Sneath

Director for Developer Tools and Frameworks at Apple. I used to run Flutter and Dart at Google.

Responses (11)