yaru library

Classes

YaruAnimatedIcons
YaruAnimatedVectorIcon
A runner widget for all Yaru animated icons.
YaruAutocomplete<T extends Object>
YaruBackButton
A Yaru style back button.
YaruBackButtonTheme
YaruBackButtonThemeData
YaruBanner
A colorable Card with a border which is tap-able via an onTap callback.
YaruBorderContainer
A container with a rounded Yaru-style border.
YaruCarousel
Display a list of widgets in a carousel view.
YaruCarouselController
A controller that can be used to enable the auto-scroll behavior of a YaruCarousel. It can also be used to navigate to a specific page.
YaruCheckbox
A Yaru checkbox.
YaruCheckboxListTile
A ListTile with a YaruCheckbox. In other words, a checkbox with a label.
YaruCheckboxTheme
YaruCheckboxThemeData
YaruCheckButton
A desktop style check button with an interactive label.
YaruCheckedPopupMenuItem<T>
YaruChoiceChipBar
A list of ChoiceChipBars wrapped either in a controllable ListView or Wrap.
YaruCircularProgressIndicator
YaruClip
A widget that clips its child using a custom clipper.
YaruCloseButton
YaruColorDisk
YaruColors
Available Yaru colors.
YaruDetailPage
Provides the recommended layout for YaruMasterDetailPage.pageBuilder.
YaruDialogTitleBar
A dialog title bar.
YaruDraggable
A draggable positioned widget - have to be child of a Stack
YaruExpandable
YaruExpandIcon
ExpandIcon with an optional customExpandIconData Copyright 2014 The Flutter Authors. All rights reserved.
YaruExpansionPanel
YaruExpansionPanelList
A decorated ExpansionPanelList
YaruIconButton
An IconButton with a default fixed size of 40x40.
YaruIcons
Identifiers for the icons.
YaruInfoBadge
A YaruTranslucentContainer which wraps a title Widget in a DefaultTextStyle
YaruInfoBox
A YaruTranslucentContainer wrapper around ListTile
YaruLinearProgressIndicator
YaruMasterDetailPage
A responsive master-detail page.
YaruMasterDetailPaneLayoutDelegate
Layout delegate interface which controls a YaruMasterDetailPage pane width and resizing capacity.
YaruMasterDetailTheme
Applies theme to a descendant YaruMasterDetailPage.
YaruMasterDetailThemeData
Holds theme data for YaruMasterDetailTheme.
YaruMasterFixedPaneDelegate
Controls a YaruMasterDetailPage pane with a fixed width.
YaruMasterResizablePaneDelegate
Controls a YaruMasterDetailPage pane with a resizable width.
YaruMasterTile
Provides the recommended layout for YaruMasterDetailPage.tileBuilder.
YaruMasterTileScope
YaruMultiSelectPopupMenuItem<T>
YaruNavigationPage
A page layout which use a YaruNavigationRail on left for page navigation
YaruNavigationPageTheme
YaruNavigationPageThemeData
YaruNavigationRail
YaruNavigationRailItem
YaruNavigationRailItemScope
YaruOptionButton
An OutlinedButton with a default size of 40x40.
YaruPageController
YaruPageIndicator
A responsive page indicator.
YaruPageIndicatorBoundedDelegate
Controls a YaruPageIndicator items spacing in a boudnded way.
YaruPageIndicatorFixedDelegate
Controls a YaruPageIndicator items spacing in a fixed way.
YaruPageIndicatorItem
Default item used in YaruPageIndicator.itemBuilder. Looks like a simple dot grey when unselected, and accented when selected.
YaruPageIndicatorLayoutDelegate
Layout delegate interface which controls a YaruPageIndicator items spacing.
YaruPageIndicatorSteppedDelegate
Controls a YaruPageIndicator items spacing in a stepped way.
YaruPageIndicatorTheme
Applies a theme to descendant YaruPageIndicator widgets.
YaruPageIndicatorThemeData
Defines default property values for descendant YaruPageIndicator widgets.
YaruPageTransitionsTheme
YaruPlaceholderIcon
YaruPopupMenuButton<T>
A generic wrapper around PopupMenuButton that is visually more consistent to buttons and dialogs than DropdownButton
YaruRadio<T>
A Yaru radio.
YaruRadioButton<T>
A desktop style radio button with an interactive label.
YaruRadioListTile<T>
A ListTile with a YaruRadio. In other words, a radio with a label.
YaruRadioTheme
YaruRadioThemeData
YaruScrollViewUndershoot
A widget that displays an undershoot at the start and/or end of a scroll view, when the scroll offset is not at the very beginning or end.
YaruSearchButton
A pre-styled YaruIconButton, ideally used in combination with YaruSearchField
YaruSearchField
A TextField to with fully rounded corners, ideally in a YaruWindowTitleBar or YaruDialogTitleBar
YaruSearchTitleField
Combines YaruSearchField, YaruSearchButton and any title Widget in a Stack
YaruSection
YaruSelectableContainer
YaruSwitch
A Yaru switch.
YaruSwitchButton
A desktop style switch button with an interactive label.
YaruSwitchListTile
A ListTile with a YaruSwitch. In other words, a switch with a label.
YaruSwitchTheme
YaruSwitchThemeData
YaruTab
YaruTabBar
A pre-styled replacement for material TabBar
YaruTheme
Applies Yaru theme to descendant widgets.
YaruThemeData
YaruTile
YaruTitleBar
A generic title bar widget.
YaruTitleBarTheme
YaruTitleBarThemeData
YaruToggleButton
A desktop style toggle button with an indicator and an interactive label.
YaruToggleButtonTheme
Applies a theme to descendant ToggleButton widgets.
YaruToggleButtonThemeData
Defines default property values for descendant ToggleButton widgets.
YaruTranslucentContainer
A container with a rounded Yaru-style border and translucent background color derived from the border color.
YaruWatermark
A translucent watermark rendered on top of its child.
YaruWindow
Provides access to the closest top-level window instance that encloses the given context.
YaruWindowControl
YaruWindowInstance
A top-level window instance.
YaruWindowState
The state of a window.
YaruWindowTitleBar
A window title bar.

Enums

YaruAnimationMode
Describes how a YaruAnimatedIcon will run.
YaruBackButtonStyle
YaruChoiceChipBarStyle
YaruDiagonalClip
Describe the position of a diagonal clip.
YaruExpandableButtonPosition
YaruFreedesktopIcons
Binding name enumeration between YaruIcons and the Freedesktop Icon Naming Specification Based on: https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
YaruInfoType
YaruNavigationRailStyle
Defines the look of a YaruNavigationRailItem
YaruSearchFieldStyle
YaruTileStyle
YaruTitleBarStyle
The title bar style.
YaruVariant
Describes a Yaru variant and its primary color.
YaruWindowControlPlatform
Defines the style of a YaruWindowControl.
YaruWindowControlType
Defines the type of a YaruWindowControl.

Extensions

YaruBorderRadiusExtension on BorderRadius
YaruColorExtension on Color
Set of useful methods when working with Color
YaruColorSchemeExtension on ColorScheme
Yaru-specific color scheme extensions.
YaruThemeDataExtension on ThemeData

Constants

kDividerColorDark → const Color
kDividerColorLight → const Color
kTargetCanvasSize → const double
kTargetIconSize → const double
kYaruBannerRadius → const double
The default border radius for Yaru-style banners.
kYaruButtonRadius → const double
The default border radius for Yaru-style buttons.
kYaruContainerRadius → const double
The default border radius for Yaru-style containers.
kYaruIconSize → const double
The default icon size
kYaruMasterDetailBreakpoint → const double
The default breakpoint width YaruMasterDetailPage uses for switching between portrait and landscape modes.
kYaruPagePadding → const double
The recommended padding around page content in Yaru applications.
kYaruTitleBarHeight → const double
The default height of YaruTitleBar.
kYaruTitleBarItemHeight → const double
The best height for any item inside a YaruTitleBar
kYaruWindowControlSize → const double
The size of a YaruWindowControl on the YaruWindowControlPlatform.yaru platform.
kYaruWindowsWindowControlSize → const Size
The size of a YaruWindowControl on the YaruWindowControlPlatform.windows platform.

Properties

isMobile bool
no setter
yaruBarkDark ThemeData
final
yaruBarkLight ThemeData
final
yaruBlueDark ThemeData
final
yaruBlueLight ThemeData
final
yaruDark ThemeData
final
yaruHighContrastDark ThemeData
final
yaruHighContrastLight ThemeData
final
yaruKubuntuDark ThemeData
final
yaruKubuntuLight ThemeData
final
yaruLight ThemeData
final
yaruLubuntuDark ThemeData
final
yaruLubuntuLight ThemeData
final
yaruMagentaDark ThemeData
final
yaruMagentaLight ThemeData
final
yaruMateDark ThemeData
final
yaruMateLight ThemeData
final
yaruOliveDark ThemeData
final
yaruOliveLight ThemeData
final
yaruPrussianGreenDark ThemeData
final
yaruPrussianGreenLight ThemeData
final
yaruPurpleDark ThemeData
final
yaruPurpleLight ThemeData
final
yaruRedDark ThemeData
final
yaruRedLight ThemeData
final
yaruSageDark ThemeData
final
yaruSageLight ThemeData
final
yaruUbuntuBudgieDark ThemeData
final
yaruUbuntuBudgieLight ThemeData
final
yaruUbuntuCinnamonDark ThemeData
final
yaruUbuntuCinnamonLight ThemeData
final
yaruUbuntuMateDark ThemeData
final
yaruUbuntuMateLight ThemeData
final
yaruUbuntuStudioDark ThemeData
final
yaruUbuntuStudioLight ThemeData
final
yaruUbuntuUnityDark ThemeData
final
yaruUbuntuUnityLight ThemeData
final
yaruViridianDark ThemeData
final
yaruViridianLight ThemeData
final
yaruXubuntuDark ThemeData
final
yaruXubuntuLight ThemeData
final

Functions

contrastColor(Color color) Color
createYaruDarkTheme({required Color primaryColor, Color? elevatedButtonColor, Color? elevatedButtonTextColor, bool? useMaterial3 = true, bool highContrast = false}) ThemeData
Helper function to create a new Yaru dark theme
createYaruLightTheme({required Color primaryColor, Color? elevatedButtonColor, Color? elevatedButtonTextColor, bool? useMaterial3 = true}) ThemeData
Helper function to create a new Yaru light theme
createYaruTheme({required ColorScheme colorScheme, Color? dividerColor, Color? elevatedButtonColor, Color? elevatedButtonTextColor, bool? useMaterial3 = true}) ThemeData
Helper function to create a new Yaru theme

Typedefs

YaruAppBarBuilder = PreferredSizeWidget? Function(BuildContext context)
YaruMasterTileBuilder = Widget Function(BuildContext context, int index, bool selected, double availableWidth)
YaruNavigationPageBuilder = Widget Function(BuildContext context, int index, bool selected)
YaruPageIndicatorItemBuilder<T> = T Function(int index, int selectedIndex, int length)
YaruPageIndicatorTextBuilder = Widget Function(int page, int length)