logo
pub struct WidgetsApp {
Show 28 fields pub key: Key, pub navigator_key: GlobalKey<NavigatorState>, pub on_generate_route: Option<Box<dyn RouteFactory<String>>>, pub on_generate_initial_routes: Option<Box<dyn InitialRouteListFactory>>, pub on_unknown_route: Option<Box<dyn RouteFactory<String>>>, pub navigator_observers: Vec<NavigatorObserver>, pub initial_route: String, pub home: Box<dyn Widget>, pub routes: HashMap<String, Box<WidgetBuilder>>, pub builder: Option<Box<dyn TransitionBuilder>>, pub title: String, pub on_generate_title: Option<Box<dyn GenerateAppTitle>>, pub text_style: TextStyle, pub color: Color, pub locale: Locale, pub localizations_delegates: Vec<LocalizationsDelegate>, pub locale_list_resolution_callback: Option<Box<dyn LocaleListResolutionCallback>>, pub locale_resolution_callback: Option<Box<dyn LocaleResolutionCallback>>, pub supported_locales: Vec<Locale>, pub show_performance_overlay: bool, pub checkerboard_raster_cache_images: bool, pub checkerboard_offscreen_layers: bool, pub show_semantics_debugger: bool, pub debug_show_widget_inspector: bool, pub debug_show_checked_mode_banner: bool, pub shortcuts: HashMap<ShortcutActivator, Box<dyn Intent>>, pub restoration_scope_id: String, pub use_inherited_media_query: bool,
}

Fields

key: Keynavigator_key: GlobalKey<NavigatorState>on_generate_route: Option<Box<dyn RouteFactory<String>>>on_generate_initial_routes: Option<Box<dyn InitialRouteListFactory>>on_unknown_route: Option<Box<dyn RouteFactory<String>>>navigator_observers: Vec<NavigatorObserver>initial_route: Stringhome: Box<dyn Widget>routes: HashMap<String, Box<WidgetBuilder>>builder: Option<Box<dyn TransitionBuilder>>title: Stringon_generate_title: Option<Box<dyn GenerateAppTitle>>text_style: TextStylecolor: Colorlocale: Localelocalizations_delegates: Vec<LocalizationsDelegate>locale_list_resolution_callback: Option<Box<dyn LocaleListResolutionCallback>>locale_resolution_callback: Option<Box<dyn LocaleResolutionCallback>>supported_locales: Vec<Locale>show_performance_overlay: boolcheckerboard_raster_cache_images: boolcheckerboard_offscreen_layers: boolshow_semantics_debugger: booldebug_show_widget_inspector: booldebug_show_checked_mode_banner: boolshortcuts: HashMap<ShortcutActivator, Box<dyn Intent>>restoration_scope_id: Stringuse_inherited_media_query: bool

Trait Implementations

Returns the “default value” for a type. Read more

Inflates this configuration to a concrete instance

The widdget key

The control x position, relative to its container

The control y position, relative to its container

The control width

The control height

The control minimum width

The control minimum height

The control maximum width

The control maximum height

The control parent, if any

The control depth. Usually set internally

Whether or not the control is visible at creation

Whether or not the control responds to mouse input

Whether or not the control responds to key input

Whether or not the control emits render signals from the canvas render call

Internal. Internal parent visibility for creating sub controls.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.