sbb_design_system_mobile 2.0.0 sbb_design_system_mobile: ^2.0.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 #
2.0.0 - 2024-09-06 #
Changed #
- Renamed
SBBStatusMobile
toSBBStatus
Fixed #
- Bugfix for semantics in
SBBSegmentedButton
Removed #
-
Removed web widgets:
SBBBreadcrumb
SBBCard
SBBDropdown
SBBGhostButton
SBBMenu
SBBResponsive
SBBSidebar
SBBStatus
(is now mobile default)SBBUserMenu
SBBWebHeader
SBBWebNotification
-
Remove deprecated
SBBBaseTextStyles
-
Removed web typography:
SBBLeanTextStyles
SBBWebText
SBBWebTextStyles
-
Removed web mode from the following widgets:
SBBAccordion
SBBAutocompletion
SBBCheckbox
SBBCheckboxListItem
SBBIconButton
(all variants)SBBLinkText
(including refactoring)SBBListItem
SBBLoadingIndicator
SBBPrimaryButton
SBBRadioButton
SBBRadioButtonListItem
SBBSelect
SBBSecondaryButton
SBBTextField
SBBTextFormField
SBBToast
-
Removed
HostPlatform
fromSBBTheme
-
Removed and cleaned web parts in
SBBControlStyles
-
Removed web parts in
SBBButtonStyles
-
Removed web mode in example app
-
Removed deprecated
onCallToAction
from SBBListItem -
Removed deprecated
SBBIconTextButton
1.6.0 - 2024-09-04 #
Changed #
- (#164) Updated icon version to
1.0.3
(was1.0.0
).
Deprecated #
- (#162) Deprecated Web Widgets:
SBBResponsive
SBBWebHeader
SBBMenu
SBBUserMenu
SBBCard
SBBSidebar
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
showModal
inSBBDatePicker
,SBBDateTimePicker
,SBBTimePicker
- Minimum supported dart sdk is 3.3.0.
Deprecated #
- (#142) Deprecated Web Components:
SBBStatus
SBBWebLogo
SBBLeanTextStyles
SBBWebText
SBBWebTextStyles
SBBBreadcrumb
Fixed #
- (#113)
SBBTimePicker
: Added support for time ranges that span over midnight
1.4.0 - 2024-06-07 #
Added #
- (#133) Added the
SBBStepper
digital.sbb.ch#figma - (#153)
SBBModalSheet
: Added parametersuseSafeArea
andenableDrag
to global functionsshowSBBModalSheet
andshowCustomSBBModalSheet
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
: MakeSBBMessage
only 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.subtitle
getter.
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 constructorcustom
for custom trailing WidgetSBBListItem
: Added constructorbutton
for button variant
Changed #
SBBBaseStyle
: Changed value oflabelColor
to match current specificationsSBBListItemStyle
: Changed color values to match current specificationsSBBListItem
: Default constructor builds (trailing) icon variant instead of button variant whentrailingIcon
is notnull
- For backwards compatibility default constructor still builds button variant if
onCallToAction
is notnull
- For backwards compatibility default constructor still builds button variant if
Deprecated #
SBBListItem
: ParameteronCallToAction
is nowdeprecated
- Use the newly added constructor
custom
for 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 colorgreen
to 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 fieldwarningIndex
TabItemWidget
: Added fieldwarning
(with default valuefalse
)
SBBSegmentedButton
: Added more fields to customiseSBBSegmentedButton
: Added fieldborderColor
SBBSegmentedButton
: 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
ThemeExtensions
introduced in Flutter 3 SBBLeanLogo
renamed toSBBWebLogo
0.6.0 - 2022-05-19 #
Changed #
- Migration to Flutter 3.0.0
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 fieldhostType
SBBIcons
: Added new iconsSBBThemeData
: Added functionallStates
SBBThemeData
: Added functionresolveStateWith
SBBTextField
: Added fieldautofocus
SBBTextFormField
: Added fieldautofocus
SBBTextField
: Added fieldautofocus
SBBTextFormField
: Added fieldautofocus
SBBMultiSelect
: Added fieldselectionValidation
and static functiondefaultSelectionValidation
for custom selection validationSBBSelect
: Added fieldallowMultilineLabel
SBBSelect
: Added fieldhint
SBBAccordion
: Added fieldtitleMaxLines
(with default valuenull
, meaning titles are now multiline by default)SBBAccordion
: Added constructorsingle
for 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.defaultRootContainerPadding
SBBSelect
: Adjusted paddings to match the current specificationsSBBMultiSelect
: Adjusted paddings to match the current specificationsSBBRadioButtonListItem
: Adjusted paddings to match the current specificationsSBBSelect
: Fieldlabel
is 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 constructorcustom
for header customizingSBBToast
: Added fieldbottom
Changed #
SBBTextStyles
: AdjustedfontSize
andheight
values to match the current specificationsSBBListHeader
: Adjusted paddings to match the current specificationsSBBTextField
: Adjusted paddings to match the current specifications
Deprecated #
SBBListHeader
: Removed fieldsicon
andonCallToAction
to 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 fieldallowMultilineLabel
SBBRadioButtonListItem
: Added fieldsecondaryLabel
SBBIcons
: 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 methodcopyWith
for easier theme customizingSBBThemeData
: Added fielddefaultTextStyle
SBBThemeData
: Added fieldheaderButtonBackgroundColorHighlighted
SBBColors
: Added constantmidnight
SBBHeader
: Added fieldsbbSignetTooltip
SBBTertiaryButtonLarge
: Added fieldicon
SBBTertiaryButtonSmall
: Added fieldicon
SBBCheckboxListItem
: Added fieldallowMultilineLabel
SBBCheckboxListItem
: Added fieldsecondaryLabel
SBBTextField
: Added fieldhintMaxLines
SBBSelect
: Added classSelectMenuItem<T>>
that is now to be used for the items list to match semantics ofDropdownButton
SBBSelect
: Added static methodshowMenu<T>()
that can now be used to directly show the SBBSelect menu without building the widgetSBBModalPopup
: Added fieldclipBehavior
for clipping possibilities if popup content overflows.
Changed #
- Null safety migration
SBBThemeData
: Constructorslight
anddark
no longer have parameters because it is now obsolete due to the introduction ofcopyWith
SBBHeader
: Set value ofAppBar.brightness
toBrightness.dark
, which means that the icons in the status bar are now always white, regardless of the themeSBBHeader
: Set value ofAppBar.titleSpacing
to0.0
to allow more characters in titleSBBHeader
: Set value ofAppBar.titleSpacing
to0.0
to allow more characters in titleSBBSelect
: Renamed fieldlabelText
tolabel
SBBSelect
: Renamed fieldmodalTitle
totitle
SBBSelect
: Changed field type ofitems
fromList<T>
toList<SelectMenuItem<T>>
to match semantics ofDropdownButton
SBBListItem
: The trailingSBBIconButtonSmall
now ignores gestures ifonCallToAction
isnull
SBBListItem
: The trailingSBBIconButtonSmall
now not focusable ifonCallToAction
isnull
Tooltip
: Set theme matchSBBToast
look and feel- There were many minor changes in this release to match the current specifications of the Design System Mobile Sketch file
Deprecated #
SBBBaseTextStyles
is now deprecated, useSBBTextStyles
instead (see TEXTSTYLES-MIGRATION-GUIDE.md)SBBGroup
: Removed variantred
to match the current specificationsSBBGroup
: Removed variantgrey
to match the current specificationsSBBGroup
: Removed fielduseBlackForDarkMode
to match the current specificationsSBBGroup
: Removed fieldcolor
to match the current specificationsSBBSelect
: Removed fieldmodalButtonLabel
because the modal submit button has been removed to match the current specificationsSBBSelect
: Removed fielditemToString
because it is now obsolete due to the introduction ofSelectMenuItem<T>>
to match semantics ofDropdownButton
SBBCheckbox
: Removed fieldsmouseCursor
,materialTapTargetSize
,focusNode
,autofocus
,shape
andside
SBBRadioButton
: Removed fieldsmouseCursor
,toggleable
,materialTapTargetSize
,focusNode
andautofocus
Fixed #
SBBTertiaryButtonLarge
: Was still clickable in loading stateSBBRadioButton
: Completely reworked implementation from ground up because old implementation was very heavily based on the materialRadio
widget 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 materialCheckbox
widget and therefore kept breaking from changes of the material widget that came with flutter updates
0.1.0 - 2021-02-05 #
Added #
- Added more widgets
Changed #
- Changed a lot
0.0.2 - 2021-01-15 #
Added #
- Added a lot of widgets
Changed #
- Changed a lot
0.0.1 - 2020-05-29 #
Added #
- Initial project setup
- Added some widgets