Struct components::material::MaterialApp
source · [−]pub struct MaterialApp {Show 34 fields
pub key: Key,
pub navigator_key: GlobalKey<NavigatorState>,
pub scaffold_messenger_key: GlobalKey<ScaffoldMessengerState>,
pub home: Box<dyn Widget>,
pub routes: HashMap<String, Box<WidgetBuilder>>,
pub initial_route: String,
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 builder: Option<Box<dyn TransitionBuilder>>,
pub title: String,
pub on_generate_title: Option<Box<dyn GenerateAppTitle>>,
pub color: Color,
pub theme: ThemeData,
pub dark_theme: ThemeData,
pub high_contrast_theme: ThemeData,
pub high_contrast_dark_theme: ThemeData,
pub theme_mode: ThemeMode,
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 debug_show_material_grid: bool,
pub show_performance_overlay: bool,
pub checkerboard_raster_cache_images: bool,
pub checkerboard_offscreen_layers: bool,
pub show_semantics_debugger: bool,
pub debug_show_checked_mode_banner: bool,
pub shortcuts: HashMap<ShortcutActivator, Box<dyn Intent>>,
pub restoration_scope_id: String,
pub scroll_behavior: ScrollBehavior,
pub use_inherited_media_query: bool,
}
Fields
key: Key
scaffold_messenger_key: GlobalKey<ScaffoldMessengerState>
home: Box<dyn Widget>
routes: HashMap<String, Box<WidgetBuilder>>
initial_route: String
on_generate_route: Option<Box<dyn RouteFactory<String>>>
on_generate_initial_routes: Option<Box<dyn InitialRouteListFactory>>
on_unknown_route: Option<Box<dyn RouteFactory<String>>>
builder: Option<Box<dyn TransitionBuilder>>
title: String
on_generate_title: Option<Box<dyn GenerateAppTitle>>
color: Color
theme: ThemeData
dark_theme: ThemeData
high_contrast_theme: ThemeData
high_contrast_dark_theme: ThemeData
theme_mode: ThemeMode
locale: Locale
localizations_delegates: Vec<LocalizationsDelegate>
locale_list_resolution_callback: Option<Box<dyn LocaleListResolutionCallback>>
locale_resolution_callback: Option<Box<dyn LocaleResolutionCallback>>
supported_locales: Vec<Locale>
debug_show_material_grid: bool
show_performance_overlay: bool
checkerboard_raster_cache_images: bool
checkerboard_offscreen_layers: bool
show_semantics_debugger: bool
shortcuts: HashMap<ShortcutActivator, Box<dyn Intent>>
restoration_scope_id: String
scroll_behavior: ScrollBehavior
use_inherited_media_query: bool
Trait Implementations
sourceimpl Default for MaterialApp
impl Default for MaterialApp
sourceimpl Widget for MaterialApp
impl Widget for MaterialApp
sourceimpl WidgetProperties for MaterialApp
impl WidgetProperties for MaterialApp
sourcefn mouse_input(&self) -> bool
fn mouse_input(&self) -> bool
Whether or not the control responds to mouse input
sourcefn renderable(&self) -> bool
fn renderable(&self) -> bool
Whether or not the control emits render signals from the canvas render call
sourcefn internal_visible(&self) -> bool
fn internal_visible(&self) -> bool
Internal. Internal parent visibility for creating sub controls.
Auto Trait Implementations
impl !RefUnwindSafe for MaterialApp
impl !Send for MaterialApp
impl !Sync for MaterialApp
impl Unpin for MaterialApp
impl !UnwindSafe for MaterialApp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.