alphabet_list_view 0.1.0 copy "alphabet_list_view: ^0.1.0" to clipboard
alphabet_list_view: ^0.1.0 copied to clipboard

outdated

A ListView with sticky headers and an iOS-like clickable sidebar.

example/lib/main.dart

import 'package:alphabet_list_view_example/pages/widget_builder.dart';
import 'package:alphabet_list_view_example/pages/unicode.dart';
import 'package:alphabet_list_view_example/pages/offset.dart';
import 'package:alphabet_list_view_example/pages/default.dart';
import 'package:alphabet_list_view_example/pages/rtl.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'AlphabetListView demo',
      theme: ThemeData(primarySwatch: Colors.green),
      home: const Home(),
    );
  }
}

class Home extends StatelessWidget {
  const Home({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 5,
      child: Scaffold(
        appBar: AppBar(
          title: const Text('AlphabetListView'),
          bottom: const TabBar(
            isScrollable: true,
            tabs: [
              Tab(text: 'Default'),
              Tab(text: 'RTL'),
              Tab(text: 'WidgetBuilder'),
              Tab(text: 'Unicode'),
              Tab(text: 'Offset'),
            ],
          ),
        ),
        body: SafeArea(
          child: TabBarView(
            physics: const NeverScrollableScrollPhysics(),
            children: [
              ExampleDefault(),
              ExampleRTL(),
              ExampleWidgetBuilder(),
              ExampleUnicode(),
              ExampleOffset(),
            ],
          ),
        ),
        bottomNavigationBar: BottomAppBar(
          child: const SizedBox.shrink(),
          color: Theme.of(context).colorScheme.primary,
        ),
      ),
    );
  }
}
42
likes
0
pub points
90%
popularity

Publisher

verified publishercosee.biz

A ListView with sticky headers and an iOS-like clickable sidebar.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_sticky_header

More

Packages that depend on alphabet_list_view