Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding event on disabled items #59

Merged
merged 10 commits into from
Jan 6, 2022
Merged

Adding event on disabled items #59

merged 10 commits into from
Jan 6, 2022

Conversation

gnassro
Copy link
Contributor

@gnassro gnassro commented Jan 6, 2022

Pull request for this feature #58

@@ -80,6 +82,7 @@ class GroupButton extends StatelessWidget {
disabledButtons: disabledButtons,
selectedButton: selectedButton,
onSelected: (index, _) => onSelected(index),
onDisablePressed: (index,) => onDisablePressed(index),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary comma

Comment on lines 77 to 88
child: !isDisable
? ElevatedButton(
onPressed: onPressed,
style: ElevatedButton.styleFrom(
elevation: elevation ?? 0.0,
primary: _getBackgroundColor(theme),
shape: _buildShape(),
padding:
(width != null || height != null) ? EdgeInsets.zero : null,
alignment: (width != null || height != null) ? alignment : null,
),
child: Padding(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type of widgets build is huge and need in much place to code
Please simplify this code

@gnassro gnassro requested a review from Frezyx January 6, 2022 14:27
@gnassro
Copy link
Contributor Author

gnassro commented Jan 6, 2022

what's wrong in this now ? somthing missing ?

@Frezyx Frezyx merged commit 619a8b3 into Frezyx:master Jan 6, 2022
@Frezyx
Copy link
Owner

Frezyx commented Jan 7, 2022

All is good!
Thank you for your contribution @gnassro

@gnassro
Copy link
Contributor Author

gnassro commented Jan 7, 2022

All is good! Thank you for your contribution @gnassro

Thank you too for this package.
i think this pull request must linked to this issue

@Frezyx Frezyx linked an issue Jan 7, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding event on disabled items
2 participants