mirror of
https://github.com/krawieck/lemmur/
synced 2024-12-16 18:39:21 +01:00
11 lines
279 B
Dart
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();
|