Skip to main content

Crate waft_cupertino

Crate waft_cupertino 

Source
Expand description

Flutter counterpart: cupertino_ui in flutter/packages, packages/cupertino_ui/lib/src.

The iOS-style widgets: colors, theme, text theme, constants, the icons, and the button.

Macros§

cupertino_route_transition_mixin_accessors
The accessors CupertinoRouteTransitionMixin asks for, for a struct whose bag is the field cupertino_route_transition.
cupertino_route_transition_mixin_modal_route_overrides
The ModalRoute overrides a CupertinoRouteTransitionMixin leaf inherits, plus waft-widgets’ modal_route_accessors!. Write it inside impl ModalRoute for MyRoute { .. }, next to the leaf’s own maintain_state.
cupertino_route_transition_mixin_route_overrides
The Route overrides a CupertinoRouteTransitionMixin leaf inherits: waft-widgets’ page_route_overrides! with dispose and did_change_previous pointed at the mixin. Write it inside impl Route for MyRoute { .. }.
cupertino_route_transition_mixin_transition_route_overrides
The TransitionRoute overrides a CupertinoRouteTransitionMixin leaf inherits, plus waft-widgets’ modal_transition_route_overrides!. Write it inside impl TransitionRoute for MyRoute { .. }, next to the leaf’s own opaque.

Structs§

CupertinoActionSheet
An iOS-style action sheet.
CupertinoActionSheetAction
The content of a typical action button in a CupertinoActionSheet.
CupertinoActionSheetActionState
Dart’s _CupertinoActionSheetActionState.
CupertinoActionSheetState
Dart’s _CupertinoActionSheetState.
CupertinoActivityIndicator
An iOS-style activity indicator that spins clockwise.
CupertinoActivityIndicatorState
Dart’s _CupertinoActivityIndicatorState.
CupertinoAdaptiveTextSelectionToolbar
The default Cupertino context menu for text selection for the current platform with the given children.
CupertinoAlertDialog
An iOS-style alert dialog.
CupertinoAlertDialogState
Dart’s _CupertinoAlertDialogState.
CupertinoApp
An application that uses Cupertino design.
CupertinoAppState
Dart’s _CupertinoAppState.
CupertinoButton
An iOS-style button.
CupertinoButtonState
Dart’s _CupertinoButtonState.
CupertinoCheckbox
A macOS style checkbox.
CupertinoCheckboxState
Dart’s _CupertinoCheckboxState.
CupertinoColors
A palette of Color constants that describe colors commonly used when matching the iOS platform aesthetics.
CupertinoDesktopTextSelectionControls
Desktop Cupertino styled text selection controls.
CupertinoDesktopTextSelectionToolbar
A macOS-style text selection toolbar.
CupertinoDesktopTextSelectionToolbarButton
A button in the style of the Mac context menu buttons.
CupertinoDesktopTextSelectionToolbarButtonState
Dart’s _CupertinoDesktopTextSelectionToolbarButtonState.
CupertinoDialogAction
A button typically used in a CupertinoAlertDialog.
CupertinoDialogActionState
Dart’s _CupertinoDialogActionState.
CupertinoDialogRoute
A dialog route that shows an iOS-style dialog.
CupertinoDynamicColor
A Color subclass that represents a family of colors, and the correct effective color in the color family.
CupertinoExpansionTile
A single-line CupertinoListTile with an expansion arrow icon that expands or collapses the tile to reveal or hide the child.
CupertinoExpansionTileState
Dart’s _CupertinoExpansionTileState.
CupertinoFocusHalo
Applies an iOS-style focus border around its child when any of child focus nodes gain focus.
CupertinoFocusHaloState
Dart’s _CupertinoFocusHaloState.
CupertinoFormRow
An iOS-style form row.
CupertinoFormSection
An iOS-style form section.
CupertinoFullscreenDialogTransition
An iOS-style transition used for summoning fullscreen dialogs.
CupertinoFullscreenDialogTransitionState
Dart’s _CupertinoFullscreenDialogTransitionState.
CupertinoIconThemeData
An IconThemeData subclass that automatically resolves its color when retrieved using IconTheme.of.
CupertinoIcons
Identifiers for the supported Cupertino icons.
CupertinoLinearActivityIndicator
An iOS-style linear activity indicator.
CupertinoListSection
An iOS-style list section.
CupertinoListTile
An iOS-style list tile.
CupertinoListTileChevron
A typical iOS trailing widget used to denote that a CupertinoListTile is a button with an action.
CupertinoListTileState
Dart’s _CupertinoListTileState.
CupertinoMagnifier
A RawMagnifier used for magnifying text in cases where a user’s finger may be blocking the point of interest, like a selection handle.
CupertinoModalPopupRoute
A route that shows a modal iOS-style popup that slides up from the bottom of the screen.
CupertinoNavigationBar
An iOS-styled navigation bar.
CupertinoNavigationBarBackButton
A nav bar back button typically used in CupertinoNavigationBar.
CupertinoNavigationBarState
Dart’s _CupertinoNavigationBarState.
CupertinoPage
A page that creates a cupertino style PageRoute.
CupertinoPageRoute
A modal route that replaces the entire screen with an iOS transition.
CupertinoPageScaffold
Implements a single iOS application page’s layout.
CupertinoPageScaffoldBackgroundColor
An InheritedWidget indicating what the current scaffold background color is for its children.
CupertinoPageScaffoldState
Dart’s _CupertinoPageScaffoldState.
CupertinoPageTransition
Provides an iOS-style page transition animation.
CupertinoPageTransitionState
Dart’s _CupertinoPageTransitionState.
CupertinoPageTransitionsBuilder
A PageTransitionsBuilder that provides an iOS-style page transition animation.
CupertinoPopupSurface
An iOS-style component for creating modal overlays like dialogs and action sheets.
CupertinoRadio
A widget that builds a RawRadio with a macOS-style UI.
CupertinoRadioState
Dart’s _CupertinoRadioState.
CupertinoRouteTransitionMixinData
The fields Dart’s CupertinoRouteTransitionMixin declares; every route that mixes it in carries this bag under the field cupertino_route_transition.
CupertinoScrollBehavior
Describes how Scrollable widgets behave for CupertinoApps.
CupertinoScrollbar
An iOS style scrollbar.
CupertinoScrollbarState
Dart’s _CupertinoScrollbarState: the CupertinoScrollbar’s state over RawScrollbarState’s shape.
CupertinoSearchTextField
A CupertinoTextField that mimics the look and behavior of UIKit’s UISearchTextField.
CupertinoSearchTextFieldState
Dart’s _CupertinoSearchTextFieldState.
CupertinoSegmentedControl
An iOS-style segmented control.
CupertinoSheetRoute
Route for displaying an iOS sheet styled page.
CupertinoSheetTransition
Provides an iOS-style sheet transition.
CupertinoSheetTransitionState
Dart’s _CupertinoSheetTransitionState.
CupertinoSlider
An iOS-style slider.
CupertinoSliderState
Dart’s _CupertinoSliderState.
CupertinoSliverNavigationBar
An iOS-styled navigation bar with iOS-11-style large titles using slivers.
CupertinoSliverNavigationBarState
Dart’s _CupertinoSliverNavigationBarState.
CupertinoSliverRefreshControl
A sliver widget implementing the iOS-style pull to refresh content control.
CupertinoSliverRefreshControlState
Dart’s _CupertinoSliverRefreshControlState.
CupertinoSpellCheckSuggestionsToolbar
The default spell check suggestions toolbar for iOS.
CupertinoSwitch
An iOS-style switch.
CupertinoSwitchState
Dart’s _CupertinoSwitchState.
CupertinoTabBar
An iOS-styled bottom navigation tab bar.
CupertinoTabController
Coordinates tab selection between a CupertinoTabBar and a CupertinoTabScaffold.
CupertinoTabScaffold
Implements a tabbed iOS application’s root layout and behavior structure.
CupertinoTabScaffoldState
Dart’s _CupertinoTabScaffoldState.
CupertinoTabView
A single tab view with its own Navigator state and history.
CupertinoTabViewState
Dart’s _CupertinoTabViewState.
CupertinoTextField
An iOS-style text field.
CupertinoTextFieldSelectionGestureDetectorBuilder
Dart’s _CupertinoTextFieldSelectionGestureDetectorBuilder.
CupertinoTextFieldState
Dart’s _CupertinoTextFieldState.
CupertinoTextMagnifier
A CupertinoMagnifier used for magnifying text in cases where a user’s finger may be blocking the point of interest, like a selection handle.
CupertinoTextMagnifierState
Dart’s _CupertinoTextMagnifierState.
CupertinoTextSelectionControls
iOS Cupertino styled text selection controls.
CupertinoTextSelectionToolbar
An iOS-style text selection toolbar.
CupertinoTextSelectionToolbarButton
A button in the style of the iOS text selection toolbar buttons.
CupertinoTextSelectionToolbarButtonState
Dart’s _CupertinoTextSelectionToolbarButtonState.
CupertinoTextThemeData
Cupertino typography theme in a CupertinoThemeData.
CupertinoTheme
Applies a visual styling theme to descendant Cupertino widgets.
CupertinoThemeData
Styling specifications for a CupertinoTheme.
CupertinoThumbPainter
Paints an iOS-style slider thumb or switch thumb.
CupertinoUserInterfaceLevel
Establishes a subtree in which CupertinoUserInterfaceLevel::of resolves to the given visual elevation from the CupertinoUserInterfaceLevelData. This can be used to apply style differences based on a widget’s elevation.
DefaultCupertinoLocalizations
US English strings for the Cupertino widgets.
InheritedCupertinoTheme
Provides a CupertinoTheme to all descendants.
NoDefaultCupertinoThemeData
Styling specifications for a cupertino theme without default values for unspecified properties.
ObstructingPreferredSizeWidgetRef
An ObstructingPreferredSizeWidget held as a value: the erased widget, whose preferred size and obstruction are still answered by the widget it holds. Dart types such a field ObstructingPreferredSizeWidget.
ObstructingPreferredSizeWidgetRefKind
The kind tag of IntoWidget for an ObstructingPreferredSizeWidgetRef.
RenderLargeTitle
Dart’s _RenderLargeTitle.
RenderSegmentedControl
Dart’s _RenderSegmentedControl.
RestorableCupertinoTabController
A RestorableProperty that knows how to store and restore a CupertinoTabController.
SegmentButton
A wrapper widget that implements RadioClient for each segment button.
SegmentButtonState
Dart’s _SegmentButtonState.
SegmentedControlContainerBoxParentData
Dart’s _SegmentedControlContainerBoxParentData.
SegmentedControlState
Dart’s _SegmentedControlState.
ShowCupertinoDialog
Displays an iOS-style dialog above the current contents of the app, with iOS-style entrance and exit animations, modal barrier color, and modal barrier behavior (by default, the dialog is not dismissible with a tap on the barrier).
ShowCupertinoModalPopup
Shows a modal iOS-style popup that slides up from the bottom of the screen.
ShowCupertinoSheet
Shows a Cupertino-style sheet widget that slides up from the bottom of the screen and stacks the previous route behind the new sheet.

Enums§

CupertinoButtonSize
The size of a CupertinoButton.
CupertinoListSectionType
Denotes what type of the list section a CupertinoListSection is.
CupertinoUserInterfaceLevelData
Indicates the visual level for a piece of content. Equivalent to UIUserInterfaceLevel from UIKit.
DatePickerDateOrder
Determines the order of the columns inside CupertinoDatePicker in date mode.
DatePickerDateTimeOrder
Determines the order of the columns inside CupertinoDatePicker in time and date time mode.
ExpansionTileTransitionMode
Defines how a CupertinoExpansionTile should transition its child between its collapsed state and its expanded state.
NavigationBarBottomMode
Modes that determine how to display the navigation bar’s bottom in relation to scroll events.
OverlayVisibilityMode
Visibility of text field overlays based on the state of the current text entry.
RefreshIndicatorMode
The current state of the refresh control.

Constants§

K_CUPERTINO_BUTTON_DEFAULT_ICON_SIZE
The default value for IconThemeData.size of CupertinoButton.child.
K_CUPERTINO_BUTTON_TAP_MOVE_SLOP
The distance a button needs to be moved after being pressed for its opacity to change.
K_CUPERTINO_BUTTON_TINTED_OPACITY_DARK
See K_CUPERTINO_BUTTON_TINTED_OPACITY_LIGHT.
K_CUPERTINO_BUTTON_TINTED_OPACITY_LIGHT
Opacity values for the background of a CupertinoButton.tinted.
K_CUPERTINO_FOCUS_COLOR_BRIGHTNESS
See K_CUPERTINO_FOCUS_COLOR_OPACITY.
K_CUPERTINO_FOCUS_COLOR_OPACITY
The relative values needed to transform a color to it’s equivalent focus outline color.
K_CUPERTINO_FOCUS_COLOR_SATURATION
See K_CUPERTINO_FOCUS_COLOR_OPACITY.
K_CUPERTINO_MODAL_BARRIER_COLOR
Barrier color for a Cupertino modal barrier.
K_MIN_INTERACTIVE_DIMENSION_CUPERTINO
The minimum dimension of any interactive region according to the iOS Human Interface Guidelines.

Traits§

CupertinoLocalizations
Defines the localized resource values used by the Cupertino widgets.
CupertinoRouteTransition
CupertinoRouteTransitionMixin on a shared reference: what Dart’s route is CupertinoRouteTransitionMixin produces, read as route.interface::<Rc<dyn CupertinoRouteTransition>>() on an AnyRoute. Every route that implements the mixin is one through its handle.
CupertinoRouteTransitionMixin
A mixin that replaces the entire screen with an iOS transition for a PageRoute.
CupertinoThemeDataOverrides
What a subclass of Dart’s CupertinoThemeData overrides, as Material’s MaterialBasedCupertinoThemeData does: the brightness, primaryColor, primaryContrastingColor and scaffoldBackgroundColor getters, and resolveFrom.
ObstructingPreferredSizeWidget
A widget that has a preferred size and reports whether it fully obstructs widgets behind it.

Functions§

build_page_transitions
Returns a CupertinoFullscreenDialogTransition if route is a full screen dialog, otherwise a CupertinoPageTransition is returned.
cupertino_desktop_text_selection_controls
Text selection controls that follow MacOS design conventions.
cupertino_desktop_text_selection_handle_controls
Text selection handle controls that follow MacOS design conventions.
cupertino_text_selection_controls
Text selection controls that follow iOS design conventions.
cupertino_text_selection_handle_controls
Text selection handle controls that follow iOS design conventions.
debug_check_has_cupertino_localizations
Asserts that the given context has a Localizations ancestor that contains a CupertinoLocalizations delegate.
debug_is_vibrance_painted
Whether or not the area beneath a CupertinoPopupSurface should be saturated with a ColorFilter.
install_cupertino_icon_font
Registers the bundled Cupertino icons font with the app-wide font collection, which is what the cupertino_icons font asset declaration in pubspec.yaml does in Flutter.
k_cupertino_button_min_size
The minimum size of a CupertinoButton based on the CupertinoButtonSize.
k_cupertino_button_padding
The padding values for the different CupertinoButtonSizes.
k_cupertino_button_size_border_radius
The border radius values for the different CupertinoButtonSizes.
set_debug_is_vibrance_painted
Sets debug_is_vibrance_painted.

Type Aliases§

CupertinoToolbarBuilder
The type for a Function that builds a toolbar’s container with the given child.
RefreshCallback
A callback function that’s invoked when the CupertinoSliverRefreshControl is pulled a refresh_trigger_pull_distance. Must return a Task. Upon completion of the Task, the CupertinoSliverRefreshControl enters the RefreshIndicatorMode::Done state and will start to go away.
RefreshControlIndicatorBuilder
Signature for a builder that can create a different widget to show in the refresh indicator space depending on the current state of the refresh control and the space available.