pub struct GridTileBar {
pub key: Option<KeyRef>,
pub background_color: Option<Color>,
pub leading: Option<WidgetRef>,
pub title: Option<WidgetRef>,
pub subtitle: Option<WidgetRef>,
pub trailing: Option<WidgetRef>,
}Expand description
Fields§
§key: Option<KeyRef>§background_color: Option<Color>The color to paint behind the child widgets.
Defaults to transparent.
leading: Option<WidgetRef>A widget to display before the title.
Typically an Icon or an IconButton widget.
title: Option<WidgetRef>The primary content of the list item.
Typically a Text widget.
subtitle: Option<WidgetRef>Additional content displayed below the title.
Typically a Text widget.
trailing: Option<WidgetRef>A widget to display after the title.
Typically an Icon or an IconButton widget.
Implementations§
Source§impl GridTileBar
impl GridTileBar
Sourcepub fn new() -> GridTileBar
pub fn new() -> GridTileBar
Creates a grid tile bar; Dart’s optional named arguments are the setters.
Sourcepub fn key(self, key: KeyRef) -> GridTileBar
pub fn key(self, key: KeyRef) -> GridTileBar
Dart GridTileBar(key:).
Sourcepub fn background_color(self, background_color: Color) -> GridTileBar
pub fn background_color(self, background_color: Color) -> GridTileBar
Dart GridTileBar(backgroundColor:).
Sourcepub fn leading<K>(self, leading: impl IntoWidget<K>) -> GridTileBar
pub fn leading<K>(self, leading: impl IntoWidget<K>) -> GridTileBar
Dart GridTileBar(leading:).
Sourcepub fn title<K>(self, title: impl IntoWidget<K>) -> GridTileBar
pub fn title<K>(self, title: impl IntoWidget<K>) -> GridTileBar
Dart GridTileBar(title:).
Sourcepub fn subtitle<K>(self, subtitle: impl IntoWidget<K>) -> GridTileBar
pub fn subtitle<K>(self, subtitle: impl IntoWidget<K>) -> GridTileBar
Dart GridTileBar(subtitle:).
Sourcepub fn trailing<K>(self, trailing: impl IntoWidget<K>) -> GridTileBar
pub fn trailing<K>(self, trailing: impl IntoWidget<K>) -> GridTileBar
Dart GridTileBar(trailing:).
Trait Implementations§
Source§impl Debug for GridTileBar
impl Debug for GridTileBar
Source§impl Default for GridTileBar
impl Default for GridTileBar
Source§fn default() -> GridTileBar
fn default() -> GridTileBar
Returns the “default value” for a type. Read more
Source§impl StatelessWidget for GridTileBar
impl StatelessWidget for GridTileBar
Source§fn build(&self, app: &mut App, _context: BuildContext) -> WidgetRef
fn build(&self, app: &mut App, _context: BuildContext) -> WidgetRef
Describes the part of the user interface represented by this widget. Read more
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn debug_check_constructor(&self)
fn debug_check_constructor(&self)
Dart’s constructor asserts that relate two or more arguments. Read more
Source§fn as_preferred_size_widget(
&self,
) -> Option<&(dyn PreferredSizeWidget + 'static)>
fn as_preferred_size_widget( &self, ) -> Option<&(dyn PreferredSizeWidget + 'static)>
Dart’s
this is PreferredSizeWidget: a widget that implements PreferredSizeWidget
answers with itself, which is what a parent asking an erased child for its preferred
size reads.Auto Trait Implementations§
impl !RefUnwindSafe for GridTileBar
impl !Send for GridTileBar
impl !Sync for GridTileBar
impl !UnwindSafe for GridTileBar
impl Forget for GridTileBar
impl Freeze for GridTileBar
impl Move for GridTileBar
impl Unpin for GridTileBar
impl UnsafeUnpin for GridTileBarwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<W> IntoWidget<StatelessKind> for Wwhere
W: StatelessWidget,
impl<W> IntoWidget<StatelessKind> for Wwhere
W: StatelessWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
The widget as a tree node, made where this is called: its
creation_location.