sticky_header_list 1.0.6

  • Readme
  • Changelog
  • Installing
  • 71

sticky_header_list #

Sticky Header list for Flutter.

Usage #

You need to wrap your widgets with StickyListRow. Use HeaderRow for headers that sticks and RegularRow for regular rows that scroll normally.

Height is optional, but if you include it, it will avoid usage of GlobalKeys to determine height:

new StickyRow(child: yourWidget, height: 20.0)

Usage is similar to ListView. You can either supply list:

new StickyList(
      children: <StickyListRow>[
        new HeaderRow(child: yourWidget),
        new RegularRow(child: yourWidget),
        new RegularRow(child: yourWidget),
        new HeaderRow(child: yourWidget),
        new RegularRow(child: yourWidget),

Or you can use builder:

 new StickyList.builder(
      builder: (BuildContext context, int index) {
        if (something)
          return new HeaderRow(yourWidget)
          return new RegularRow(yourWidget)
      itemCount: 20,

[1.0.0] - 30-April-2018 #

Initial Release.

[1.0.1] - 3-May-2018 : Export file in sticky_header_list.dart

[1.0.2] - 3-May-2018 : Update readme

[1.0.3] - 27-June-2018 : Moved delegate from state to stateful widget so that hot reload works properly now.

[1.0.4] - 11-July-2018 : Fix for overscroll indicator in Android. Refresh indicator now works if there are not enough items in list.

[1.0.5] - 5-August-2018: Implement option to reverse list layout

[1.0.6] - 17-August-2018: Add ScrollController as optional parameter

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  sticky_header_list: ^1.0.6

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:sticky_header_list/sticky_header_list.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 1, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health suggestions

Format lib/sticky_header_list.dart.

Run flutter format to format lib/sticky_header_list.dart.

Format lib/sticky_row.dart.

Run flutter format to format lib/sticky_row.dart.

Maintenance suggestions

Package is getting outdated. (-62.19 points)

The package was last published 84 weeks ago.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and sticky_header_list.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies