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

outdated

Flutter package for grouped list view

GroupListView package for Flutter. (Developers Preview) #

A List with Headers like iOS UITableView section.

Getting Started #

Add the package to your pubspec.yaml:

group_list_view: ^1.0.0

In your dart file, import the library:

import 'package:group_list_view/group_list_view.dart';

Instead of using a ListView create a GroupListView Widget:

 GroupListView(
   sectionsCount: _elements.keys.toList().length,
   countOfItemInSection: (int section) {
     return _elements.values.toList()[section].length;
   },
   itemBuilder: _itemBuilder,
   groupHeaderBuilder: (BuildContext context, int section) {
     return Padding(
       padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 8),
       child: Text(
         _elements.keys.toList()[section],
         style: TextStyle(fontSize: 18, fontWeight: FontWeight.w600),
       ),
     );
   },
 ),
159
likes
0
pub points
95%
popularity

Publisher

unverified uploader

Flutter package for grouped list view

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on group_list_view