You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
330 B
14 lines
330 B
4 years ago
|
import 'package:ansu_ui/ansu_ui.dart';
|
||
4 years ago
|
import 'package:flutter/material.dart';
|
||
4 years ago
|
|
||
|
extension SeparateExt on List {
|
||
4 years ago
|
List<Widget> sepWidget({Widget separate}) {
|
||
4 years ago
|
return List.generate(this.length * 2 - 1, (index) {
|
||
|
if (index.isEven)
|
||
|
return this[index ~/ 2];
|
||
|
else
|
||
|
return separate ?? 10.wb;
|
||
|
});
|
||
|
}
|
||
|
}
|