Reputation: 5309
how do I change the fontsize in custom_radio_grouped_button package on flutter?
package: https://pub.dev/packages/custom_radio_grouped_button#-readme-tab-
Widget _selectDayBar() {
return CustomCheckBoxGroup(
buttonColor: Theme.of(context).canvasColor,
buttonLables: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
buttonValuesList: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
checkBoxButtonValues: (values) => print(values),
defaultSelected: "Mon",
horizontal: false,
hight: 100,
width: 50,
selectedColor: Theme.of(context).buttonColor,
// padding: 10,
customShape: CircleBorder(
// borderRadius: new BorderRadius.circular(18.0),
side: BorderSide(color: Theme.of(context).buttonColor)
),
enableShape: true,
);
}
Upvotes: 0
Views: 242
Reputation: 11481
It's very simple. Simply go to that package and copy the source code into your own source code and change values as you wish.
Here is the full source code of CustomCheckBoxGroup
Upvotes: 0
Reputation: 27147
You can customise package according to your requirements.
You can hold ctrl(command) key and click on widget, which take you to the implementation of widget. Now find out Text widget in it and change size (default size in this package is 15) according to your requirements.
Moreover, if you want to add fontSize property then you can also add this in package. i only suggest to do this if you want to change font size more than once in same project.
Make sure that you do full restart your app because it does not reflect in hot reload.
Upvotes: 1