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

A Flutter plugin for an Alphabet slider.

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

void main() => runApp(
      const MaterialApp(
        home: Material(
          child: AlphabetSlider(onLetterSelect: _onLetterSelect),
        ),
      ),
    );

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

See the example app for more complex examples.