apptomate_custom_list_tile 0.0.1 copy "apptomate_custom_list_tile: ^0.0.1" to clipboard
apptomate_custom_list_tile: ^0.0.1 copied to clipboard

A customizable ListTile widget with additional styling options like background color, elevation, shadow, and rounded corners. Built for Flutter applications.


CustomListTile Widget #

A customizable ListTile widget with additional styling options like background color, elevation, shadow, and rounded corners. Built for Flutter applications.

Features #

  • Customizable Appearance:
    • Background color
    • Border radius
    • Elevation (shadow)
    • Shadow color
  • Flexible Content:
    • Title (required)
    • Optional subtitle
    • Leading/trailing widgets
  • Padding Control:
    • Default or custom content padding
  • Tap Interaction:
    • Optional onTap callback

📲 Installation #

Add the dependency to your pubspec.yaml:

dependencies:
  apptomate_custom_container: ^0.0.1

Usage #

CustomListTile(
  title: 'Sample Title',
  subtitle: 'Optional subtitle',
  leading: Icon(Icons.star),
  trailing: Icon(Icons.chevron_right),
  backgroundColor: Colors.blue[50],
  borderRadius: 12.0,
  elevation: 2.0,
  onTap: () => print('Tile tapped'),
)

Parameters #

Parameter Type Default Description
title String Required Primary text
subtitle String? null Secondary text
leading Widget? null Left-side widget (e.g., Icon)
trailing Widget? null Right-side widget
backgroundColor Color Colors.white Tile background color
contentPadding EdgeInsetsGeometry? EdgeInsets.symmetric(horizontal: 16, vertical: 8) Inner padding
onTap VoidCallback? null Tap callback
borderRadius double 8.0 Corner radius
elevation double 4.0 Shadow depth
shadowColor Color Colors.grey Shadow color

Example #

CustomListTile(
  title: 'Settings',
  subtitle: 'Privacy & security',
  leading: Icon(Icons.settings, color: Colors.blue),
  trailing: Icon(Icons.arrow_forward),
  backgroundColor: Colors.white,
  borderRadius: 10,
  elevation: 3,
  onTap: () => Navigator.push(context, SettingsRoute()),
)

Dependencies #

  • Flutter SDK (requires material.dart)

0
likes
0
points
37
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable ListTile widget with additional styling options like background color, elevation, shadow, and rounded corners. Built for Flutter applications.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on apptomate_custom_list_tile