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'; | |
class DemoApp extends StatelessWidget { | |
Widget build(BuildContext context) => new Scaffold(body: DashboardWidget(() { | |
return [ | |
Tab( | |
text: "Goodbye!", | |
) | |
]; | |
})); |
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'; | |
class SignaturePainter extends CustomPainter { | |
SignaturePainter(this.points); | |
final List<Offset> points; | |
void paint(Canvas canvas, Size size) { | |
Paint paint = new Paint() | |
..color = Colors.black |
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
android.applicationVariants.all { variant -> | |
String propsName = "../local/${variant.baseName}.properties" | |
Properties props = new Properties() | |
props.load(new FileInputStream(file(propsName))) | |
println "Building \"${variant.baseName}\" tag..." | |
props.stringPropertyNames().forEach { | |
variant.resValue("string", it, props[it]) | |
} |