Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1000 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 1000 Bytes

list_tile_more_customizable

A ListTile with more customizable details.

Introduction

Important: With the efforts of the List Tile More Customizable Authors and the flutter community, now we can directly modify the horizontalTitleGap, minVerticalPadding and minLeadingWidth in the ListTile, so if you only use these three functions, it is time to switch back to use the ListTile.

This project is a modified version of Flutter ListTile, and provides more customizable functions, with these functions, you can set the horizontalTitleGap, minVerticalPadding, minLeadingWidth and get the PointerDownEvent when onTap or onLongPress occurred.

Usage

ListTileMoreCustomizable(
    title: Text("Title"),
    trailing: Icon(Icons.people),
    horizontalTitleGap: 0.0,
    minVerticalPadding: 0.0,
    minLeadingWidth: 40.0,
    onTap: (details){},
    onLongPress: (details){},
);

Example

Example