Skip to content

Instantly share code, notes, and snippets.

View georgeherby's full-sized avatar

George Herbert georgeherby

View GitHub Profile
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@georgeherby
georgeherby / main.dart
Last active September 24, 2019 17:49
Get a Json from a list of Objects in Dart
class PaymentSlipes {
String name;
String personaId;
PaymentSlipes({this.name, this.personaId});
Map<String, dynamic> toJson() => {'name': name, 'personaId': personaId};
}
List encondeToJson(List<PaymentSlipes> list) {

Generic

Shortcut Expanded Description Flutter Docs
animatedBldr Animated Builder Creates an Animated Builder. The child widget is passed to the builder View Docs
aspectRatio AspectRatio Creates an AspectRatio View Docs
build Build Method Describes the part of the user interface represented by the widget.
column Column Creates a Column Widget View Docs
container Container Creates a Container Widget View Docs
customClipper Custom Clipper Used for creating custom shapes View Docs
customPainter Custom Painter Used for creating custom paint [View Docs](https://api.flutter.dev/flutter/r