material_segmented_control
A segmented control widget like the one for iOS, but in Material design.
5.0.1
9.1K downloads/mo
#3056 most downloaded on pub.dev
benjamin-kraatz/material_segmented_control
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 4 weeks to 13 months
Most releases are documented
notes for 24 of 38 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
40 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
40 releases · May 2019 to May 2024Releases
latest 40-
5.0.107 May 2024Release notes
Open source →- Bump minimum Dart SDK version to
>=3.0.0 <4.0.0 - Add
analysis_options.yamlfile and apply linter recommendations
- Bump minimum Dart SDK version to
-
5.0.024 May 2023Release notes
Open source →- BREAKING: Removed
onSegmentChosen. UseonSegmentTappedinstead
In later versions, this package will require
Dart SDK >=3.0.0 <4.0.0. Consider upgrading Flutter to at least 3.10.0 - BREAKING: Removed
-
4.2.023 Feb 2023Release notes
Open source →What's Changed
- Add support for children.length >= 1 by @dttrinh in #12
- add support for custom textStyle by @chayanforyou in #21
- add support for borderWidth by @chayanforyou in #22
New Contributors
- @dttrinh made their first contribution in #12
- @chayanforyou made their first contribution in #21
Full Changelog: 2.0.8...v4.2.0
Release notes
Open source →Deprecated
onSegmentChosenis deprecated and will be removed in later versions. UseonSegmentTappedinstead.
Other
- Bump Dart SDK requirement to
>= 2.19.0
-
4.1.124 Jan 2023Release notes
Open source →- Add support for setting custom
textStyles and aborderWidthfor the entire widget (thanks to @chayanforyou)
- Add support for setting custom
-
4.1.024 Jan 2023Nothing published for this version
-
4.0.014 May 2022Release notes
Open source →Flutter 3andDart 2.17updates- Added Material 3 opt-in to the example app
-
3.1.218 Apr 2021 -
3.1.1+418 Apr 2021Release notes
Open source →- Fixed some static analysis issues (non-nullable types can never be null)
-
3.1.0+318 Apr 2021Release notes
Open source →- Added
nullsafetyto the project - CHANGES:
selectedColor,disabledColoranddisabledColorare no longer required and use default valuesonSegmentChosenis no longer required and can be null. This has no effect so that you need to setdisabledChildrenin case you want disabled children (means the "ripple" effect on tap still exists)- Example project now uses
ElevatedButtoninstead of deprecatedRaisedButton
- FIX:
??is no longer used on non-nullable values
- Added
-
3.0.0-nullsafety.107 Dec 2020 pre-releaseNothing published for this version
-
3.0.0-nullsafety.007 Dec 2020 pre-releaseNothing published for this version
-
2.1.1+107 Dec 2020Release notes
Open source →- Changed an insecure URL in the README.md to an https URL that links to the pub.dev page of this package.
- Fixed a wrong placed file in the
exampleproject - Added
publish_toto the example project'spubspec.yamlfile.
-
2.1.017 May 2020Release notes
Open source →Massively improved
exampleproject. The following features were introduced there to showcase this package:- "Toggle Disabled" button: shows the use of disabled children
- "Un-select all" button: Lets you clear the selection of all children
-
2.1.0+117 May 2020Release notes
Open source →Extended README.md to explain key features and referenced the example project.
-
2.0.1118 Apr 2020Nothing published for this version
-
2.0.11+118 Apr 2020 -
2.0.1008 Mar 2020Nothing published for this version
-
2.0.909 Dec 2019Release notes
Open source →- Disabled feature is now stable. Set children to be disabled with
disabledChildren.
- Disabled feature is now stable. Set children to be disabled with
-
2.0.808 Dec 2019Release notes
Open source →- Fixed issue #9 - You can now set a list of disabled children
- Disabled color defaults to Colors.grey (index 300).
-
2.0.711 Nov 2019Nothing published for this version
-
2.0.611 Nov 2019Release notes
Open source →- Related to issue #4 you can now customize your widget in a better way.
- Set the verticalOffset that controls the padding of a child.
-
2.0.511 Nov 2019Release notes
Open source →- Fixed issue #7 - MSC is now usable inside a CupertinoApp.
- InkWell ripple effect added; the Material styled ripple effect is seen on (long) tapping a segment. That makes the widget feel more like Material.
-
2.0.428 Oct 2019Release notes
Open source →- Fixed bug #6 - not setting selectedColor and unselectedColor causes the library to crash.
-
2.0.324 Jun 2019Nothing published for this version
-
2.0.224 Jun 2019Nothing published for this version
-
2.0.124 Jun 2019Release notes
Open source →-
Maybe breaking version
-
Completely new approach behind the scenes
-
New coloring options
-
More customization
-
Define one single listener to get selected state
-
Removed issues
-
Better documentation on how to use
-
Works with every widget directly, no need to use a special class
SegmentedItem
-
-
1.2.003 Jun 2019Release notes
Open source →- Define colors in MSC widget generally, you do not need to specify the colors for each item separately.
-
1.1.301 Jun 2019Nothing published for this version
-
1.1.201 Jun 2019 -
1.1.127 May 2019 -
1.1.027 May 2019Nothing published for this version
-
1.0.224 May 2019Nothing published for this version
-
1.0.124 May 2019Nothing published for this version
-
1.0.024 May 2019Release notes
Open source →- Updated to Dart SDK version 2.2.2 !
- Provide the segmented control a list of children instead only left and right
- Define selection callback for each item itself
- Set colors for each item
-
0.2.121 May 2019Nothing published for this version
-
0.2.021 May 2019 -
0.1.620 May 2019Nothing published for this version
-
0.1.520 May 2019Nothing published for this version
-
0.1.420 May 2019Nothing published for this version
-
0.1.320 May 2019