1
0
mirror of https://github.com/krawieck/lemmur/ synced 2024-12-16 18:39:21 +01:00
lemmur-app-android/lib/util/spaced.dart
2020-09-30 17:05:00 +00:00

11 lines
279 B
Dart

import 'package:flutter/cupertino.dart';
/// Creates gaps between given widgets
List<Widget> spaced(double gap, Iterable<Widget> children) => children
.expand((item) sync* {
yield SizedBox(width: gap, height: gap);
yield item;
})
.skip(1)
.toList();