material_segmented_list 1.0.5 copy "material_segmented_list: ^1.0.5" to clipboard
material_segmented_list: ^1.0.5 copied to clipboard

A Flutter package for creating the Material Expressive Segmented Lists.

This package provides a way to create the new Material Expressive Segmented Lists in Flutter with ease.

Features #

[Segmented List]

Getting started #

install the package by adding it to your pubspec.yaml file:

dependencies:
  material_segmented_list: ^0.0.1+1

or run flutter pub add material_segmented_list

Usage #

usage is pretty much straight forward, if you've ever done native ios development you know how easy it is to create inset lists, this package aims to provide the same functionality to Flutter.

SegmentedListSection(
  children: [
    SegmentedListTile(
      title: Text('Title'),
      subtitle: Text('Subtitle'),
      trailing: Text('Trailing'),
      leading: Icon(Icons.person),
    ),
    SegmentedListTile(
      title: Text('Title'),
      subtitle: Text('Subtitle'),
      trailing: Text('Trailing'),
      leading: Icon(Icons.person),
    ),
    SegmentedListTile(
      title: Text('Title'),
      subtitle: Text('Subtitle'),
      trailing: Text('Trailing'),
      onTap: () {
        print('Title');
      },
   
    ),
  ],
)

Additional information #

the SegmentedListTile exposes all the parameters of ListTile so that it can be used as a drop in replacement for ListTile in most cases, if any new parameters are added to ListTile in the future, they will be added to SegmentedListTile as well.

6
likes
140
points
189
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

A Flutter package for creating the Material Expressive Segmented Lists.

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on material_segmented_list