pub struct RawDialogRouteData {
pub page_builder: RoutePageBuilder,
pub barrier_dismissible: bool,
pub barrier_label: Option<String>,
pub barrier_color: Option<Color>,
pub transition_duration: Duration,
pub transition_builder: Option<RouteTransitionsBuilder>,
pub barrier_builder: Option<RouteBarrierBuilder>,
pub fullscreen_dialog: bool,
}Expand description
The fields of Dart’s RawDialogRoute, which its subclasses carry.
Fields§
§page_builder: RoutePageBuilderUsed to build the route’s primary contents.
barrier_dismissible: boolWhether touching the modal barrier pops the route; see
ModalRoute::barrier_dismissible.
barrier_label: Option<String>The semantic label of the modal barrier; see ModalRoute::barrier_label.
barrier_color: Option<Color>The color painted behind the dialog; see ModalRoute::barrier_color.
transition_duration: DurationHow long the route takes to arrive on and leave off the screen; see
TransitionRoute::transition_duration.
transition_builder: Option<RouteTransitionsBuilder>Used to define how the route arrives on and leaves off the screen.
If None, the transition is a linear fade of the page’s contents.
barrier_builder: Option<RouteBarrierBuilder>Used to define how the route’s modal barrier is built.
If not None, this builder is used to wrap or replace the default ModalBarrier.
fullscreen_dialog: boolWhether this route is a full-screen dialog.
In Material and Cupertino, being fullscreen has the effects of making the app bars have a close button instead of a back button.
Implementations§
Source§impl RawDialogRouteData
impl RawDialogRouteData
Sourcepub fn new(page_builder: RoutePageBuilder) -> RawDialogRouteData
pub fn new(page_builder: RoutePageBuilder) -> RawDialogRouteData
The bag of a freshly created dialog route; Dart’s constructor defaults.