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
CupertinoRouteTransitionMixinasks for, for a struct whose bag is the fieldcupertino_route_transition. - cupertino_
route_ transition_ mixin_ modal_ route_ overrides - The
ModalRouteoverrides aCupertinoRouteTransitionMixinleaf inherits, pluswaft-widgets’modal_route_accessors!. Write it insideimpl ModalRoute for MyRoute { .. }, next to the leaf’s ownmaintain_state. - cupertino_
route_ transition_ mixin_ route_ overrides - The
Routeoverrides aCupertinoRouteTransitionMixinleaf inherits:waft-widgets’page_route_overrides!withdisposeanddid_change_previouspointed at the mixin. Write it insideimpl Route for MyRoute { .. }. - cupertino_
route_ transition_ mixin_ transition_ route_ overrides - The
TransitionRouteoverrides aCupertinoRouteTransitionMixinleaf inherits, pluswaft-widgets’modal_transition_route_overrides!. Write it insideimpl TransitionRoute for MyRoute { .. }, next to the leaf’s ownopaque.
Structs§
- Cupertino
Action Sheet - An iOS-style action sheet.
- Cupertino
Action Sheet Action - The content of a typical action button in a
CupertinoActionSheet. - Cupertino
Action Sheet Action State - Dart’s
_CupertinoActionSheetActionState. - Cupertino
Action Sheet State - Dart’s
_CupertinoActionSheetState. - Cupertino
Activity Indicator - An iOS-style activity indicator that spins clockwise.
- Cupertino
Activity Indicator State - Dart’s
_CupertinoActivityIndicatorState. - Cupertino
Adaptive Text Selection Toolbar - The default Cupertino context menu for text selection for the current platform with the given children.
- Cupertino
Alert Dialog - An iOS-style alert dialog.
- Cupertino
Alert Dialog State - Dart’s
_CupertinoAlertDialogState. - Cupertino
App - An application that uses Cupertino design.
- Cupertino
AppState - Dart’s
_CupertinoAppState. - Cupertino
Button - An iOS-style button.
- Cupertino
Button State - Dart’s
_CupertinoButtonState. - Cupertino
Checkbox - A macOS style checkbox.
- Cupertino
Checkbox State - Dart’s
_CupertinoCheckboxState. - Cupertino
Colors - A palette of
Colorconstants that describe colors commonly used when matching the iOS platform aesthetics. - Cupertino
Desktop Text Selection Controls - Desktop Cupertino styled text selection controls.
- Cupertino
Desktop Text Selection Toolbar - A macOS-style text selection toolbar.
- Cupertino
Desktop Text Selection Toolbar Button - A button in the style of the Mac context menu buttons.
- Cupertino
Desktop Text Selection Toolbar Button State - Dart’s
_CupertinoDesktopTextSelectionToolbarButtonState. - Cupertino
Dialog Action - A button typically used in a
CupertinoAlertDialog. - Cupertino
Dialog Action State - Dart’s
_CupertinoDialogActionState. - Cupertino
Dialog Route - A dialog route that shows an iOS-style dialog.
- Cupertino
Dynamic Color - A
Colorsubclass that represents a family of colors, and the correct effective color in the color family. - Cupertino
Expansion Tile - A single-line
CupertinoListTilewith an expansion arrow icon that expands or collapses the tile to reveal or hide thechild. - Cupertino
Expansion Tile State - Dart’s
_CupertinoExpansionTileState. - Cupertino
Focus Halo - Applies an iOS-style focus border around its child when any of child focus nodes gain focus.
- Cupertino
Focus Halo State - Dart’s
_CupertinoFocusHaloState. - Cupertino
Form Row - An iOS-style form row.
- Cupertino
Form Section - An iOS-style form section.
- Cupertino
Fullscreen Dialog Transition - An iOS-style transition used for summoning fullscreen dialogs.
- Cupertino
Fullscreen Dialog Transition State - Dart’s
_CupertinoFullscreenDialogTransitionState. - Cupertino
Icon Theme Data - An
IconThemeDatasubclass that automatically resolves itscolorwhen retrieved usingIconTheme.of. - Cupertino
Icons - Identifiers for the supported Cupertino icons.
- Cupertino
Linear Activity Indicator - An iOS-style linear activity indicator.
- Cupertino
List Section - An iOS-style list section.
- Cupertino
List Tile - An iOS-style list tile.
- Cupertino
List Tile Chevron - A typical iOS trailing widget used to denote that a
CupertinoListTileis a button with an action. - Cupertino
List Tile State - Dart’s
_CupertinoListTileState. - Cupertino
Magnifier - A
RawMagnifierused for magnifying text in cases where a user’s finger may be blocking the point of interest, like a selection handle. - Cupertino
Modal Popup Route - A route that shows a modal iOS-style popup that slides up from the bottom of the screen.
- Cupertino
Navigation Bar - An iOS-styled navigation bar.
- Cupertino
Navigation BarBack Button - A nav bar back button typically used in
CupertinoNavigationBar. - Cupertino
Navigation BarState - Dart’s
_CupertinoNavigationBarState. - Cupertino
Page - A page that creates a cupertino style
PageRoute. - Cupertino
Page Route - A modal route that replaces the entire screen with an iOS transition.
- Cupertino
Page Scaffold - Implements a single iOS application page’s layout.
- Cupertino
Page Scaffold Background Color - An
InheritedWidgetindicating what the current scaffold background color is for its children. - Cupertino
Page Scaffold State - Dart’s
_CupertinoPageScaffoldState. - Cupertino
Page Transition - Provides an iOS-style page transition animation.
- Cupertino
Page Transition State - Dart’s
_CupertinoPageTransitionState. - Cupertino
Page Transitions Builder - A
PageTransitionsBuilderthat provides an iOS-style page transition animation. - Cupertino
Popup Surface - An iOS-style component for creating modal overlays like dialogs and action sheets.
- Cupertino
Radio - A widget that builds a
RawRadiowith a macOS-style UI. - Cupertino
Radio State - Dart’s
_CupertinoRadioState. - Cupertino
Route Transition Mixin Data - The fields Dart’s
CupertinoRouteTransitionMixindeclares; every route that mixes it in carries this bag under the fieldcupertino_route_transition. - Cupertino
Scroll Behavior - Describes how
Scrollablewidgets behave forCupertinoApps. - Cupertino
Scrollbar - An iOS style scrollbar.
- Cupertino
Scrollbar State - Dart’s
_CupertinoScrollbarState: theCupertinoScrollbar’s state overRawScrollbarState’s shape. - Cupertino
Search Text Field - A
CupertinoTextFieldthat mimics the look and behavior of UIKit’sUISearchTextField. - Cupertino
Search Text Field State - Dart’s
_CupertinoSearchTextFieldState. - Cupertino
Segmented Control - An iOS-style segmented control.
- Cupertino
Sheet Route - Route for displaying an iOS sheet styled page.
- Cupertino
Sheet Transition - Provides an iOS-style sheet transition.
- Cupertino
Sheet Transition State - Dart’s
_CupertinoSheetTransitionState. - Cupertino
Slider - An iOS-style slider.
- Cupertino
Slider State - Dart’s
_CupertinoSliderState. - Cupertino
Sliver Navigation Bar - An iOS-styled navigation bar with iOS-11-style large titles using slivers.
- Cupertino
Sliver Navigation BarState - Dart’s
_CupertinoSliverNavigationBarState. - Cupertino
Sliver Refresh Control - A sliver widget implementing the iOS-style pull to refresh content control.
- Cupertino
Sliver Refresh Control State - Dart’s
_CupertinoSliverRefreshControlState. - Cupertino
Spell Check Suggestions Toolbar - The default spell check suggestions toolbar for iOS.
- Cupertino
Switch - An iOS-style switch.
- Cupertino
Switch State - Dart’s
_CupertinoSwitchState. - Cupertino
TabBar - An iOS-styled bottom navigation tab bar.
- Cupertino
TabController - Coordinates tab selection between a
CupertinoTabBarand aCupertinoTabScaffold. - Cupertino
TabScaffold - Implements a tabbed iOS application’s root layout and behavior structure.
- Cupertino
TabScaffold State - Dart’s
_CupertinoTabScaffoldState. - Cupertino
TabView - A single tab view with its own
Navigatorstate and history. - Cupertino
TabView State - Dart’s
_CupertinoTabViewState. - Cupertino
Text Field - An iOS-style text field.
- Cupertino
Text Field Selection Gesture Detector Builder - Dart’s
_CupertinoTextFieldSelectionGestureDetectorBuilder. - Cupertino
Text Field State - Dart’s
_CupertinoTextFieldState. - Cupertino
Text Magnifier - A
CupertinoMagnifierused for magnifying text in cases where a user’s finger may be blocking the point of interest, like a selection handle. - Cupertino
Text Magnifier State - Dart’s
_CupertinoTextMagnifierState. - Cupertino
Text Selection Controls - iOS Cupertino styled text selection controls.
- Cupertino
Text Selection Toolbar - An iOS-style text selection toolbar.
- Cupertino
Text Selection Toolbar Button - A button in the style of the iOS text selection toolbar buttons.
- Cupertino
Text Selection Toolbar Button State - Dart’s
_CupertinoTextSelectionToolbarButtonState. - Cupertino
Text Theme Data - Cupertino typography theme in a
CupertinoThemeData. - Cupertino
Theme - Applies a visual styling theme to descendant Cupertino widgets.
- Cupertino
Theme Data - Styling specifications for a
CupertinoTheme. - Cupertino
Thumb Painter - Paints an iOS-style slider thumb or switch thumb.
- Cupertino
User Interface Level - Establishes a subtree in which
CupertinoUserInterfaceLevel::ofresolves to the given visual elevation from theCupertinoUserInterfaceLevelData. This can be used to apply style differences based on a widget’s elevation. - Default
Cupertino Localizations - US English strings for the Cupertino widgets.
- Inherited
Cupertino Theme - Provides a
CupertinoThemeto all descendants. - NoDefault
Cupertino Theme Data - Styling specifications for a cupertino theme without default values for unspecified properties.
- Obstructing
Preferred Size Widget Ref - An
ObstructingPreferredSizeWidgetheld as a value: the erased widget, whose preferred size and obstruction are still answered by the widget it holds. Dart types such a fieldObstructingPreferredSizeWidget. - Obstructing
Preferred Size Widget RefKind - The kind tag of
IntoWidgetfor anObstructingPreferredSizeWidgetRef. - Render
Large Title - Dart’s
_RenderLargeTitle. - Render
Segmented Control - Dart’s
_RenderSegmentedControl. - Restorable
Cupertino TabController - A
RestorablePropertythat knows how to store and restore aCupertinoTabController. - Segment
Button - A wrapper widget that implements
RadioClientfor each segment button. - Segment
Button State - Dart’s
_SegmentButtonState. - Segmented
Control Container BoxParent Data - Dart’s
_SegmentedControlContainerBoxParentData. - Segmented
Control State - Dart’s
_SegmentedControlState. - Show
Cupertino Dialog - 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).
- Show
Cupertino Modal Popup - Shows a modal iOS-style popup that slides up from the bottom of the screen.
- Show
Cupertino Sheet - 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§
- Cupertino
Button Size - The size of a
CupertinoButton. - Cupertino
List Section Type - Denotes what type of the list section a
CupertinoListSectionis. - Cupertino
User Interface Level Data - Indicates the visual level for a piece of content. Equivalent to
UIUserInterfaceLevelfromUIKit. - Date
Picker Date Order - Determines the order of the columns inside
CupertinoDatePickerin date mode. - Date
Picker Date Time Order - Determines the order of the columns inside
CupertinoDatePickerin time and date time mode. - Expansion
Tile Transition Mode - Defines how a
CupertinoExpansionTileshould transition its child between its collapsed state and its expanded state. - Navigation
BarBottom Mode - Modes that determine how to display the navigation bar’s bottom in relation to scroll events.
- Overlay
Visibility Mode - Visibility of text field overlays based on the state of the current text entry.
- Refresh
Indicator Mode - The current state of the refresh control.
Constants§
- K_
CUPERTINO_ BUTTON_ DEFAULT_ ICON_ SIZE - The default value for
IconThemeData.sizeofCupertinoButton.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§
- Cupertino
Localizations - Defines the localized resource values used by the Cupertino widgets.
- Cupertino
Route Transition CupertinoRouteTransitionMixinon a shared reference: what Dart’sroute is CupertinoRouteTransitionMixinproduces, read asroute.interface::<Rc<dyn CupertinoRouteTransition>>()on anAnyRoute. Every route that implements the mixin is one through its handle.- Cupertino
Route Transition Mixin - A mixin that replaces the entire screen with an iOS transition for a
PageRoute. - Cupertino
Theme Data Overrides - What a subclass of Dart’s
CupertinoThemeDataoverrides, as Material’sMaterialBasedCupertinoThemeDatadoes: thebrightness,primaryColor,primaryContrastingColorandscaffoldBackgroundColorgetters, andresolveFrom. - Obstructing
Preferred Size Widget - A widget that has a preferred size and reports whether it fully obstructs widgets behind it.
Functions§
- build_
page_ transitions - Returns a
CupertinoFullscreenDialogTransitionifrouteis a full screen dialog, otherwise aCupertinoPageTransitionis 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
Localizationsancestor that contains aCupertinoLocalizationsdelegate. - debug_
is_ vibrance_ painted - Whether or not the area beneath a
CupertinoPopupSurfaceshould be saturated with aColorFilter. - install_
cupertino_ icon_ font - Registers the bundled Cupertino icons font with the app-wide font collection, which is
what the
cupertino_iconsfont asset declaration inpubspec.yamldoes in Flutter. - k_
cupertino_ button_ min_ size - The minimum size of a
CupertinoButtonbased on theCupertinoButtonSize. - 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§
- Cupertino
Toolbar Builder - The type for a Function that builds a toolbar’s container with the given child.
- Refresh
Callback - A callback function that’s invoked when the
CupertinoSliverRefreshControlis pulled arefresh_trigger_pull_distance. Must return aTask. Upon completion of theTask, theCupertinoSliverRefreshControlenters theRefreshIndicatorMode::Donestate and will start to go away. - Refresh
Control Indicator Builder - 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.