update separate

null_safety
张萌 4 years ago
parent 232ed48ae9
commit 71d1ad25b1

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

Loading…
Cancel
Save