- Added configurable border width and disable flag for the shadow on tapping
Thanks to JaseElder
- Fix deprecated member 'primary'
Thanks to NeroThroN
- Remove self linter with flutter_lints
- Fix linter issues
- Format files
- Update sdk version to '>=2.15.0 <4.0.0'
- Add topics in pubspec.yaml
- Remove deprecated linter rules
- Implement buttonIndexedTextBuilder and buttonTextBuilder for building only text of buttons. See more in docs
- Recreate example host folders
- INFO Update README badages
- INFO Compatibility with flutter version under 3.3.0
- INFO: Make the package compatible with the 3.3.0 Flutter version
- FIX: Analyser issues
- BREAKING: idnex -> index change typo fix for onDisablePressed callback Function of GroupButtonController
- INFO: Examples and code base refactoring
Thanks for anasfik
- FEAT: Added user friendly example
Thanks for vasilich6107
-
MAIN FEAT: GroupButton<T> now is generic class.
Now you can create int, DateTime, double or YourCustomClass typed buttons List for default GroupButton constructor.
More here -
BREAKING: All deprecated by 4.3.0 and 4.6.0 fields was removed from package.
More here -
BREAKING: buttonBuilder from 4.6.0 now build buttons by value
The buttonIndexedBuilder took over the past functionality of the buttonBuilder -
INFO: Updated examples & README
- FEAT: Added enableIndexes abd disableIndexes methods for controller
Thanks for minhdanh
- FEAT: Added maxSelected field for setting max selected buttons in checkbox mode
Thanks for gnassro
- FEAT: Added buttonBuilder field for implementing your own custom buttons
- FEAT: Added ButtonBuilderExample with Flutter default radio and chackbox buttons via buttonBuilder
- INFO: Updated examples & README
- FEAT: enableDeselect field for enable radio button deselect
- BREAKING: remove GroupButton.checkbox() and GroupButton.radio() constructors from 4.0.0 updates
- FEAT: Implment GroupButtonOptions model to pass all styles of widget via one field
- DEPRECATED: All styles fields in default GroupButton constructor now deprecated.
In new version of package send it via GroupButtonOptions
List of fields:
- groupingType
- direction
- spacing
- runSpacing
- selectedTextStyle
- unselectedTextStyle
- selectedColor
- unselectedColor
- selectedBorderColor
- unselectedBorderColor
- borderRadius
- selectedShadow
- unselectedShadow
- buttonHeight
- buttonWidth
- mainGroupAlignment
- crossGroupAlignment
- groupRunAlignment
- textAlign
- textPadding
- alignment
- elevation
- FIX: deprecated fields
- FEAT: Add disabled buttons to controller
- FEAT: Add controller fields initialization in controller constructor
- INFO: Add deprecatd annotation for selectedButton, selectedButtons and disabledButtons
- FIX: GroupbuttonController initialization
- FEAT: onDisablePressed calback method for handle taps on disabled buttons
- FEAT: GroupButtonController for working with GroupButton from the outside
- FEAT: New GroupButton factory constructors GroupButton.checkbox and GroupButton.checkbox for faster buttons group creation
- FIX: Common issues
- FIX: fix static analysis issues
- FEAT: Add alignment field
- FEAT: Add elevation field
- FEAT: Add disabledButtons field
Thanks for slavap
- FEAT: Add textAlign field
- FEAT: Add textPadding field
- FEAT: Add runSpacing field ! When [groupingType] is [GroupingType.wrap] this field sets Wrap [runSpacing]
- BREAKING: Now spacing field is not sets GroupButton items vertical spacing
- FIX: Remove initial selected button from original widget initialization
- FIX: fix app logo link
- BREAKING: Implement groupingType field to make different grouping types like Wrap, Column, Row
- FEAT: Remove default values of styling fields for delegate this to theme
- refactoring: Make some internal refactoring
- FIX: fix static analysis issues
- FEAT: implement
runGroupAlignment
field for placed buttons runs themselves along the cross axis in a layout.
- FEAT: implement
mainGroupAlignment
field for placed buttons in the main axis in a layout. - FEAT: implement
crossGroupAlignment
field for placed buttons along the cross axis in a layout.
- Create example with using provider as state-manager
- Update examples in README.md
- Remove provider dependency
- Fix fields passing for widget
- Update selectedButtons field (Now int like index)
- Add selectedButton field for radio type
- Fix selectedBorderColor not working exception
- Fix spacing error issue
- Add ability for using radio mode without an selected buttons
- Fix static analysis issues
- Migrate to null-safety commit
- Migrate from using RaisedButton to ElevatedButton
- Add width and height fields for buttons
- Refactor code
- Add lint package
- Added ability to set initially selected buttons
- Create travis & codemagic QA
- Fix dart analyzer issues, errors and remarks
- Basic functionality for creating a button group
- Two models of the group were created:
- Radio (one selected button)
- CheckBox (several selected buttons)
- Initial package skeleton