From 71d1ad25b18d7b84f8944b19375ac03240cae0fc Mon Sep 17 00:00:00 2001 From: zhang <494089941@qq.com> Date: Mon, 7 Dec 2020 15:37:08 +0800 Subject: [PATCH] update separate --- lib/extension/separate_extension.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/extension/separate_extension.dart b/lib/extension/separate_extension.dart index 6901d2b..9a1ed27 100644 --- a/lib/extension/separate_extension.dart +++ b/lib/extension/separate_extension.dart @@ -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 sepWidget({Widget separate}) { return List.generate(this.length * 2 - 1, (index) { if (index.isEven) return this[index ~/ 2];