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

outdated

An extended flutter listView to support sections like iOS UITableView

flutter_section_list_view #

A flutter list view which supports sections like iOS UITableView with no overhead

Usage #

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

Getting Started #

Import this class #

import 'flutter_section_list_view/flutter_section_list_view.dart';

Add flutter_section_list_view Widget #

After importing this plugin to your project, you can simply use it as a normal widget


FlutterSectionListView(
        numberOfSection: 4,
        numberOfRowsInSection: (section) {
          return section * 3 + 1;
        },
        sectionWidget: (section) {
          return Container(child: Padding(
            padding: const EdgeInsets.all(8),
            child: Text('Section $section'),
          ), color: Colors.grey,);
        },
        rowWidget: (section, row) {
          return Container(
            child: Padding(
              padding: EdgeInsets.all(8),
              child: Text('Row $section - $row'),
            ),
          );
        },
      )

6
likes
40
pub points
58%
popularity

Publisher

unverified uploader

An extended flutter listView to support sections like iOS UITableView

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_section_list_view