This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Flutter crash report; please file at https://github.com/flutter/flutter/issues. | |
## command | |
flutter doctor | |
## exception | |
FileSystemException: FileSystemException: Cannot open file, path = '/home/linux2/.cocoon/flutter/bin/cache/downloads/https@c@@s@@s@storage.googleapis.com@s@flutter_infra@s@flutter@s@6a724f0d3e22d41246baf3447d7ba2c9ff886765@s@android-arm-profile@s@linux-x64.zip.zip' (OS Error: File name too long, errno = 36) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hundreds extends StatefulWidget { | |
Hundreds(this.stopwatch); | |
final Stopwatch stopwatch; | |
HundredsState createState() => new HundredsState(stopwatch); | |
} | |
class HundredsState extends State<Hundreds> { | |
final Stopwatch stopwatch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new RepaintBoundary( | |
child: new SizedBox( | |
height: 72.0, | |
child: new Hundreds(stopwatch), | |
), | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Stateless widget: | |
// | |
// - no `extends StatelessWidget` | |
// - fields are `final` by default | |
// - `@override`, `Widget` return type and `BuildContext context` parameter are implied | |
widget MyApp { | |
String title; | |
build { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This build method attempts to conditionally insert a | |
// DecoratedBox widget into the widget hierarchy. Roughly | |
// speaking we want the widget tree to be like this: | |
// | |
// if (someCondition) { | |
// Container > DecoratedBox > Container | |
// } else { | |
// Container > Container | |
// } | |
build(_) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
matrix: | |
# This causes the build to complete immediately upon first failure or once | |
# required jobs are green. | |
fast_finish: true | |
# Building APK/IPA takes a long time; do not wait for them to finish. | |
allow_failures: | |
- env: JOB=APK | |
- env: JOB=IPA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
os: osx | |
language: generic | |
osx_image: xcode8.3 | |
before_script: | |
- pip install six | |
- brew update | |
- brew install --HEAD libimobiledevice | |
- brew install ideviceinstaller | |
- brew install ios-deploy | |
- git clone https://github.com/flutter/flutter.git -b alpha --depth 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
os: linux | |
language: android | |
licenses: | |
- 'android-sdk-preview-license-.+' | |
- 'android-sdk-license-.+' | |
- 'google-gdk-license-.+' | |
android: | |
components: | |
- tools | |
- platform-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'timer_page.dart'; | |
void main() { | |
debugRepaintRainbowEnabled = true; | |
runApp(new MyApp()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
os: | |
- linux | |
sudo: false | |
addons: | |
apt: | |
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18 | |
sources: | |
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version | |
packages: | |
- libstdc++6 |