Last active
October 21, 2015 00:20
-
-
Save collinjackson/560476b6a7aad3acf58e to your computer and use it in GitHub Desktop.
Perf issue on OnePlus+; Android One doesn't do the clip oval at all
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
// Copy this over main.dart in Stocks | |
// Build app: | |
// adb uninstall org.domokit.stocks; ninja -C out/android_Release/; adb install -r out/android_Release/apks/Stocks.apk | |
// Get trace: | |
// ninja -C out/android_Release/; adb install -r out/android_Debug/apks/Stocks.apk; mkdir tmp; rm tmp/*; adb shell run-as org.domokit.stocks chmod -R 0777 /data/data/org.domokit.stocks/app_sky_shell; cd tmp; adb pull /data/data/org.domokit.stocks/app_sky_shell; cd ..; ~/Downloads/debugger.app/Contents/MacOS/debugger tmp | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp( | |
new MaterialApp( | |
title: "Flutter Demo", | |
routes: { | |
'/': (RouteArguments args) => new FlutterDemo() | |
} | |
) | |
); | |
} | |
class FlutterDemo extends StatelessComponent { | |
Widget build(BuildContext context) { | |
return new Scaffold( | |
toolBar: new StatisticsOverlay( | |
optionsMask: 1 << StatisticsOption.displayRasterizerStatistics.index | | |
1 << StatisticsOption.displayEngineStatistics.index, | |
rasterizerThreshold: 1 | |
), | |
body: new Block( | |
[ | |
new ClipOval(child: new Container(height: 200.0, decoration: new BoxDecoration(backgroundColor: const Color(0xFF00FF00)))), | |
new Container(child: new Container(height: 1000.0, decoration: new BoxDecoration(backgroundColor: const Color(0xFFFFFF00)))), | |
] | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment