Skip to content

Commit

Permalink
Merge pull request #73 from ketanchoyal/dev
Browse files Browse the repository at this point in the history
minor bug fixed
  • Loading branch information
ketanchoyal authored Jun 3, 2023
2 parents dca4208 + 5d303b2 commit 3bf1502
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# [2.2.0+1] - 03 June 2023
- Deprecated `radius` in favor of `borderRadius`

## [2.2.0] - 31 March 2023
- Added way to select buttons programmatically (Fix #69)
- Fixed bug where buttons were not being selected when value and label were different
Expand Down
3 changes: 3 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ class GroupedButton extends StatelessWidget {
"S",
"S",
],
disabledValues: [
"Monday",
],
buttonValuesList: [
"Monday",
"Tuesday",
Expand Down
9 changes: 5 additions & 4 deletions lib/CustomButtons/CustomCheckBoxGroup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class CustomCheckBoxGroup<T> extends StatefulWidget {
final bool enableButtonWrap;

/// Radius for non-shape radio button
@Deprecated('Use shapeRadius instead')
final double radius;

/// Radius for shape radio button
Expand Down Expand Up @@ -194,8 +195,8 @@ class CustomCheckBoxGroupState<T> extends State<CustomCheckBoxGroup<T>> {
? OutlineInputBorder(
borderSide:
BorderSide(color: _borderColor(e), width: 1),
borderRadius:
BorderRadius.all(Radius.circular(widget.radius)),
borderRadius: BorderRadius.all(
Radius.circular(widget.shapeRadius)),
)
: widget.customShape
: OutlineInputBorder(
Expand Down Expand Up @@ -254,8 +255,8 @@ class CustomCheckBoxGroupState<T> extends State<CustomCheckBoxGroup<T>> {
? OutlineInputBorder(
borderSide:
BorderSide(color: _borderColor(e), width: 1),
borderRadius:
BorderRadius.all(Radius.circular(widget.radius)),
borderRadius: BorderRadius.all(
Radius.circular(widget.shapeRadius)),
)
: widget.customShape
: OutlineInputBorder(
Expand Down
7 changes: 4 additions & 3 deletions lib/CustomButtons/CustomRadioButton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class CustomRadioButton<T> extends StatefulWidget {
final double elevation;

/// Radius for non-shape radio button
@Deprecated('Use shapeRadius instead')
final double radius;

/// Radius for shape radio button
Expand Down Expand Up @@ -194,8 +195,8 @@ class CustomRadioButtonState<T> extends State<CustomRadioButton<T>> {
OutlineInputBorder(
borderSide:
BorderSide(color: _borderColor(e), width: 1),
borderRadius:
BorderRadius.all(Radius.circular(widget.radius)),
borderRadius: BorderRadius.all(
Radius.circular(widget.shapeRadius)),
)
: OutlineInputBorder(
borderSide: BorderSide(color: _borderColor(e), width: 1),
Expand Down Expand Up @@ -252,7 +253,7 @@ class CustomRadioButtonState<T> extends State<CustomRadioButton<T>> {
OutlineInputBorder(
borderSide: BorderSide(color: _borderColor(e), width: 1),
borderRadius:
BorderRadius.all(Radius.circular(widget.radius)),
BorderRadius.all(Radius.circular(widget.shapeRadius)),
)
: OutlineInputBorder(
borderSide: BorderSide(color: _borderColor(e), width: 1),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: custom_radio_grouped_button
description: Custom Radio Buttons and Grouped Check Box Button
version: 2.2.0
version: 2.2.0+1

homepage: https://github.com/ketanchoyal/custom_radio_grouped_button

Expand Down

0 comments on commit 3bf1502

Please sign in to comment.