sbb_design_system_mobile 4.2.0
sbb_design_system_mobile: ^4.2.0 copied to clipboard
The official SBB design system mobile for Flutter.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
It is expected that you keep this format strictly, since we depend on it in our release workflow.
Unreleased #
4.2.0 - 2025-10-03 #
Added #
- added
SBBSliverFloatingHeaderboxthat allows the headerbox to expand and contract as the user scrolls. - added functional colors (e.g.
SBBColors.error) and dark variants of additionalColors (e.g.SBBColors.skyDark) - added
errorColortoSBBBaseStyle - added
systemOverlayStyletoSBBHeader
Changed #
- (auto): updated icon lib to version 1.8.9
- aligned SBBColors to colors in Figma and specs
- error color in SBBTheme is used from
SBBBaseStyle.errorColor - use functional colors as in specs for
SBBStatusandSBBNotificationBox
Fixed #
SBBTabBar: properly clips icons as they get selected / unselected- keyboard focus for
SBBTabBar
4.1.0 - 2025-08-22 #
4.0.0 - 2025-07-14 #
Changed #
- BREAKING:
SBBToast:messagebecomestitle - BREAKING:
TabBarItembecomesSBBTabBarItem - BREAKING:
TabBarControllerbecomesSBBTabBarController - Simpler implementation of the
SBBTabBar SBBTabBarnow respects theSafeAreafor thesystemNavigationBar- updated icon lib to version 1.7.1
Added #
SBBGroupStyleis used to styleSBBGroupin a theme extension like mannerSBBToastStyleis used to styleSBBToastin a theme extension like mannerSBBGrouphasisSemanticContainerflag for accessibilitySBBToastActionto display an action with a callback inSBBToast- add semantics to
SBBToast(liveRegion and container)
Removed #
SBBGroupdoes not have a shadow anymore (removeduseShadowflag)SBBToastdoes not haveconfirmation,errororwarningmethods any more- removed
toastBackgroundColorfromSBBControlStylesin favor ofSBBToastStyle - removed
toastTextStylefromSBBControlStylesin favor ofSBBToastStyle - removed
groupBackgroundColorfromSBBControlStyles
3.2.0 - 2025-06-23 #
3.1.0 - 2025-05-22 #
Changed #
- updated the SBB Icons version to 1.6.2
- Dropped support for
Flutter SDK 3.24.5: minimum supported version is 3.27.0
3.0.0 - 2025-04-24 #
Added #
- added
customconstructor toSBBPromotionBoxto allow for complete control over the content - added
copyWithtoPromotionBoxStyle - added
showCloseButtonandbackgroundColortoSBBModalPopupandSBBModalSheetand their show methods - added
onChangeStartandonChangeEndtoSBBSlider
Changed #
- BREAKING: default constructor of
SBBPromotionBoxis not compile constant - BREAKING: removed
isCloseableinSBBPromotionBox- merge behavior with nullableonClose - BREAKING: changed
descriptiontosubtitleinSBBPromotionBoxfor more consistency with other Widgets - BREAKING: renamed
CloseableBoxControllertoClosableBoxController
Removed #
- removed deprecated
SBBIconFormButton - removed deprecated
SBBRadioButtonin favor ofSBBRadio - removed deprecated
SBBRadioButtonListItemin favor ofSBBRadioListItem - removed deprecated
sbbWebFontin favor ofsbbFont - removed deprecated
SBBPrimaryButtonNegative - removed deprecated
SBBIconButtonSmallBorderless
Fixed #
- fixed
onChangedofSBBAutocompletion(#304)
2.3.0 - 2025-03-04 #
Added #
- added customization to
SBBTextStylesviaTextStylesExtensions- refer to documentation inSBBTextStyles - added
sbbTextStylefor easier use of extension methods inTextStylesExtensions - added
xxLargeFontSizeandxLargeFontSizetoSBBTextStyles - added
extraExtraLargeBoldandextraExtraLargeLighttoSBBTextStyles - added
SBBFontFamilyto access all font families inSBB Design System Mobile
Changed #
- Dropped support for
Flutter SDK 3.22.x: minimum supported version is 3.24.0
Deprecated #
- deprecated
sbbWebFontin favor ofsbbFontfor clearer naming convention
Fixed #
- fixed all wrong font weights of existing textStyles in
SBBTextStylesvia switching font family
2.2.0 - 2025-01-14 #
Changed #
- changed behavior of the trailing widget and icon of the following widgets:
SBBCheckboxListItemSBBRadioButtonListItemSBBRadioListItem
- updated the SBB Icons version to 1.2.0
Added #
- added the
SBBHeaderBoxandSBBSliverHeaderbox - added an animated bottom loading indicator with a
isLoadingparameter to these widgets:SBBCheckboxListItemSBBRadioButtonListItemSBBRadioListItemSBBSwitchListItem
- added
boxedvariant via redirecting constructor to these widgets:SBBCheckboxListItemSBBRadioButtonListItemSBBRadioListItemSBBSwitchListItem
- added Semantics to the following widgets:
SBBCheckboxListItemSBBRadioButtonListItemSBBRadioListItem
- added animation to
SBBPagination - added the
SBBIconsIndexallowing String to IconData mapping
Fixed #
- correct layout of
SBBCheckbox - correct color usage of the
SBBCheckboxListItem allowMultilineLabelofSBBSwitchListItemis respected
Deprecated #
- Deprecated
SBBRadioButtonin favor ofSBBRadio - Deprecated
SBBRadioButtonListItemin favor ofSBBRadioListItem
2.1.1 - 2024-12-14 #
Fixed #
SafeAreais applied to content ofshowSBBModalSheet- not to the sheet itself
2.1.0 - 2024-12-13 #
Added #
- added
constraintstoshowSBBModalSheetto allow varying screen sizes (tablet)
Changed #
- Dropped support for
Flutter SDK 3.19.6: minimum supported version is 3.22.3 showSBBModalSheet&showCustomSBBModalSheet: add bottom safe area of content ifuseSafeAreais true
Deprecated #
SBBIconFormButtonSBBIconButtonSmallBorderlessSBBPrimaryButtonNegative
Fixed #
- correct height for
SBBTertiaryButtonSmall(40px => 32px) - coloring of:
SBBSecondaryButton(onHighlighted)SBBTertiaryButton(darkMode)SBBIconButtonSmallSBBIconButtonLarge
iconColorinSBBButtonStyleis correctly overriden to support Flutter SDK >=3.27.0
2.0.0 - 2024-09-06 #
Changed #
- Renamed
SBBStatusMobiletoSBBStatus
Fixed #
- Bugfix for semantics in
SBBSegmentedButton
Removed #
-
Removed web widgets:
SBBBreadcrumbSBBCardSBBDropdownSBBGhostButtonSBBMenuSBBResponsiveSBBSidebarSBBStatus(is now mobile default)SBBUserMenuSBBWebHeaderSBBWebNotification
-
Remove deprecated
SBBBaseTextStyles -
Removed web typography:
SBBLeanTextStylesSBBWebTextSBBWebTextStyles
-
Removed web mode from the following widgets:
SBBAccordionSBBAutocompletionSBBCheckboxSBBCheckboxListItemSBBIconButton(all variants)SBBLinkText(including refactoring)SBBListItemSBBLoadingIndicatorSBBPrimaryButtonSBBRadioButtonSBBRadioButtonListItemSBBSelectSBBSecondaryButtonSBBTextFieldSBBTextFormFieldSBBToast
-
Removed
HostPlatformfromSBBTheme -
Removed and cleaned web parts in
SBBControlStyles -
Removed web parts in
SBBButtonStyles -
Removed web mode in example app
-
Removed deprecated
onCallToActionfrom SBBListItem -
Removed deprecated
SBBIconTextButton
1.6.0 - 2024-09-04 #
1.5.0 - 2024-08-15 #
Added #
- (#150) Added
SBBDateInput - (#150) Added
SBBDateTimeInput - (#150) Added
SBBTimeInput - (#150) Added
SBBInputTrigger
Changed #
- (#148) Update SBB icons to version 1.0.0
- Implement all Notification Box Styles Figma Link
- (#150) Added function
showModalinSBBDatePicker,SBBDateTimePicker,SBBTimePicker - Minimum supported dart sdk is 3.3.0.
Deprecated #
- (#142) Deprecated Web Components:
SBBStatusSBBWebLogoSBBLeanTextStylesSBBWebTextSBBWebTextStylesSBBBreadcrumb
Fixed #
- (#113)
SBBTimePicker: Added support for time ranges that span over midnight
1.4.0 - 2024-06-07 #
Added #
- (#133) Added the
SBBStepperdigital.sbb.ch#figma - (#153)
SBBModalSheet: Added parametersuseSafeAreaandenableDragto global functionsshowSBBModalSheetandshowCustomSBBModalSheet
Changed #
- (#130) using icons from CDN version
0.1.81 - (#137) use flutter_lints instead of outdated dart linter
1.3.0 - 2024-05-30 #
Added #
- Added the release github actions workflow.
- (#110) Match typography specifications from design.sbb.ch by adding extraSmallFont.
- (#107)
SBBTabBar: Added fieldonTap, which allows for reacting to taps on tab items. - (#106)
FontScripts: Added utils to update the SBB Icon fonts with a script.
Changed #
- (#118) Changed the test flow to include CHANGELOG.md validation.
- (#111)
SBBMessage: MakeSBBMessageonly as big as needed to prevent content being pushed on top.
Fixed #
- (#115) Golden Tests by replacing golden_toolkit package.
- (#114) Support Flutter 3.22 by replacing
TextTheme.subtitlegetter.
1.2.0 - 2023-12-19 #
Added #
- (#63) Added
SBBMessage - (#89) Added
SBBNotificationBox - (#90) Added
SBBStatusMobile - (#57) Added
SBBPicker - (#57) Added
SBBDatePicker - (#57) Added
SBBTimePicker - (#57) Added
SBBDateTimePicker
1.1.0 - 2023-09-01 #
Added #
- (#73) Added
SBBSlider - (#59) Added
SBBSwitch - (#67) Added
SBBPromotionBox - (#74) Added
SBBChip - (#82) Added
SBBPagination SBBListItem: Added constructorcustomfor custom trailing WidgetSBBListItem: Added constructorbuttonfor button variant
Changed #
SBBBaseStyle: Changed value oflabelColorto match current specificationsSBBListItemStyle: Changed color values to match current specificationsSBBListItem: Default constructor builds (trailing) icon variant instead of button variant whentrailingIconis notnull- For backwards compatibility default constructor still builds button variant if
onCallToActionis notnull
- For backwards compatibility default constructor still builds button variant if
Deprecated #
SBBListItem: ParameteronCallToActionis nowdeprecated- Use the newly added constructor
customfor the button variant
- Use the newly added constructor
Fixed #
- (#83)
SBBTabBar: Fixed bug where animations were not symmetric
1.0.0 - 2023-05-26 #
Added #
- (#62)
SBBColors: Added new colors to match current specifications
Changed #
- (#60) Migration to Flutter 3.10.0
- (#52)
SBBSegmentedButton: Updated UI to match current specifications - (#62)
SBBColors: Changed colorgreento match current specifications SBBOnboarding: Changed screen reader behaviour
0.7.1 - 2023-01-19 #
Fixed #
SBBIconTextButton: Button is not clickable anymore when disabledSBBSelect: No pixel overflow when using larger fontSBBAutocompletion: Corrected colors
0.7.0 - 2022-11-25 #
Added #
SBBTabBar: Added functionality to show warningsSBBTabBar: Added fieldshowWarning(with default valuefalse)SBBTabBar: Added fieldwarningIndexTabItemWidget: Added fieldwarning(with default valuefalse)
SBBSegmentedButton: Added more fields to customiseSBBSegmentedButton: Added fieldborderColorSBBSegmentedButton: Added fieldboxShadow
- Added
SBBRadioButton(for web) - Added
SBBAutocompletion(for web) - Added
SBBCard(for web) - Added
SBBAccordion(for web) - Added
SBBTextFormField(for web) - Added
SBBTextField(for web) - Added
SBBDropdownButton(for web) - Added
SBBWebNotification(for web)
Changed #
- Refactored theming to use
ThemeExtensionsintroduced in Flutter 3 SBBLeanLogorenamed toSBBWebLogo
0.5.0 - 2022-05-19 #
Added #
- Added
SBBLeanLogo(for web) - Added
SBBBreadcrumb(for web) - Added
SBBWebHeader(for web) - Added
SBBResponsive(for web) - Added
SBBSideBar(for web) - Added
SBBMenuButton(for web) - Added
SBBUserMenu(for web) SBBPrimaryButton: Added different theme based on hostType (for web)SBBTheme:Added fieldhostTypeSBBIcons: Added new iconsSBBThemeData: Added functionallStatesSBBThemeData: Added functionresolveStateWithSBBTextField: Added fieldautofocusSBBTextFormField: Added fieldautofocusSBBTextField: Added fieldautofocusSBBTextFormField: Added fieldautofocusSBBMultiSelect: Added fieldselectionValidationand static functiondefaultSelectionValidationfor custom selection validationSBBSelect: Added fieldallowMultilineLabelSBBSelect: Added fieldhintSBBAccordion: Added fieldtitleMaxLines(with default valuenull, meaning titles are now multiline by default)SBBAccordion: Added constructorsinglefor simpler usage when only one item is neededSBBListHeader: Added fieldmaxLines(with default valuenull, meaning list headers are now multiline by default)SBBListItem: Added fieldtitleMaxLines(with default valuenull, meaning titles are now multiline by default)SBBListItem: Added fieldsubtitleMaxLines(with default valuenull, meaning subtitles are now multiline by default)
Changed #
SBBThemeData: Adjusted some colors to match the current specificationsSBBOnboarding: Padding now defined bySBBThemeData.defaultRootContainerPaddingSBBSelect: Adjusted paddings to match the current specificationsSBBMultiSelect: Adjusted paddings to match the current specificationsSBBRadioButtonListItem: Adjusted paddings to match the current specificationsSBBSelect: Fieldlabelis now optional because there is now a variant without labelSBBAccordion: Adjusted paddings, text style and icon rotation to match the current specifications
Fixed #
SBBCheckboxListItem: Added missing bottom padding for multiline without secondary label
0.4.0 - 2022-05-19 #
Added #
- Added
SBBTabBar - Added global function
showCustomSBBModalSheet SBBModalSheet: Added fielduseRootNavigator(with default valuetrue)SBBModalSheet: Added constructorcustomfor header customizingSBBToast: Added fieldbottom
Changed #
SBBTextStyles: AdjustedfontSizeandheightvalues to match the current specificationsSBBListHeader: Adjusted paddings to match the current specificationsSBBTextField: Adjusted paddings to match the current specifications
Deprecated #
SBBListHeader: Removed fieldsiconandonCallToActionto match the current specificationsSBBTextField: Removed fieldalignLabelWithHint
Fixed #
SBBModalSheet: Fine line that sometimes was visible below the header is now gone
0.3.0 - 2021-07-29 #
Added #
SBBRadioButtonListItem: Added fieldallowMultilineLabelSBBRadioButtonListItem: Added fieldsecondaryLabelSBBIcons: Added new small and medium icons
0.2.0 - 2021-06-08 #
Added #
- Added actual content to CHANGELOG.md
- Added TEXTSTYLES-MIGRATION-GUIDE.md
- Added
SBBToast - Added
SBBAccordion - Added
SBBMultiSelect - Added
SBBPrimaryButtonNegative - Added
SBBIconButtonSmallNegative - Added
SBBIconButtonSmallBorderless - Added
SBBOnboarding - Added
SBBLinkText - Added global constant
sbbDefaultSpacing(16.0) - Added global constant
sbbIconSizeSmall(24.0) - Added global constant
sbbIconSizeMedium(36.0) - Added global constant
sbbIconSizeLarge(48.0) SBBThemeData: Added methodcopyWithfor easier theme customizingSBBThemeData: Added fielddefaultTextStyleSBBThemeData: Added fieldheaderButtonBackgroundColorHighlightedSBBColors: Added constantmidnightSBBHeader: Added fieldsbbSignetTooltipSBBTertiaryButtonLarge: Added fieldiconSBBTertiaryButtonSmall: Added fieldiconSBBCheckboxListItem: Added fieldallowMultilineLabelSBBCheckboxListItem: Added fieldsecondaryLabelSBBTextField: Added fieldhintMaxLinesSBBSelect: Added classSelectMenuItem<T>>that is now to be used for the items list to match semantics ofDropdownButtonSBBSelect: Added static methodshowMenu<T>()that can now be used to directly show the SBBSelect menu without building the widgetSBBModalPopup: Added fieldclipBehaviorfor clipping possibilities if popup content overflows.
Changed #
- Null safety migration
SBBThemeData: Constructorslightanddarkno longer have parameters because it is now obsolete due to the introduction ofcopyWithSBBHeader: Set value ofAppBar.brightnesstoBrightness.dark, which means that the icons in the status bar are now always white, regardless of the themeSBBHeader: Set value ofAppBar.titleSpacingto0.0to allow more characters in titleSBBHeader: Set value ofAppBar.titleSpacingto0.0to allow more characters in titleSBBSelect: Renamed fieldlabelTexttolabelSBBSelect: Renamed fieldmodalTitletotitleSBBSelect: Changed field type ofitemsfromList<T>toList<SelectMenuItem<T>>to match semantics ofDropdownButtonSBBListItem: The trailingSBBIconButtonSmallnow ignores gestures ifonCallToActionisnullSBBListItem: The trailingSBBIconButtonSmallnow not focusable ifonCallToActionisnullTooltip: Set theme matchSBBToastlook and feel- There were many minor changes in this release to match the current specifications of the Design System Mobile Sketch file
Deprecated #
SBBBaseTextStylesis now deprecated, useSBBTextStylesinstead ( see TEXTSTYLES-MIGRATION-GUIDE.md)SBBGroup: Removed variantredto match the current specificationsSBBGroup: Removed variantgreyto match the current specificationsSBBGroup: Removed fielduseBlackForDarkModeto match the current specificationsSBBGroup: Removed fieldcolorto match the current specificationsSBBSelect: Removed fieldmodalButtonLabelbecause the modal submit button has been removed to match the current specificationsSBBSelect: Removed fielditemToStringbecause it is now obsolete due to the introduction ofSelectMenuItem<T>>to match semantics ofDropdownButtonSBBCheckbox: Removed fieldsmouseCursor,materialTapTargetSize,focusNode,autofocus,shapeandsideSBBRadioButton: Removed fieldsmouseCursor,toggleable,materialTapTargetSize,focusNodeandautofocus
Fixed #
SBBTertiaryButtonLarge: Was still clickable in loading stateSBBRadioButton: Completely reworked implementation from ground up because old implementation was very heavily based on the materialRadiowidget and therefore kept breaking from changes of the material widget that came with flutter updatesSBBCheckbox: Completely reworked implementation from ground up because old implementation was very heavily based on the materialCheckboxwidget and therefore kept breaking from changes of the material widget that came with flutter updates