NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #3062 most downloaded on pub.dev
A segmented control widget like the one for iOS, but in Material design.
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 26 of 38 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
40 releases · first in 2019
Bump minimum Dart SDK version to >=3.0.0 <4.0.0
>=3.0.0 <4.0.0analysis_options.yaml file and apply linter recommendationsBREAKING: Removed onSegmentChosen. Use onSegmentTapped instead
onSegmentChosen. Use onSegmentTapped insteadIn later versions, this package will require Dart SDK >=3.0.0 <4.0.0. Consider upgrading Flutter to at least 3.10.0
One column per quarter.
Add support for children.length >= 1 by @dttrinh in #12
Full Changelog: 2.0.8...v4.2.0
Deprecated
onSegmentChosen is deprecated and will be removed in later versions.
Use onSegmentTapped instead.Other
>= 2.19.0Add support for setting custom textStyles and a borderWidth for the entire widget (thanks to @[chayanforyou](https://github.com/chayanforyou))
textStyles and a borderWidth for the entire widget (thanks to @chayanforyou)Nothing published for this version
Flutter 3 and Dart 2.17 updates
Flutter 3 and Dart 2.17 updatesx.y.z+B versioning changed to x.y.z scheme
x.y.z+B versioning changed to x.y.z schemeFixed some static analysis issues (non-nullable types can never be null)
Example project now uses ElevatedButton instead of deprecated RaisedButton
nullsafety to the projectselectedColor, disabledColor and disabledColor are no longer required and use default valuesonSegmentChosen is no longer required and can be null. This has no effect so that you need to set disabledChildren in case you want disabled children (means the "ripple" effect on tap still exists)ElevatedButton instead of deprecated RaisedButton?? is no longer used on non-nullable valuesNothing published for this version
Nothing published for this version
Changed an insecure URL in the README.md to an https URL that links to the pub.dev page of this package.
example projectpublish_to to the example project's pubspec.yaml file.Extended README.md to explain key features and referenced the example project.
Extended README.md to explain key features and referenced the example project.
Massively improved example project. The following features were introduced there to showcase this package:
Massively improved example project. The following features were introduced there to showcase this package:
Children can now have a length of 1
Fixed example/main.dart issue #11 - added Scaffold on top of the tree
example/main.dart issue #11 - added Scaffold on top of the treeRemoved deprecated author field from pubspec.yaml
author field from pubspec.yamlDisabled feature is now stable. Set children to be disabled with disabledChildren.
disabledChildren.Fixed issue #9 - You can now set a list of disabled children
Nothing published for this version
Related to issue #4 you can now customize your widget in a better way.
Fixed issue #7 - MSC is now usable inside a CupertinoApp.
Fixed bug #6 - not setting selectedColor and unselectedColor causes the library to crash.
Nothing published for this version
Nothing published for this version
Completely new approach behind the scenes
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
Define colors in MSC widget generally, you do not need to specify the colors for each item separately.
Nothing published for this version
- Set initially selected item.
- Optical improvements
Nothing published for this version
Nothing published for this version
Nothing published for this version
Updated to Dart SDK version 2.2.2 !
Nothing published for this version
- Customize color - Set width
Nothing published for this version
Nothing published for this version
Nothing published for this version
Licensing info is under LICENSE
LICENSEYour coding agent can read these notes before it upgrades. Set up the MCP server →