alphabet_slider 1.0.1 copy "alphabet_slider: ^1.0.1" to clipboard
alphabet_slider: ^1.0.1 copied to clipboard

A Flutter plugin for an Alphabet slider, commonly used in phone contact listing pages. This package provides a widget that lists all the alphabets vertically. Users can select an alphabet by either sl [...]

alphabet_slider #

A Flutter plugin for an Alphabet slider, commonly used in phone contact listing pages. This package provides a widget that lists all the alphabets vertically. Users can select an alphabet by either sliding on top of the list or clicking on an alphabet.

Usage #

To use this plugin, add alphabet_slider as a dependency in your pubspec.yaml file.

Example #

import 'package:flutter/material.dart';
import 'package:alphabet_slider/alphabet_slider.dart';
import 'package:scrollable_positioned_list/scrollable_positioned_list.dart';

Stack(
  alignment: Alignment.centerRight,
  children: [
    ListView.builder(
      itemCount: 50,
      itemBuilder: _getScrollItemBuilder,
    ),
    AlphabetSlider(
      onLetterSelect: _onLetterSelect,
      textColor: Colors.green,
      fontSize: 12,
    )
  ],
),

void _onLetterSelect(String letter) {
// Jump to contact starting with 'letter'
}

See the example app for a complex example.

14
likes
0
pub points
70%
popularity

Publisher

verified publishersabarinath-m.space

A Flutter plugin for an Alphabet slider, commonly used in phone contact listing pages. This package provides a widget that lists all the alphabets vertically. Users can select an alphabet by either sliding on top of the list or clicking on an alphabet. Also we can pass fontSize, textColor, selectedTextColor onLetterSelect callback to the widget. Use this widget with a Stack widget and align based on your UI requirement.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on alphabet_slider