BaseApp class

BaseAppBar theme, use cupertinoTheme by cupertino,use materialTheme by material. use CupertinoApp by cupertino *** use cupertino = { forceUseMaterial: true } force use MaterialApp on cuperitno. use MaterialApp by material *** use material = { forceUseCupertino: true } force use CupertinoApp on material.

Inheritance

Constructors

BaseApp({Key baseKey, Key key, Key navigatorKey, Widget home, Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{}, String initialRoute, RouteFactory onGenerateRoute, RouteFactory onUnknownRoute, List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[], TransitionBuilder builder, String title = '', GenerateAppTitle onGenerateTitle, Color color, Locale locale, Iterable<LocalizationsDelegate> localizationsDelegates, LocaleListResolutionCallback localeListResolutionCallback, LocaleResolutionCallback localeResolutionCallback, Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')], bool showPerformanceOverlay = false, bool checkerboardRasterCacheImages = false, bool checkerboardOffscreenLayers = false, bool showSemanticsDebugger = false, bool debugShowCheckedModeBanner = true, TargetPlatform targetPlatform, BaseThemeData baseTheme, Map<LogicalKeySet, Intent> shortcuts, Map<LocalKey, dynamic> actions, CupertinoThemeData cupertinoTheme, bool withoutSplashOnCupertino = true, ThemeData materialTheme, ThemeData darkTheme, ThemeMode themeMode = ThemeMode.system, bool debugShowMaterialGrid = false, Map<String, dynamic> cupertino, Map<String, dynamic> material})
const

Properties

actions Map<LocalKey, dynamic>
CupertinoApp.actions or MaterialApp.actions
final
baseTheme BaseThemeData
BaseThemeData
final
builder TransitionBuilder
CupertinoApp.builder or MaterialApp.builder
final
checkerboardOffscreenLayers bool
CupertinoApp.checkerboardOffscreenLayers or MaterialApp.checkerboardOffscreenLayers
final
checkerboardRasterCacheImages bool
CupertinoApp.checkerboardRasterCacheImages or MaterialApp.checkerboardRasterCacheImages
final
color Color
CupertinoApp.color or MaterialApp.color
final
cupertino Map<String, dynamic>
final, inherited
cupertinoTheme CupertinoThemeData
*** general properties end *** *** cupertino properties start *** CupertinoApp.theme
final
darkTheme ThemeData
MaterialApp.darkTheme
final
debugShowCheckedModeBanner bool
CupertinoApp.debugShowCheckedModeBanner or MaterialApp.debugShowCheckedModeBanner
final
debugShowMaterialGrid bool
MaterialApp.debugShowMaterialGrid
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
home Widget
CupertinoApp.home or Material.home
final
initialRoute String
CupertinoApp.initialRoute or MaterialApp.initialRoute
final
key Key
*** general properties start ***
final
locale Locale
CupertinoApp.locale or MaterialApp.locale
final
localeListResolutionCallback LocaleListResolutionCallback
CupertinoApp.localeListResolutionCallback or MaterialApp.localeListResolutionCallback
final
localeResolutionCallback LocaleResolutionCallback
CupertinoApp.localeResolutionCallback or MaterialApp.localeResolutionCallback
final
localizationsDelegates Iterable<LocalizationsDelegate>
CupertinoApp.localizationsDelegates or MaterialApp.localizationsDelegates
final
material Map<String, dynamic>
final, inherited
materialTheme ThemeData
*** cupertino properties end *** *** material properties start *** MaterialApp.theme
final
CupertinoApp.navigatorKey or MaterialApp.navigatorKey
final
CupertinoApp.navigatorObservers or MaterialApp.navigatorObservers
final
onGenerateRoute RouteFactory
CupertinoApp.onGenerateRoute or MaterialApp.onGenerateRoute
final
onGenerateTitle GenerateAppTitle
CupertinoApp.onGenerateTitle or MaterialApp.onGenerateTitle
final
onUnknownRoute RouteFactory
CupertinoApp.onUnknownRoute or MaterialApp.onUnknownRoute
final
routes Map<String, WidgetBuilder>
CupertinoApp.routes or MaterialApp.routes
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shortcuts Map<LogicalKeySet, Intent>
CupertinoApp.shortcuts or MaterialApp.shortcuts
final
showPerformanceOverlay bool
CupertinoApp.showPerformanceOverlay or MaterialApp.showPerformanceOverlay
final
showSemanticsDebugger bool
CupertinoApp.showSemanticsDebugger or MaterialApp.showSemanticsDebugger
final
supportedLocales Iterable<Locale>
CupertinoApp.supportedLocales or MaterialApp.supportedLocales
final
targetPlatform TargetPlatform
basePlatform
final
themeMode ThemeMode
MaterialApp.themeMode
final
title String
CupertinoApp.title or MaterialApp.title
final
withoutSplashOnCupertino bool
withoutSplashOnCupertino, default is true [...]
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget. [...]
inherited
buildBefore(BuildContext context) → void
*** material properties end ***
override
buildByCupertino(BuildContext context) Widget
build on cupertino mode
override
buildByCupertinoBefore(BuildContext context) → void
buildByCupertino之前调用
inherited
buildByMaterial(BuildContext context) Widget
build on material mode
override
buildByMaterialBefore(BuildContext context) → void
buildByMaterial之前调用
inherited
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
valueFromCupertino(String key, dynamic value) → dynamic
从cupertino获取key对应的值, 如果为null取value的值, 如果还是null则取material里的值
inherited
valueFromMap(Map<String, dynamic> map, String key, dynamic value) → dynamic
从cupertino获取key对应的值, 如果为null取value的值, 如果还是null则取material里的值
inherited
valueFromMaterial(String key, dynamic value) → dynamic
从material获取key对应的值, 如果为null取value的值, 如果还是null则取cupertino里的值
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited