AlphabetScrollView class
Constructors
-
AlphabetScrollView({Key? key, required List<AlphaModel> list, LetterAlignment alignment = LetterAlignment.right, bool isAlphabetsFiltered = true, Widget overlayWidget(String)?, required TextStyle selectedTextStyle, required TextStyle unselectedTextStyle, double itemExtent = 40, required Widget itemBuilder(BuildContext, int, String)})
-
Properties
-
alignment
→ LetterAlignment
-
Alignment for the Alphabet List
can be aligned on either left/right side
of the screen
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isAlphabetsFiltered
→ bool
-
defaults to
true
if specified as false
all alphabets will be shown regardless of
whether the item in the list exists starting with
that alphabet.
final
-
itemBuilder
↔ Widget Function(BuildContext, int, String)
-
The itemBuilder must return a non-null widget and the third paramter id specifies
the string mapped to this widget from the
[list]
passed.
getter/setter pair
-
itemExtent
→ double
-
itemExtent
specifies the max height of the widget returned by
itemBuilder if not specified defaults to 40.0
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
list
→ List<AlphaModel>
-
List of Items should be non Empty
and you must map your
final
-
overlayWidget
→ (Widget Function(String)?)
-
Widget to show beside the selected alphabet
if not specified it will be hidden.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedTextStyle
→ TextStyle
-
Text styling for the selected alphabet by which
we can customize the font color, weight, size etc.
final
-
unselectedTextStyle
→ TextStyle
-
Text styling for the unselected alphabet by which
we can customize the font color, weight, size etc.
final