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

A customizable radio button widget for Flutter that allows you to define custom icons, colors, and text styles.

apptomate_custom_radio_button #

A customizable radio button widget for Flutter that allows you to define custom icons, colors, and text styles.

Platform

🚀 Features #

✔️ Customizable selected and unselected icons

✔️ Changeable active and inactive colors

✔️ Adjustable size and padding

✔️ Customizable text style

✔️ Supports onChanged callback for state management


📲 Installation #

Add the dependency to your pubspec.yaml:

dependencies:
  apptomate_custom_radio_button: ^0.0.1

Basic Example #

Padding(
        padding: const EdgeInsets.all(16.0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            CustomRadioButton(
              label: "Option 1",
              value: "Option 1",
              size: 24,
              groupValue: selectedOption,
              activeColor: accentColor,
              onChanged: (value) {
                setState(() {
                  selectedOption = value;
                });
              },
            ),
            Padding(
              padding: const EdgeInsets.symmetric(vertical: 16.0),
              child: CustomRadioButton(
                label: "Option 2",
                activeColor: accentColor,
                value: "Option 2",
                groupValue: selectedOption,
                onChanged: (value) {
                  setState(() {
                    selectedOption = value;
                  });
                },
              ),
            ),
            CustomRadioButton(
              label: "Option 3",
              value: "Option 3",
              activeColor: accentColor,
              groupValue: selectedOption,
              onChanged: (value) {
                setState(() {
                  selectedOption = value;
                });
              },
            ),
          ],
        ),
      )







0
likes
150
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable radio button widget for Flutter that allows you to define custom icons, colors, and text styles.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on apptomate_custom_radio_button