pub struct AnimatedModalBarrier {
pub key: Option<KeyRef>,
pub color: AnimationRef<Option<Color>>,
pub dismissible: bool,
pub semantics_label: Option<String>,
pub barrier_semantics_dismissible: Option<bool>,
pub on_dismiss: Option<Listener>,
pub clip_details_notifier: Option<Ref<ValueNotifier<EdgeInsets>>>,
pub semantics_on_tap_hint: Option<String>,
}Expand description
A widget that prevents the user from interacting with widgets behind itself, and can be configured with an animated color value.
This widget is similar to ModalBarrier except that it takes an animated
color instead of a single color.
See also:
ModalRoute, which uses this widget.
Fields§
§key: Option<KeyRef>§color: AnimationRef<Option<Color>>If non-None, fill the barrier with this color.
dismissible: boolWhether touching the barrier will pop the current route off the Navigator.
semantics_label: Option<String>Semantics label used for the barrier if it is dismissible.
barrier_semantics_dismissible: Option<bool>Whether the modal barrier semantics are included in the semantics tree.
on_dismiss: Option<Listener>Called when the barrier is being dismissed.
clip_details_notifier: Option<Ref<ValueNotifier<EdgeInsets>>>§semantics_on_tap_hint: Option<String>Implementations§
Source§impl AnimatedModalBarrier
impl AnimatedModalBarrier
Sourcepub fn new(color: AnimationRef<Option<Color>>) -> AnimatedModalBarrier
pub fn new(color: AnimationRef<Option<Color>>) -> AnimatedModalBarrier
Creates a widget that blocks user interaction; Dart’s optional arguments are the setters.
Dart’s default: dismissible true.
Sourcepub fn key(self, key: KeyRef) -> AnimatedModalBarrier
pub fn key(self, key: KeyRef) -> AnimatedModalBarrier
Dart AnimatedModalBarrier(key:).
Sourcepub fn dismissible(self, dismissible: bool) -> AnimatedModalBarrier
pub fn dismissible(self, dismissible: bool) -> AnimatedModalBarrier
Dart AnimatedModalBarrier(dismissible:).
Sourcepub fn semantics_label(self, semantics_label: String) -> AnimatedModalBarrier
pub fn semantics_label(self, semantics_label: String) -> AnimatedModalBarrier
Dart AnimatedModalBarrier(semanticsLabel:).
Sourcepub fn maybe_semantics_label(
self,
semantics_label: Option<String>,
) -> AnimatedModalBarrier
pub fn maybe_semantics_label( self, semantics_label: Option<String>, ) -> AnimatedModalBarrier
semantics_label, for a caller that already holds the
Option Dart’s named argument carries.
Sourcepub fn barrier_semantics_dismissible(
self,
barrier_semantics_dismissible: bool,
) -> AnimatedModalBarrier
pub fn barrier_semantics_dismissible( self, barrier_semantics_dismissible: bool, ) -> AnimatedModalBarrier
Dart AnimatedModalBarrier(barrierSemanticsDismissible:).
Sourcepub fn on_dismiss(self, on_dismiss: Listener) -> AnimatedModalBarrier
pub fn on_dismiss(self, on_dismiss: Listener) -> AnimatedModalBarrier
Dart AnimatedModalBarrier(onDismiss:).
Sourcepub fn clip_details_notifier(
self,
clip_details_notifier: Ref<ValueNotifier<EdgeInsets>>,
) -> AnimatedModalBarrier
pub fn clip_details_notifier( self, clip_details_notifier: Ref<ValueNotifier<EdgeInsets>>, ) -> AnimatedModalBarrier
Dart AnimatedModalBarrier(clipDetailsNotifier:).
Sourcepub fn semantics_on_tap_hint(
self,
semantics_on_tap_hint: String,
) -> AnimatedModalBarrier
pub fn semantics_on_tap_hint( self, semantics_on_tap_hint: String, ) -> AnimatedModalBarrier
Dart AnimatedModalBarrier(semanticsOnTapHint:).
Trait Implementations§
Source§impl AnimatedWidget for AnimatedModalBarrier
impl AnimatedWidget for AnimatedModalBarrier
Source§fn listenable(&self) -> Rc<dyn Listenable>
fn listenable(&self) -> Rc<dyn Listenable>
Listenable to which this widget is listening. Read moreSource§fn build(&self, app: &mut App, _context: BuildContext) -> WidgetRef
fn build(&self, app: &mut App, _context: BuildContext) -> WidgetRef
Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
AnimatedWidget.debugFillProperties, which a subclass’s own body calls where
Dart writes super.Auto Trait Implementations§
impl !RefUnwindSafe for AnimatedModalBarrier
impl !Send for AnimatedModalBarrier
impl !Sync for AnimatedModalBarrier
impl !UnwindSafe for AnimatedModalBarrier
impl Forget for AnimatedModalBarrier
impl Freeze for AnimatedModalBarrierwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
NonZero<u32>: Freeze,
&'static AnimationVTable<Option<Color>>: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const RcInner<dyn Fn(&mut App)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App)>>: Freeze,
*const (): Freeze,
PhantomData<fn() -> ValueNotifier<EdgeInsets>>: Freeze,
impl Move for AnimatedModalBarrier
impl Unpin for AnimatedModalBarrier
impl UnsafeUnpin for AnimatedModalBarrierwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
&'static AnimationVTable<Option<Color>>: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin,
*const (): UnsafeUnpin,
PhantomData<fn() -> ValueNotifier<EdgeInsets>>: 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<AnimatedKind> for Wwhere
W: AnimatedWidget,
impl<W> IntoWidget<AnimatedKind> for Wwhere
W: AnimatedWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
creation_location.