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';

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.