From 92152ea135e8e5a52c60bcf8263626031ac87e51 Mon Sep 17 00:00:00 2001 From: zhang <494089941@qq.com> Date: Mon, 7 Dec 2020 15:07:21 +0800 Subject: [PATCH 1/6] update separate extension --- lib/ansu_ui.dart | 1 + lib/extension/separate_extension.dart | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/ansu_ui.dart b/lib/ansu_ui.dart index 88de35d..964f6e7 100644 --- a/lib/ansu_ui.dart +++ b/lib/ansu_ui.dart @@ -38,3 +38,4 @@ export 'extension/separate_extension.dart'; //`BOTTOM` is external lib export 'package:flutter_screenutil/flutter_screenutil.dart'; +export 'package:flutter_easyrefresh/easy_refresh.dart'; diff --git a/lib/extension/separate_extension.dart b/lib/extension/separate_extension.dart index 71caca5..6af2385 100644 --- a/lib/extension/separate_extension.dart +++ b/lib/extension/separate_extension.dart @@ -1,8 +1,6 @@ import 'package:ansu_ui/ansu_ui.dart'; -import 'package:flutter/material.dart'; - -extension SeparateExt on List { - List sep([Widget separate]) { +extension SeparateExt on List { + List sep([T separate]) { return List.generate(this.length * 2 - 1, (index) { if (index.isEven) return this[index ~/ 2]; From 0c9ee831196cbb57f1f96109f9dd8ce6bb2f37e2 Mon Sep 17 00:00:00 2001 From: zhang <494089941@qq.com> Date: Mon, 7 Dec 2020 15:13:13 +0800 Subject: [PATCH 2/6] update separate --- lib/extension/separate_extension.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extension/separate_extension.dart b/lib/extension/separate_extension.dart index 6af2385..0a77771 100644 --- a/lib/extension/separate_extension.dart +++ b/lib/extension/separate_extension.dart @@ -1,5 +1,5 @@ import 'package:ansu_ui/ansu_ui.dart'; -extension SeparateExt on List { +extension SeparateExt on List { List sep([T separate]) { return List.generate(this.length * 2 - 1, (index) { if (index.isEven) 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 3/6] 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]; From f6d02a1b95953038b3c44f141ec96b8aa3cb0398 Mon Sep 17 00:00:00 2001 From: zhang <494089941@qq.com> Date: Mon, 7 Dec 2020 15:18:54 +0800 Subject: [PATCH 4/6] update separate --- lib/extension/separate_extension.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/extension/separate_extension.dart b/lib/extension/separate_extension.dart index efdc710..7933717 100644 --- a/lib/extension/separate_extension.dart +++ b/lib/extension/separate_extension.dart @@ -1,7 +1,7 @@ import 'package:ansu_ui/ansu_ui.dart'; import 'package:flutter/material.dart'; -extension SeparateExt on List { - List sep([Widget separate]) { +extension SeparateExt on List { + List sep({T separate}) { return List.generate(this.length * 2 - 1, (index) { if (index.isEven) return this[index ~/ 2]; From 232ed48ae94f6d8581016184dbfe4028e747c90d Mon Sep 17 00:00:00 2001 From: zhang <494089941@qq.com> Date: Mon, 7 Dec 2020 15:28:57 +0800 Subject: [PATCH 5/6] update separate --- lib/extension/separate_extension.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/extension/separate_extension.dart b/lib/extension/separate_extension.dart index 7933717..6901d2b 100644 --- a/lib/extension/separate_extension.dart +++ b/lib/extension/separate_extension.dart @@ -1,7 +1,7 @@ import 'package:ansu_ui/ansu_ui.dart'; -import 'package:flutter/material.dart'; -extension SeparateExt on List { - List sep({T separate}) { + +extension SeparateExt on List { + List sep({dynamic separate}) { return List.generate(this.length * 2 - 1, (index) { if (index.isEven) return this[index ~/ 2]; 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 6/6] 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];