From 018017c742b40f7ee943db93c7944149e134b465 Mon Sep 17 00:00:00 2001 From: Reynir Date: Fri, 30 Jul 2021 10:53:47 +0000 Subject: [PATCH 01/12] Update az_listview.dart --- lib/src/az_listview.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/az_listview.dart b/lib/src/az_listview.dart index e103ff8..5713b4f 100644 --- a/lib/src/az_listview.dart +++ b/lib/src/az_listview.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:scrollable_positioned_list/scrollable_positioned_list.dart'; +import 'package:flutter/services.dart'; import 'az_common.dart'; import 'index_bar.dart'; @@ -152,6 +153,7 @@ class _AzListViewState extends State { details.action == IndexBarDragDetails.actionUpdate) { selectTag = tag; _scrollTopIndex(tag); + HapticFeedback.lightImpact(); } } From 18505b288033dc61285aea6cd260647f0f471576 Mon Sep 17 00:00:00 2001 From: Reynir Date: Fri, 30 Jul 2021 11:07:49 +0000 Subject: [PATCH 02/12] Add option for Haptic Feedback --- lib/src/az_listview.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/src/az_listview.dart b/lib/src/az_listview.dart index 5713b4f..d3c1a1a 100644 --- a/lib/src/az_listview.dart +++ b/lib/src/az_listview.dart @@ -17,6 +17,7 @@ class AzListView extends StatefulWidget { this.itemPositionsListener, this.physics, this.padding, + this.hapticFeedback = false, this.susItemBuilder, this.susItemHeight = kSusItemHeight, this.susPosition, @@ -56,6 +57,8 @@ class AzListView extends StatefulWidget { /// The amount of space by which to inset the children. final EdgeInsets? padding; + + final bool hapticFeedback; /// Called to build suspension header. final IndexedWidgetBuilder? susItemBuilder; @@ -153,7 +156,9 @@ class _AzListViewState extends State { details.action == IndexBarDragDetails.actionUpdate) { selectTag = tag; _scrollTopIndex(tag); - HapticFeedback.lightImpact(); + if(hapticFeedback) { + HapticFeedback.lightImpact(); + } } } From f01c988181283c88a7350793cd55ad56c55fff2d Mon Sep 17 00:00:00 2001 From: Reynir Date: Fri, 30 Jul 2021 11:12:09 +0000 Subject: [PATCH 03/12] Update az_listview.dart --- lib/src/az_listview.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/az_listview.dart b/lib/src/az_listview.dart index d3c1a1a..71c4e87 100644 --- a/lib/src/az_listview.dart +++ b/lib/src/az_listview.dart @@ -156,7 +156,7 @@ class _AzListViewState extends State { details.action == IndexBarDragDetails.actionUpdate) { selectTag = tag; _scrollTopIndex(tag); - if(hapticFeedback) { + if(widget.hapticFeedback) { HapticFeedback.lightImpact(); } } From ec108dfa456f88a30e7cfff5a679e96ebaf87092 Mon Sep 17 00:00:00 2001 From: Reynir Date: Mon, 27 Dec 2021 16:10:58 +0100 Subject: [PATCH 04/12] Update index_bar.dart --- lib/src/index_bar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/index_bar.dart b/lib/src/index_bar.dart index dfdbd35..a3b2e6c 100644 --- a/lib/src/index_bar.dart +++ b/lib/src/index_bar.dart @@ -454,7 +454,7 @@ class _IndexBarState extends State { width: widget.width, height: widget.height, margin: widget.margin, - alignment: Alignment.center, + alignment: Alignment.topCenter, child: BaseIndexBar( data: widget.data, width: widget.width, From 0d1825de0d9027d0c1d2d6fd9a549c5cba4e36ed Mon Sep 17 00:00:00 2001 From: Reynir Hauksson Date: Tue, 28 Dec 2021 10:25:17 +0100 Subject: [PATCH 05/12] Align content in index bar --- lib/src/az_listview.dart | 9 +++++++-- lib/src/index_bar.dart | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/src/az_listview.dart b/lib/src/az_listview.dart index 71c4e87..1e8264f 100644 --- a/lib/src/az_listview.dart +++ b/lib/src/az_listview.dart @@ -57,7 +57,7 @@ class AzListView extends StatefulWidget { /// The amount of space by which to inset the children. final EdgeInsets? padding; - + final bool hapticFeedback; /// Called to build suspension header. @@ -87,6 +87,9 @@ class AzListView extends StatefulWidget { /// IndexBar alignment. final AlignmentGeometry indexBarAlignment; + /// contentIndexBar alignment. + final AlignmentGeometry? contentIndexBarAlignment; + /// IndexBar margin. final EdgeInsetsGeometry? indexBarMargin; @@ -156,7 +159,7 @@ class _AzListViewState extends State { details.action == IndexBarDragDetails.actionUpdate) { selectTag = tag; _scrollTopIndex(tag); - if(widget.hapticFeedback) { + if (widget.hapticFeedback) { HapticFeedback.lightImpact(); } } @@ -206,6 +209,8 @@ class _AzListViewState extends State { itemHeight: widget.indexBarItemHeight, margin: widget.indexBarMargin, indexHintBuilder: widget.indexHintBuilder, + contentIndexBarAlignment: + widget.contentIndexBarAlignment ?? Alignment.topCenter, indexBarDragListener: dragListener, options: widget.indexBarOptions, controller: indexBarController, diff --git a/lib/src/index_bar.dart b/lib/src/index_bar.dart index a3b2e6c..74fc0e0 100644 --- a/lib/src/index_bar.dart +++ b/lib/src/index_bar.dart @@ -252,6 +252,8 @@ class IndexBar extends StatefulWidget { /// IndexBar drag listener. final IndexBarDragNotifier? indexBarDragNotifier; + final AlignmentGeometry contentIndexBarAlignment; + /// IndexBar options. final IndexBarOptions options; @@ -454,7 +456,7 @@ class _IndexBarState extends State { width: widget.width, height: widget.height, margin: widget.margin, - alignment: Alignment.topCenter, + alignment: widget.contentIndexBarAlignment, child: BaseIndexBar( data: widget.data, width: widget.width, From 7e4caa3f9ef0afc1b6a68d6c9acdde8ec14ca187 Mon Sep 17 00:00:00 2001 From: Reynir Hauksson Date: Tue, 28 Dec 2021 10:36:03 +0100 Subject: [PATCH 06/12] Fix build error --- lib/src/az_listview.dart | 6 +++--- lib/src/index_bar.dart | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/az_listview.dart b/lib/src/az_listview.dart index 1e8264f..f5256f3 100644 --- a/lib/src/az_listview.dart +++ b/lib/src/az_listview.dart @@ -25,6 +25,7 @@ class AzListView extends StatefulWidget { this.indexBarData = kIndexBarData, this.indexBarWidth = kIndexBarWidth, this.indexBarHeight, + this.contentIndexBarAlignment = Alignment.topCenter, this.indexBarItemHeight = kIndexBarItemHeight, this.indexBarAlignment = Alignment.centerRight, this.indexBarMargin, @@ -88,7 +89,7 @@ class AzListView extends StatefulWidget { final AlignmentGeometry indexBarAlignment; /// contentIndexBar alignment. - final AlignmentGeometry? contentIndexBarAlignment; + final AlignmentGeometry contentIndexBarAlignment; /// IndexBar margin. final EdgeInsetsGeometry? indexBarMargin; @@ -209,8 +210,7 @@ class _AzListViewState extends State { itemHeight: widget.indexBarItemHeight, margin: widget.indexBarMargin, indexHintBuilder: widget.indexHintBuilder, - contentIndexBarAlignment: - widget.contentIndexBarAlignment ?? Alignment.topCenter, + contentIndexBarAlignment: widget.contentIndexBarAlignment, indexBarDragListener: dragListener, options: widget.indexBarOptions, controller: indexBarController, diff --git a/lib/src/index_bar.dart b/lib/src/index_bar.dart index 74fc0e0..fd71504 100644 --- a/lib/src/index_bar.dart +++ b/lib/src/index_bar.dart @@ -225,6 +225,7 @@ class IndexBar extends StatefulWidget { this.itemHeight = kIndexBarItemHeight, this.margin, this.indexHintBuilder, + this.contentIndexBarAlignment, IndexBarDragListener? indexBarDragListener, this.options = const IndexBarOptions(), this.controller, From 79008ff32e0558cf4addcf417ee0a3d58fc5b7cd Mon Sep 17 00:00:00 2001 From: Reynir Hauksson Date: Tue, 28 Dec 2021 10:39:54 +0100 Subject: [PATCH 07/12] Fix build error --- lib/src/index_bar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/index_bar.dart b/lib/src/index_bar.dart index fd71504..01fbdc4 100644 --- a/lib/src/index_bar.dart +++ b/lib/src/index_bar.dart @@ -225,7 +225,7 @@ class IndexBar extends StatefulWidget { this.itemHeight = kIndexBarItemHeight, this.margin, this.indexHintBuilder, - this.contentIndexBarAlignment, + this.contentIndexBarAlignment = Alignment.topCenter, IndexBarDragListener? indexBarDragListener, this.options = const IndexBarOptions(), this.controller, From 639cc0f8ad3aa7ce7bfb03780aea8964bd233dbd Mon Sep 17 00:00:00 2001 From: Reynir Hauksson Date: Thu, 30 Dec 2021 10:28:15 +0100 Subject: [PATCH 08/12] Update dependencies and remove unused code --- example/lib/common/models.dart | 7 --- example/lib/ui/car_models_page.dart | 2 - example/pubspec.lock | 93 ++++++++++++++++------------- lib/src/index_bar.dart | 8 +-- lib/src/suspension_view.dart | 2 +- pubspec.lock | 65 +++++++++++--------- pubspec.yaml | 6 +- 7 files changed, 93 insertions(+), 90 deletions(-) diff --git a/example/lib/common/models.dart b/example/lib/common/models.dart index 59c3e16..17baf57 100644 --- a/example/lib/common/models.dart +++ b/example/lib/common/models.dart @@ -88,13 +88,6 @@ class Languages extends GithubLanguage with ISuspensionBean { @override Map toJson() { final Map map = super.toJson(); - void addIfNonNull(String fieldName, dynamic value) { - if (value != null) { - map[fieldName] = value; - } - } - -// addIfNonNull('tagIndex', tagIndex); return map; } diff --git a/example/lib/ui/car_models_page.dart b/example/lib/ui/car_models_page.dart index 2f902b2..d3b27bd 100644 --- a/example/lib/ui/car_models_page.dart +++ b/example/lib/ui/car_models_page.dart @@ -1,5 +1,3 @@ -import 'dart:developer'; - import 'package:azlistview/azlistview.dart'; import 'package:azlistview_example/common/index.dart'; import 'package:flutter/material.dart'; diff --git a/example/pubspec.lock b/example/pubspec.lock index d31e68a..e7d2164 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -5,91 +5,91 @@ packages: dependency: transitive description: name: async - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" + version: "2.8.2" azlistview: dependency: "direct main" description: path: ".." relative: true source: path - version: "2.0.0-nullsafety.0" + version: "2.1.0" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.0" characters: dependency: transitive description: name: characters - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0" charcode: dependency: transitive description: name: charcode - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" clock: dependency: transitive description: name: clock - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.1.0" collection: dependency: transitive description: name: collection - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.15.0" common_utils: dependency: "direct main" description: name: common_utils - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "2.0.2" convert: dependency: transitive description: name: convert - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "3.0.0" + version: "3.0.1" crypto: dependency: transitive description: name: crypto - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "3.0.0" + version: "3.0.1" cupertino_icons: dependency: "direct main" description: name: cupertino_icons - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.1.3" decimal: dependency: transitive description: name: decimal - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "2.1.0" fake_async: dependency: transitive description: name: fake_async - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.2.0" flutter: @@ -115,44 +115,51 @@ packages: dependency: "direct main" description: name: lpinyin - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "2.0.3" matcher: dependency: transitive description: name: matcher - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.11" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + url: "https://pub.dartlang.org" source: hosted - version: "0.12.10" + version: "0.1.2" meta: dependency: transitive description: name: meta - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" path: dependency: transitive description: name: path - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.8.0" rational: dependency: transitive description: name: rational - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "2.0.0" scrollable_positioned_list: dependency: transitive description: name: scrollable_positioned_list - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "0.2.0-nullsafety.0" + version: "0.2.3" sky_engine: dependency: transitive description: flutter @@ -162,58 +169,58 @@ packages: dependency: transitive description: name: source_span - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.1.0" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.2.0" test_api: dependency: transitive description: name: test_api - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "0.2.19" + version: "0.4.8" typed_data: dependency: transitive description: name: typed_data - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.3.0" vector_math: dependency: transitive description: name: vector_math - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.1" sdks: - dart: ">=2.12.0 <3.0.0" + dart: ">=2.15.0 <3.0.0" flutter: ">=1.17.0" diff --git a/lib/src/index_bar.dart b/lib/src/index_bar.dart index 01fbdc4..fdd5b67 100644 --- a/lib/src/index_bar.dart +++ b/lib/src/index_bar.dart @@ -1,5 +1,3 @@ -import 'dart:ui'; - import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'dart:math' as math; @@ -277,7 +275,7 @@ class _IndexBarState extends State { @override void initState() { super.initState(); - widget.indexBarDragNotifier?.dragDetails?.addListener(_valueChanged); + widget.indexBarDragNotifier?.dragDetails.addListener(_valueChanged); widget.controller?._attach(this); } @@ -316,7 +314,7 @@ class _IndexBarState extends State { void dispose() { widget.controller?._detach(); _removeOverlay(); - widget.indexBarDragNotifier?.dragDetails?.removeListener(_valueChanged); + widget.indexBarDragNotifier?.dragDetails.removeListener(_valueChanged); super.dispose(); } @@ -514,7 +512,7 @@ class _BaseIndexBarState extends State { /// trigger drag event. _triggerDragEvent(int action) { - widget.indexBarDragNotifier?.dragDetails?.value = IndexBarDragDetails( + widget.indexBarDragNotifier?.dragDetails.value = IndexBarDragDetails( action: action, index: lastIndex, tag: widget.data[lastIndex], diff --git a/lib/src/suspension_view.dart b/lib/src/suspension_view.dart index b1d0515..b7b5708 100644 --- a/lib/src/suspension_view.dart +++ b/lib/src/suspension_view.dart @@ -112,7 +112,7 @@ class _SuspensionViewState extends State { ISuspensionBean bean = widget.data[next]; if (bean.isShowSuspension) { double height = - context.findRenderObject()?.paintBounds?.height ?? 0; + context.findRenderObject()?.paintBounds.height ?? 0; double topTemp = itemPosition.itemTrailingEdge * height; top = math.min(widget.susItemHeight, topTemp) - widget.susItemHeight; diff --git a/pubspec.lock b/pubspec.lock index 1253a1d..ede3776 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,49 +5,49 @@ packages: dependency: transitive description: name: async - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" + version: "2.8.2" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.0" characters: dependency: transitive description: name: characters - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0" charcode: dependency: transitive description: name: charcode - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" clock: dependency: transitive description: name: clock - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.1.0" collection: dependency: transitive description: name: collection - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.15.0" fake_async: dependency: transitive description: name: fake_async - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.2.0" flutter: @@ -64,30 +64,37 @@ packages: dependency: transitive description: name: matcher - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "0.12.10" + version: "0.12.11" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.2" meta: dependency: transitive description: name: meta - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" path: dependency: transitive description: name: path - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.8.0" scrollable_positioned_list: dependency: "direct main" description: name: scrollable_positioned_list - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "0.2.0-nullsafety.0" + version: "0.2.3" sky_engine: dependency: transitive description: flutter @@ -97,58 +104,58 @@ packages: dependency: transitive description: name: source_span - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.1.0" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.2.0" test_api: dependency: transitive description: name: test_api - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "0.2.19" + version: "0.4.8" typed_data: dependency: transitive description: name: typed_data - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.3.0" vector_math: dependency: transitive description: name: vector_math - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.1" sdks: - dart: ">=2.12.0-259.9.beta <3.0.0" + dart: ">=2.15.0 <3.0.0" flutter: ">=1.13.8" diff --git a/pubspec.yaml b/pubspec.yaml index 660847f..0442694 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,16 +1,16 @@ name: azlistview description: A Flutter sticky headers & index ListView. IndexBar. such as citylist, contactlist. index and hover effect. -version: 2.0.0-nullsafety.0 +version: 2.1.0 homepage: https://github.com/flutterchina/azlistview environment: - sdk: ">=2.12.0-259.9.beta <3.0.0" + sdk: ">=2.15.0 <3.0.0" dependencies: flutter: sdk: flutter # https://pub.flutter-io.cn/packages/scrollable_positioned_list - scrollable_positioned_list: ^0.2.0-nullsafety.0 + scrollable_positioned_list: ^0.2.3 dev_dependencies: flutter_test: From a5c6a856877777ff9c2083f504d70513f2507ba4 Mon Sep 17 00:00:00 2001 From: Reynir Date: Wed, 2 Feb 2022 11:22:03 +0000 Subject: [PATCH 09/12] Wrap index bar content to prevent overflow --- lib/src/index_bar.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/index_bar.dart b/lib/src/index_bar.dart index fdd5b67..16476c5 100644 --- a/lib/src/index_bar.dart +++ b/lib/src/index_bar.dart @@ -573,8 +573,8 @@ class _BaseIndexBarState extends State { //_triggerDragEvent(IndexBarDragDetails.actionUp); }, behavior: HitTestBehavior.translucent, - child: Column( - mainAxisSize: MainAxisSize.min, + child: Wrap( + clipBehavior: Clip.hardEdge, children: children, ), ); From 1cacf67d564cdbe008bff8f125b1a3cde846ee78 Mon Sep 17 00:00:00 2001 From: Reynir Hauksson Date: Mon, 21 Feb 2022 16:37:45 +0000 Subject: [PATCH 10/12] Remove duplicated identifier --- lib/src/az_listview.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/az_listview.dart b/lib/src/az_listview.dart index 5ea21b7..481f71f 100644 --- a/lib/src/az_listview.dart +++ b/lib/src/az_listview.dart @@ -17,7 +17,6 @@ class AzListView extends StatefulWidget { this.itemPositionsListener, this.physics, this.padding, - this.hapticFeedback = false, this.susItemBuilder, this.susItemHeight = kSusItemHeight, this.susPosition, From a1862c4b51a5aa2ac2e0d612299a4aecaee1a1e9 Mon Sep 17 00:00:00 2001 From: Reynir Hauksson Date: Mon, 21 Feb 2022 16:42:28 +0000 Subject: [PATCH 11/12] Hapticfeedback defined twice - remove --- lib/src/az_listview.dart | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/src/az_listview.dart b/lib/src/az_listview.dart index 481f71f..fa1388f 100644 --- a/lib/src/az_listview.dart +++ b/lib/src/az_listview.dart @@ -59,8 +59,6 @@ class AzListView extends StatefulWidget { /// The amount of space by which to inset the children. final EdgeInsets? padding; - final bool hapticFeedback; - /// Called to build suspension header. final IndexedWidgetBuilder? susItemBuilder; From 51f1c055a8cebc18e92d322f3695537b893f6eba Mon Sep 17 00:00:00 2001 From: Reynir Hauksson Date: Mon, 13 Jun 2022 09:34:01 +0000 Subject: [PATCH 12/12] Update scrollable positioned list --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 0442694..35dd61c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: flutter: sdk: flutter # https://pub.flutter-io.cn/packages/scrollable_positioned_list - scrollable_positioned_list: ^0.2.3 + scrollable_positioned_list: ^0.3.2 dev_dependencies: flutter_test: