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

A basic list section with cards and headers

Features #

  • List sections with string title, actions and children
  • Optionally specify a title widget instead of a string

Usage #

import 'package:flutter/material.dart';
import 'package:list_section/list_section.dart';

class ListSectionExample extends StatelessWidget {
  const ListSectionExample({super.key});

  @override
  Widget build(BuildContext context) => Scaffold(
    body: ListView(
      children: [
        ListSection(
            title: "Section Title",
            actions: [
              IconButton(onPressed: (){}, icon: Icon(Icons.add_rounded))
            ],
            children: [
              ListTile(
                  leading: Icon(Icons.ac_unit_rounded),
                  title: Text("Item 1"),
                  subtitle: Text("Subtitle 1")),
            ])
      ],
    ),
  );
}
1
likes
130
points
20
downloads

Publisher

verified publisherarcane.art

Weekly Downloads

A basic list section with cards and headers

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on list_section