sbb_design_system_mobile library

Classes

ClosableBoxController
LoadingAnimation
LoadingAnimationState
PromotionBoxStyle
SBBAccordion
The SBB Accordion - heavily inspired be the material expansion panel list. Use according to documentation.
SBBAccordionItem
The SBB Accordion item - heavily inspired be the material expansion panel. Use according to documentation.
SBBAutocompletion<T>
SBB Autocompletion, BETA!
SBBAutocompletionState<T>
SBBBaseStyle
SBBBasicControlStyle
SBBButtonStyle
SBBButtonStyles
SBBCheckbox
The SBB Checkbox. Use according to documentation.
SBBCheckboxListItem
SBB Checkbox Item. Use according to documentation.
SBBChip
The SBB Chip. Use according to documentation.
SBBChipStyle
SBBColors
The colors as defined in https://digital.sbb.ch/de/brand_elemente/farben
SBBControlStyle
SBBControlStyles
SBBDateInput
SBB Date Input Field. Use according to documentation.
SBBDatePicker
SBB Date Picker. Use according to documentation.
SBBDateTimeInput
SBB Date Time Input Field. Use according to documentation.
SBBDateTimePicker
SBB Date Time Picker. Use according to documentation.
SBBFontFamily
Provides constants for all font families defined in the SBB design system mobile.
SBBGroup
SBB Group. Use according to documentation.
SBBHeader
The SBB Header. Use according to documentation.
SBBHeaderbox
The SBB Headerbox. Use according to documentation
SBBHeaderboxFlap
Use in combination with the SBBHeaderbox for the flap argument.
SBBHeaderBoxStyle
SBBIconButtonLarge
SBBIconButtonLarge. Use this as SBBTertiaryButtonLarge without label.
SBBIconButtonSmall
SBBIconButtonSmall. Use this as SBBTertiaryButtonSmall without label.
SBBIconButtonSmallNegative
Negative variant of the SBBIconButtonSmall.
SBBIcons
SBBIconsIndex
SBBInputTrigger
Widget that mimics the visuals of an SBBTextField but has an onPressed callback instead of the text field functionality.
SBBInputTriggerIconWidget
Icon widget used by SBBInputTrigger.
SBBLinkText
SBB Link. Use according to documentation.
SBBLinkTextState
SBBListHeader
SBB List Header. Use according to documentation.
SBBListItem
SBB List Item. Use according to documentation.
SBBListItemStyle
SBBLoadingIndicator
The SBB LoadingIndicator. Use according to documentation.
The SBB Logo also known as the SBB Signet. Use according to documentation.
SBBMessage
The SBB Message. Use according to documentation.
SBBModalPopup
The SBB Modal Popup. Use according to documentation.
SBBModalSheet
The SBB Modal Sheet. Use according to documentation.
SBBMultiSelect<T>
SBB Select (multiple values). Use according to documentation.
SBBNotificationBox
SBBOnboarding
The SBB Onboarding. Use according to documentation.
SBBOnboardingBuilderDelegate
SBBOnboardingCard
SBBOnboardingNotification
SBBOnboardingState
SBBPagination
The SBB Pagination.
SBBPaginationStyle
SBBPicker
SBB Picker. Use according to documentation.
SBBPickerItem
Represents an item in the SBBPickerScrollView that is used by SBBPicker.
SBBPickerScrollController
A scroll controller for SBBPickerScrollView that is used by SBBPicker.
SBBPickerScrollView
A box in which children on a wheel can be scrolled. Should only be used in combination with SBBPicker.custom.
SBBPickerStyle
SBBPrimaryButton
The SBB Primary Button. Use according to documentation.
SBBPromotionBox
The SBB Promotion Box. Use according to documentation
SBBRadio<T>
The SBB Radio Button. Use according to documentation.
SBBRadioListItem<T>
SBB Radio Button List Item. Use according to documentation.
SBBSecondaryButton
The SBB Secondary Button. Use according to documentation.
SBBSegmentedButton
SBB Segmented Button. Use according to documentation.
SBBSegmentedButtonInnerStyle
SBBSegmentedButtonStyle
SBBSelect<T>
SBB Select (single value). Use according to documentation.
SBBSlider
The SBB Slider. Use according to documentation.
SBBSliderStyle
SBBSliverHeaderbox
The SBB Sliver Headerbox. Use according to documentation
SBBStatus
SBBStepper
SBB Stepper widget.
SBBStepperItem
SBBSwitch
The SBB Switch. Use according to documentation
SBBSwitchListItem
The SBB Switch List Item. Use according to documentation
SBBSwitchStyle
SBBTabBar
The TabBar for SBB themed apps with multiple tabs. Items is a list of all tabs that should be shown in the TabBar. OnTabChanged defines what happens when a tab is selected. OnTap gets called when a tab is tapped.
SBBTertiaryButtonLarge
Large variant of the SBB Tertiary Button. Use according to documentation.
SBBTertiaryButtonSmall
Small variant of the SBB Tertiary Button. Use according to documentation.
SBBTextField
The SBB TextField. Use according to documentation.
SBBTextFieldStyle
SBBTextFormField
The SBB TextFormField.
SBBTextStyle
SBBTextStyles
Provides constants for all text styles defined in the SBB design system mobile.
SBBTheme
SBBTimeInput
SBB Time Input Field. Use according to documentation.
SBBTimePicker
SBB Time Picker. Use according to documentation.
SBBToast
SBB Toast. Use according to documentation.
SegmentedButtonState
SelectMenuItem<T>
An item in a menu created by a SBBSelect or SBBMultiSelect.
TabBarController
TabBarFiller
A filler item for the usage of SBBTabBar together with a ScrollView and a Stack to achieve a scroll behind the Tab Bar effect. Add TabBarFiller as the last element to make all element in a ScrollView visible.
TabBarItem
Description of an Element in the SBBTabBar
TabBarNavigationData
The data of the current state of the SBBTabBar
Toast
ToastState

Constants

largeFontFamily → const String
mediumFontFamily → const String
sbbDefaultSpacing → const double
sbbFont → const String
Global constant for default SBB font family SBBFontFamily.sbbFontLight.
sbbIconSizeLarge → const double
sbbIconSizeMedium → const double
sbbIconSizeSmall → const double
sbbTextStyle → const TextStyle
Global constant for default SBB text style for easier use of extension methods defined in TextStylesExtensions.
smallFontFamily → const String

Functions

showCustomSBBModalSheet<T>({required BuildContext context, required Widget header, required Widget child, bool useRootNavigator = true, bool useSafeArea = true, bool enableDrag = true, bool showCloseButton = true, Color? backgroundColor, BoxConstraints? constraints}) Future<T?>
Shows an SBB Modal Sheet. Use according to documentation.
showSBBModalPopup<T>({required BuildContext context, required String title, required Widget child, Clip clipBehavior = Clip.none, bool showCloseButton = true, Color? backgroundColor}) Future<T?>
Shows a SBB Modal Popup. Use according to documentation.
showSBBModalSheet<T>({required BuildContext context, required String title, required Widget child, bool useRootNavigator = true, bool useSafeArea = true, bool enableDrag = true, bool showCloseButton = true, BoxConstraints? constraints, Color? backgroundColor}) Future<T?>
Shows an SBB Modal Sheet. Use according to documentation.

Typedefs

AccordionCallback = void Function(int index, bool isExpanded)
Signature for the callback that's called when an SBBAccordionItem is expanded or collapsed.
AutoCompleteOverlayItemBuilder<T> = Widget Function(BuildContext context, T suggestion)
ButtonLabelBuilder = Widget Function(BuildContext context, String label)
Filter<T> = bool Function(T suggestion, String query)
InputEventCallback<T> = dynamic Function(T data)
OnLaunchCallback = void Function(String link)
OnStepPressedCallback = void Function(SBBStepperItem item, int index)
SBBControlStyleSelector<T> = T? Function(SBBControlStyles s)
SBBPickerScrollViewItemBuilder = SBBPickerItem? Function(BuildContext context, int index)
Signature for a function that creates a SBBPickerItem for a given index, but may return null.
SegmentedButtonWidgetBuilder = Widget Function(SBBSegmentedButtonStyle? style, bool selected)
SelectionValidation<T> = bool Function(List<T> oldSelection, List<T> newSelection)
Signature for custom selection validation to be used in SBBMultiSelect to determine whether the submit button is enabled or not.
SingleAccordionCallback = void Function(bool isExpanded)
Variant of AccordionCallback for constructor SBBAccordion.single
StringCallback = dynamic Function(String data)