Skip to content

Instantly share code, notes, and snippets.

Anders Thorhauge Sandholm anders-sandholm

Block or report user

Report or block anders-sandholm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sorted.dart
void main() {
List<int> prices = ['99', '27', '10000', '20000000'];
// Sort in place from smallest to largest
print('Lowest price is ${prices[0]}!');
anders-sandholm / widget.dart
Last active Feb 28, 2018
Clean Dart 2 Widgets
View widget.dart
// Before Dart 2
Widget build(BuildContext context) {
return new Container(
height: 56.0,
padding: const EdgeInsets.symmetric(horizontal: 8.0),
decoration: new BoxDecoration(color:[500]),
child: new Row(
You can’t perform that action at this time.