group_button 4.1.1 copy "group_button: ^4.1.1" to clipboard
group_button: ^4.1.1 copied to clipboard

outdated

Flutter custom widget to make a group buttons. Included Radio and CheckBox buttons.

example/lib/main.dart

import 'package:example/examples/customizable_example/customizable_example.dart';
import 'package:example/examples/extended_example/example.dart';
import 'package:example/examples/provider_example/ui/app.dart';
import 'package:example/examples/styles_example/example.dart';
import 'package:flutter/material.dart';
import 'package:group_button/group_button.dart';

/// You can use [GroupButtonExtendedExample]
/// to check all package [GroupingType]'s in one place

/// /// You can use [StylesExample]
/// to check all package style's configuration

/// You can use [GroupButtonProviderExample]
/// using this package with state - managment package like provider

/// You can use [CustomizableExample]
/// to check package power

void main() {
  runApp(CommonExample());
}

class CommonExample extends StatelessWidget {
  final controller = GroupButtonController();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: GroupButton.checkbox(
            controller: controller,
            buttons: List.generate(25, (i) => '${i + 1}'),
            onSelected: (i, selected) => debugPrint('Button #$i $selected'),
          ),
        ),
      ),
    );
  }
}
549
likes
0
pub points
97%
popularity

Publisher

verified publisherfrezycode.com

Flutter custom widget to make a group buttons. Included Radio and CheckBox buttons.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, lint

More

Packages that depend on group_button