alphabet_list_scroll_view 1.0.5

Alphabet List Scroll View #

A customizable listview with A-Z side scrollbar to fast jump to the item of the selected character. Quick scroll through list via dragging through alphabets.

API #

nametypedefaultdescription
strListList-List of Strings
itemBuilderitemBuilder(context, index)-itemBuilder similar to itemBuilder in ListView.builder
highlightTextStyleboolfalsehighlight the focused pin box.
normalTextStyleColorColors.blackSet color of the focused pin box.
showPreviewbooltrueshow preview on screen
keyboardUsagebooltrueThe alphabet list will be wrapped in scrollview.
indexedHeightdouble Function(int)query the height of widget with index
headerWidgetListListheaders

AlphabetScrollListHeader #

nametypedefaultdescription
widgetListList[]
iconIconIcon shows in the side alphabet list and the preview
indexedHeaderHeightdouble Function(int)query the height of header with index
drawing
drawing

1.0.5 #

  • Fixed touch event not register in the middle that is caused by the preview.

1.0.4 #

  • Shrink the gesturedetector to not interfere with other widgets such as slidables

1.0.3 #

  • Fixed screen and side height

1.0.2 #

  • Fixed max range errors

1.0.1+3 #

  • Fixed out of range errors

1.0.1+2 #

  • Fixed super

1.0.1 #

  • Added headers

1.0.0 #

  • Massively improve performance
  • Removed unnecessary dependencies

0.1.5 #

  • Formatted code
  • Fixed preview
  • Update Documentation

0.1.0 #

  • Added a few options such as: strList, itemBuilder, highlightTextStyle , normalTextStyle, showPreview

0.0.1 #

  • Added alphabet scroll. Need to implement more customization options.

example/README.md

alphabet_list_scroll_view_example #

Demonstrates how to use the alphabet_list_scroll_view plugin.

API #

nametypedefaultdescription
strListList-List of Strings
itemBuilderitemBuilder(context, index)-itemBuilder similar to itemBuilder in ListView.builder
highlightTextStyleboolfalsehighlight the focused pin box.
normalTextStyleColorColors.blackSet color of the focused pin box.
showPreviewboolColors.blackSet color of the focused pin box.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  alphabet_list_scroll_view: ^1.0.5

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:alphabet_list_scroll_view/alphabet_list_scroll_view.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
84
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
90
Learn more about scoring.

We analyzed this package on Feb 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (rxdart).

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2 <3.0.0
flutter 0.0.0
rxdart ^0.22.3 0.22.6 0.23.1
vibration ^1.2.1 1.2.4
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test