senior_design_system library Null safety

Classes

CardCheckboxConfig
CardDismissibleAction
CardDismissibleConfig
CardHighLightBorder
SelectAllConfig
SeniorActionButton
SeniorActionButtonStyle
SeniorActionButtonThemeData
SeniorAppBarAction
SeniorAppBarCustom
SeniorAppBarHome
SeniorAppBarPage
SeniorBackdrop
SeniorBackdropStyle
SeniorBackdropTabBarInfo
SeniorBackdropThemeData
SeniorBadge
SeniorBalance
SeniorBalanceStyle
SeniorBalanceThemeData
SeniorBottomNavigationBar
SeniorBottomNavigationBarItem
SeniorBottomNavigationBarStyle
SeniorBottomNavigationBarThemeData
SeniorBottomSheet
SeniorBottomSheetStyle
SeniorBottomSheetThemeData
SeniorButton
SeniorButtonStyle
SeniorButtonThemeData
SeniorCalendar<T extends EventCalendarInterface>
SeniorCalendarStyle
SeniorCalendarThemeData
SeniorCard
SeniorCardStyle
SeniorCardThemeData
SeniorCarouselSlider
SeniorCarouselSliderStyle
SeniorCarouselSliderThemeData
SeniorCheckbox
SeniorCheckboxStyle
SeniorCheckboxThemeData
SeniorColorfulHeaderStructure
SeniorContactBookItem
SeniorContactBookItemStyle
SeniorContactBookItemThemeData
SeniorDraggableItem
SeniorDraggableList
SeniorDrawer
SeniorDrawerItem
SeniorDrawerStyle
SeniorDrawerThemeData
SeniorDropdownButton<T>
SeniorDropdownButtonItem
SeniorDropdownButtonStyle
SeniorDropdownButtonThemeData
SeniorElevatedElement
SeniorEvaluation
SeniorExpansionPanelList
SeniorExpansionPanelListStyle
SeniorExpansionPanelListThemeData
SeniorGradientIcon
SeniorGradientIconStyle
SeniorGradientIconThemeData
SeniorIconButton
SeniorIconButtonStyle
SeniorIconButtonThemeData
SeniorImageCropper
SeniorInfoCard
SeniorInfoCardStyle
SeniorInfoCardThemeData
SeniorList
SeniorListItem
SeniorListStyle
SeniorListThemeData
SeniorLoading
SeniorLoadingStyle
SeniorLoadingThemeData
SeniorLongPressButton
SeniorLongPressButtonStyle
SeniorLongPressButtonThemeData
SeniorMenuItemList
SeniorMenuListItemStyle
SeniorMenuListItemThemeData
SeniorMessageCard
SeniorMessageCardFeedbackOptions
SeniorMessageCardStyle
SeniorMessageCardThemeData
SeniorModal
SeniorModalDefinitions
SeniorModalStyle
SeniorModalThemeData
SeniorMultidropdownButton
SeniorNotification
SeniorNotificationList
SeniorNotificationListStyle
SeniorNotificationListThemeData
SeniorNotificationSnackbar
SeniorNotificationSnackBarAction
SeniorPanelData
SeniorPinCodeFields
SeniorPinCodeFieldStyle
SeniorPinCodeFieldThemeData
SeniorProfilePicture
SeniorProfilePictureStyle
SeniorProfilePictureThemeData
SeniorProgressBar
SeniorProgressBarStyle
SeniorProgressBarThemeData
SeniorQuotes
SeniorQuotesStyle
SeniorQuotesThemeData
SeniorRadioButton<T>
SeniorRadioButtonStyle
SeniorRadioButtonThemeData
SeniorRating
SeniorRatingStyle
SeniorRatingThemeData
SeniorSignature
SeniorSignatureStyle
SeniorSignatureThemeData
SeniorSliderDots
SeniorSliderDotsStyle
SeniorSliderDotsThemeData
SeniorSlideToAct
SeniorSlideToActState
SeniorSlideToActStyle
SeniorSlideToActThemeData
SeniorSnackBar
SeniorSnackBarAction
SeniorSnackbarStyle
SeniorSnackbarThemeData
SeniorSquareButtonsMenu
SeniorSquareButtonsMenuItemData
SeniorSquareButtonsMenuStyle
SeniorSquareButtonsMenuThemeData
SeniorStatePage
SeniorStatePageIcon
SeniorStatePageImage
SeniorStatePageStyle
SeniorStatePageThemeData
SeniorStepper
SeniorStepperStyle
SeniorStepperThemeData
SeniorSuccessAnimation
SeniorSuccessAnimationStyle
SeniorSuccessAnimationThemeData
SeniorSwitch
SeniorSwitchStyle
SeniorSwitchThemeData
SeniorTabBar
SeniorTabBarStyle
SeniorTabBarThemeData
SeniorTabIndicator
SeniorTextField
SeniorTextFieldStyle
SeniorTextFieldThemeData
SeniorTimelineIndicator
SeniorTimelineStyle
SeniorTimelineThemeData
SignatureData
Timeline

Constants

BUTTON_MAX_WIDTH → const double
600
kDefaultBorderRadius → const BorderRadius
const BorderRadius.all(Radius.circular(SeniorRadius.xsmall))
kDefaultBoxShadow → const List<BoxShadow>
const [BoxShadow(color: Colors.black26, offset: Offset(0.0, 1.0), spreadRadius: 0.2, blurRadius: 4)]

Functions

showTopSnackBar({required BuildContext context, required SeniorNotificationSnackbar child, OverlayState? overlayState}) → void

Enums

AppBarStyle
CardBorderPosition
The possible positions for the highlighted edge of the card. It can be CardBorderPosition.left and CardBorderPosition.bottom.
CardCheckboxPosition
The possible positions for the card's checkbox. It can be CardBorderPosition.left and CardCheckboxPosition.right.
DrawerItemType
The possible types for the items in the drawer. It can be DrawerItemType.emphasis, DrawerItemType.bold and DrawerItemType.neutral.
InfoType
Types of information that are displayed in the component. The types are InfoType.expense and InfoType.revenue.
ItemType
The possible types for the list items. It can be ItemType.emphasis, ItemType.emphasisBold, ItemType.neutral and ItemType.neutralBold.
SeniorActionButtonSize
The possible sizes for the SeniorActionButton. It can be SeniorActionButtonSize.small and SeniorActionButtonSize.medium.
SeniorBadgeShape
Possible shapes for SeniorBadge.
SeniorButtonSize
SeniorButtonType
SeniorElevations
The possible elevations for the SeniorElevatedElement component. It can be dp0, dp01, dp02, dp03, dp04, dp06, dp08, dp09, dp12, dp16 and dp24.
SeniorIconButtonSize
Icon button size.
SeniorIconButtonType
Icon button types
SeniorMessageCardFeedbacks
Options for card feedback. This could be SeniorMessageCardFeedbacks.neutral, SeniorMessageCardFeedbacks.thumbsUp and SeniorMessageCardFeedbacks.thumbsDown.
SeniorSquareButtonsMenuItemType
The types of buttons for the Senior Square Button MenuItem component. It can be SeniorSquareButtonsMenuItemType.emphasis, SeniorSquareButtonsMenuItemType.neutral and SeniorSquareButtonsMenuItemType.ghost.
SeniorSwitchTitlePosition
The possible SeniorSwitch title positions. It can be SeniorSwitchTitlePosition.left and SeniorSwitchTitlePosition.right.
StatusChip
StatusIconTag
StatusPill
WeekdayFormat

Typedefs

ChangeFeedbackCallback = void Function(SeniorMessageCardFeedbacks)
DayBuilder = Widget? Function(bool isSelectable, int index, bool isSelectedDay, bool isToday, bool isPrevMonthDay, TextStyle textStyle, bool isNextMonthDay, bool isThisMonthDay, bool isWeekendDay, DateTime day)
This builder is called for every day in the calendar. If you want to build only few custom day containers, return null for the days you want to leave with default looks All characteristics like circle border are also applied to the custom day container DayBuilder provides. (if supplied function returns null, Calendar's function will be called for day). isSelectable - is between SeniorCalendar.minSelectedDate and SeniorCalendar.maxSelectedDate index - DOES NOT equal day number! Index of the day built in current visible field isSelectedDay - if the day is selected isToday - if the day is similar to DateTime.now() isPrevMonthDay - if the day is from previous month textStyle - text style that would have been applied by the calendar if it was to build the day. Example: if the user provided SeniorCalendar.todayTextStyle and isToday is true, SeniorCalendar.todayTextStyle would be sent into DayBuilder's textStyle. If user didn't provide it, default SeniorCalendar's textStyle would be sent. Same applies to all text styles like SeniorCalendar.prevDaysTextStyle, SeniorCalendar.daysTextStyle etc. isNextMonthDay - if the day is from next month isThisMonthDay - if the day is from next month day - day being built. isWeekendDay - if the day is a weekend day.
MarkedDateIconBuilder<T> = Widget? Function(T event)
OnDayLongPressed = void Function(DateTime day)
WeekdayBuilder = Widget Function(int weekday, String weekdayName)
This builder is called for every weekday container (7 times, from Mon to Sun). weekday - weekday built, from 0 to 6. weekdayName - string representation of the weekday (Mon, Tue, Wed, etc).