pub struct ButtonBarTheme {
pub key: Option<KeyRef>,
pub data: ButtonBarThemeData,
pub child: WidgetRef,
}Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
Expand description
Applies a button bar theme to descendant ButtonBar widgets.
A button bar theme describes the layout and properties for the buttons contained in a
ButtonBar.
Fields§
§key: Option<KeyRef>Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
data: ButtonBarThemeDataUse OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
The properties used for all descendant ButtonBar widgets.
child: WidgetRefUse OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
Implementations§
Source§impl ButtonBarTheme
impl ButtonBarTheme
Sourcepub fn new<K>(
data: ButtonBarThemeData,
child: impl IntoWidget<K>,
) -> ButtonBarTheme
pub fn new<K>( data: ButtonBarThemeData, child: impl IntoWidget<K>, ) -> ButtonBarTheme
Constructs a button bar theme that configures all descendant ButtonBar widgets.
Sourcepub fn key(self, key: KeyRef) -> ButtonBarTheme
pub fn key(self, key: KeyRef) -> ButtonBarTheme
Dart ButtonBarTheme(key:).
Sourcepub fn of(app: &mut App, context: BuildContext) -> ButtonBarThemeData
pub fn of(app: &mut App, context: BuildContext) -> ButtonBarThemeData
Returns the configuration data from the closest ButtonBarTheme ancestor. If there
is no ancestor, it returns ThemeData::button_bar_theme.
Trait Implementations§
Source§impl Debug for ButtonBarTheme
impl Debug for ButtonBarTheme
Source§impl InheritedWidget for ButtonBarTheme
impl InheritedWidget for ButtonBarTheme
Source§fn update_should_notify(&self, old_widget: &ButtonBarTheme) -> bool
fn update_should_notify(&self, old_widget: &ButtonBarTheme) -> bool
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
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 as_inherited_theme(&self) -> Option<&(dyn InheritedTheme + 'static)>
fn as_inherited_theme(&self) -> Option<&(dyn InheritedTheme + 'static)>
this is InheritedTheme: an inherited widget that is an InheritedTheme
answers with itself, which is what InheritedTheme::capture collects.Auto Trait Implementations§
impl !RefUnwindSafe for ButtonBarTheme
impl !Send for ButtonBarTheme
impl !Sync for ButtonBarTheme
impl !UnwindSafe for ButtonBarTheme
impl Forget for ButtonBarTheme
impl Freeze for ButtonBarTheme
impl Move for ButtonBarTheme
impl Unpin for ButtonBarTheme
impl UnsafeUnpin for ButtonBarThemewhere
*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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<W> IntoWidget<InheritedKind> for Wwhere
W: InheritedWidget,
impl<W> IntoWidget<InheritedKind> for Wwhere
W: InheritedWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
creation_location.