checkbox_grouped 0.1.2+11 copy "checkbox_grouped: ^0.1.2+11" to clipboard
checkbox_grouped: ^0.1.2+11 copied to clipboard

outdated

flutter widget that grouping checkbox, recuperate the actual selection,support multiple selection

example/example.dart

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

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return _MyAppState();
  }
}

class _MyAppState extends State<MyApp> {
  GlobalKey<SimpleGroupedCheckboxState<int>> checkboxKey =
      GlobalKey<SimpleGroupedCheckboxState<int>>();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primaryColor: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text("SingleGroupedCheckbox"),
        ),
        body: Column(
          children: <Widget>[
            SimpleGroupedCheckbox<int>(
              key: checkboxKey,
              itemsTitle: ["1 ", "2 ", "4 ", "5 "],
              values: [1, 2, 4, 5],
              activeColor: Colors.red,
              direction: Direction.Horizontal,
              checkFirstElement: false,
              multiSelection: false,
            )
          ],
        ),
      ),
    );
  }
}
45
likes
0
pub points
92%
popularity

Publisher

unverified uploader

flutter widget that grouping checkbox, recuperate the actual selection,support multiple selection

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

auto_size_text, flutter

More

Packages that depend on checkbox_grouped