apptomate_custom_radio_button
A customizable radio button widget for Flutter that allows you to define custom icons, colors, and text styles.
🚀 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;
});
},
),
],
),
)