DecoratedApp<B extends RootBLoC> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- DecoratedApp
- Available Extensions
Constructors
-
DecoratedApp({Key? key, B? rootBLoC, @Deprecated('已无作用, 直接使用DecoratedApp的参数即可') Widget app = NIL, @Deprecated('暂无作用') bool preventTextScale = false, GenerateAppTitle? onGenerateTitle, RouteFactory? onGenerateRoute, InitialRouteListFactory? onGenerateInitialRoutes, RouteFactory? onUnknownRoute, ThemeData? theme, ThemeData? darkTheme, ThemeMode? themeMode, ScrollBehavior? scrollBehavior, Iterable<
LocalizationsDelegate> localizationsDelegates = const [], Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')], Locale? locale, String title = '', @Deprecated('暂无作用, 直接嵌套ListTileTheme即可') ListTileThemeData? listTileTheme, TransitionBuilder? builder, bool debugShowCheckedModeBanner = false, VoidCallback? onDispose, LocaleResolutionCallback? localeResolutionCallback, LocaleListResolutionCallback? localeListResolutionCallback, Map<Type, Action< ? actions, bool checkerboardOffscreenLayers = false, bool checkerboardRasterCacheImages = false, Color? color, bool debugShowMaterialGrid = false, Curve themeAnimationCurve = Curves.linear, Duration themeAnimationDuration = kThemeAnimationDuration, GlobalKey<Intent> >ScaffoldMessengerState> ? scaffoldMessengerKey, Map<ShortcutActivator, Intent> ? shortcuts, bool showPerformanceOverlay = false, bool showSemanticsDebugger = false, String? restorationScopeId})
Properties
-
actions
→ Map<
Type, Action< ?Intent> > -
The default map of intent keys to actions for the application.
final
- app → Widget
-
final
- builder → TransitionBuilder?
-
final
- checkerboardOffscreenLayers → bool
-
final
- checkerboardRasterCacheImages → bool
-
final
- color → Color?
-
The primary color to use for the application in the operating system
interface.
final
- darkTheme → ThemeData?
-
final
- debugShowCheckedModeBanner → bool
-
final
- debugShowMaterialGrid → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- listTileTheme → ListTileThemeData?
-
final
- locale → Locale?
-
final
- localeListResolutionCallback → LocaleListResolutionCallback?
-
This callback is responsible for choosing the app's locale
when the app is started, and when the user changes the
device's locale.
final
- localeResolutionCallback → LocaleResolutionCallback?
-
The signature of WidgetsApp.localeResolutionCallback.
final
-
localizationsDelegates
→ Iterable<
LocalizationsDelegate> -
final
-
final
-
final
- onDispose → VoidCallback?
-
final
- onGenerateInitialRoutes → InitialRouteListFactory?
-
final
- onGenerateRoute → RouteFactory?
-
final
- onGenerateTitle → GenerateAppTitle?
-
final
- onUnknownRoute → RouteFactory?
-
final
- preventTextScale → bool
-
final
- restorationScopeId → String?
-
final
- rootBLoC → B
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaffoldMessengerKey
→ GlobalKey<
ScaffoldMessengerState> ? -
final
- scrollBehavior → ScrollBehavior?
-
final
-
shortcuts
→ Map<
ShortcutActivator, Intent> ? -
final
- showPerformanceOverlay → bool
-
final
- showSemanticsDebugger → bool
-
final
-
supportedLocales
→ Iterable<
Locale> -
final
- theme → ThemeData?
-
final
- themeAnimationCurve → Curve
-
final
- themeAnimationDuration → Duration
-
final
- themeMode → ThemeMode?
-
final
- title → String
-
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited