Skip to content

Instantly share code, notes, and snippets.

void paintTronOnCanvas({
@required Canvas canvas,
@required double width,
@required double height,
@required double lineLength,
@required List<TronRider> riders,
@required Color lineColor,
@required Color color,
}) {
final grad = Paint()
// First example, this is what is currently the correct way to do stuff in flutter
class RadialMenu extends StatefulWidget {
final List<RadialMenuButton> children;
const RadialMenu({Key key, this.children}) : super(key: key);
@override
_RadialMenuState createState() => _RadialMenuState();
}
class Data {
a?: string
b?: number
static fromJson(json: Record<string, any>): Data {
return {a: json.a, b: json.b}
}
}
class Data {
/// This class holds all the data from the API
final String a;
final int b;
Data.fromJson(Map<String, dynamic> data) : a = data['a'], b = data['b'];
}
class UIProperty {
/// This class is used inside a widget in order to display a value with a label and later be able to update it

Keybase proof

I hereby claim:

  • I am maistho on github.
  • I am maistho (https://keybase.io/maistho) on keybase.
  • I have a public key whose fingerprint is 2D89 7818 CE8B 7DF1 1561 2A74 E7ED 08A3 2BE8 4D49

To claim this, I am signing this object:

# initialization file (not found)
pkgname=gsutil
pkgver=v3.42
pkgrel=1
pkgdesc="A command line tool for interacting with cloud storage services."
arch=('any')
url="https://github.com/GoogleCloudPlatform/gsutil"
license=('APACHE')
depends=('python2' 'python2-socksipy-branch>=1.01' 'python2-crcmod>=1.7' 'python2-pyopenssl>=0.13' 'python2-google-api-python-client>=1.1' 'python2-boto>=2.9' 'python2-httplib2>=0.8' 'python2-gflags>=2.0')
makedepends=('python2-distribute')
source=('http://commondatastorage.googleapis.com/pub/gsutil.tar.gz')