From 421a98e5b72bbe953b99902921826275c5cd23f0 Mon Sep 17 00:00:00 2001 From: zhang <494089941@qq.com> Date: Mon, 7 Dec 2020 15:16:31 +0800 Subject: [PATCH] update separate --- lib/extension/separate_extension.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/extension/separate_extension.dart b/lib/extension/separate_extension.dart index 0a77771..efdc710 100644 --- a/lib/extension/separate_extension.dart +++ b/lib/extension/separate_extension.dart @@ -1,6 +1,7 @@ import 'package:ansu_ui/ansu_ui.dart'; -extension SeparateExt on List { - List sep([T separate]) { +import 'package:flutter/material.dart'; +extension SeparateExt on List { + List sep([Widget separate]) { return List.generate(this.length * 2 - 1, (index) { if (index.isEven) return this[index ~/ 2];