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

A Flutter plugin for an Alphabet slider, commonly used in phone contact listing pages.

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.

14
likes
150
pub points
68%
popularity

Publisher

verified publishersabarinath-m.space

A Flutter plugin for an Alphabet slider, commonly used in phone contact listing pages.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on alphabet_slider