|
|
@ -1,6 +1,7 @@
|
|
|
|
import 'package:ansu_ui/ansu_ui.dart';
|
|
|
|
import 'package:ansu_ui/ansu_ui.dart';
|
|
|
|
extension SeparateExt<T> on List<T> {
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
List<T> sep([T separate]) {
|
|
|
|
extension SeparateExt on List {
|
|
|
|
|
|
|
|
List<Widget> sep([Widget separate]) {
|
|
|
|
return List.generate(this.length * 2 - 1, (index) {
|
|
|
|
return List.generate(this.length * 2 - 1, (index) {
|
|
|
|
if (index.isEven)
|
|
|
|
if (index.isEven)
|
|
|
|
return this[index ~/ 2];
|
|
|
|
return this[index ~/ 2];
|
|
|
|