grouped_selection 0.0.2 copy "grouped_selection: ^0.0.2" to clipboard
grouped_selection: ^0.0.2 copied to clipboard

A Flutter widget that allows grouped selection with single or multiple choices.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text("Grouped Selection Example")),
        body: Center(
          child: GroupedSelection(
            items: [
              SelectionItem(text: 'Item 1'),
              SelectionItem(text: 'Item 2'),
              SelectionItem(text: 'Item 3'),
            ],
            columnCount: 2,
            onSelectionChanged: (selectedItems) {
              // Handle selection change
            },
          ),
        ),
      ),
    );
  }
}
1
likes
160
points
35
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter widget that allows grouped selection with single or multiple choices.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on grouped_selection