KareeMaterialApp class

KareeMaterialApp

Simple Material App based on Flutter MaterialApp with custom configuration for Karee.

Inheritance

Constructors

KareeMaterialApp({Key? key, required ApplicationKind kind, String? restorationScopeId, GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey, List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[], String title = '', GenerateAppTitle? onGenerateTitle, Color? color, CupertinoThemeData? cupertinoTheme, ThemeData? theme, ThemeData? darkTheme, ThemeMode themeMode = ThemeMode.system, bool enableI18n = false, Locale? locale, LocaleListResolutionCallback? localeListResolutionCallback, LocaleResolutionCallback? localeResolutionCallback, Iterable<Locale> supportedLocales = const <Locale>[], bool debugShowMaterialGrid = false, bool showPerformanceOverlay = false, bool checkerboardRasterCacheImages = false, bool checkerboardOffscreenLayers = false, bool showSemanticsDebugger = false, bool debugShowCheckedModeBanner = true, Map<LogicalKeySet, Intent>? shortcuts, KareeInstanceProfile profile = KareeInstanceProfile.development, Map<Type, Action<Intent>>? actions, ThemeData? highContrastDarkTheme, ThemeData? highContrastTheme, required List<Of> observables, ErrorContactAddress? errorContactAddress})
Constructor of KareeMaterialApp

Properties

actions Map<Type, Action<Intent>>?
Actions that can be used in the application. see Action see Intent see LogicalKeySet
final
checkerboardOffscreenLayers bool
final
checkerboardRasterCacheImages bool
final
color Color?
final
cupertinoTheme CupertinoThemeData?
final
darkTheme ThemeData?
final
debugShowCheckedModeBanner bool
final
debugShowMaterialGrid bool
final
errorContactAddress ErrorContactAddress?
final
hashCode int
The hash code for this object.
no setterinherited
highContrastDarkTheme ThemeData?
High contrast dark theme for the application. see ThemeData.highContrastDarkTheme
final
highContrastTheme ThemeData?
High contrast theme for the application. see ThemeData.highContrastDarkTheme
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
kind ApplicationKind
Kind of application.
final
locale Locale?
final
localeListResolutionCallback LocaleListResolutionCallback?
final
localeResolutionCallback LocaleResolutionCallback?
final
final
observables List<Of>
Set of observables that can be watched in all the application.
final
onGenerateTitle GenerateAppTitle?
final
profile KareeInstanceProfile
final
restorationScopeId String?
Restoration ID to save and restore the state of the application. See RestorationScope for more information.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaffoldMessengerKey GlobalKey<ScaffoldMessengerState>?
Key to access the ScaffoldMessengerState of the application. see ScaffoldMessengerState see GlobalKey
final
shortcuts Map<LogicalKeySet, Intent>?
final
showPerformanceOverlay bool
final
showSemanticsDebugger bool
final
supportedLocales Iterable<Locale>
final
theme ThemeData?
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, int wrapWidth = 65}) 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

Static Properties

globalErrorContactAddress ErrorContactAddress?
Global Application Contact address. see ErrorContactAddress
getter/setter pair
globalProfile KareeInstanceProfile?
Global Application profile on execution.
getter/setter pair
type KareeApplicationType
Global Application type.
getter/setter pair

Static Methods

$assert(bool condition, String message, [List<String> env = const [], KareeErrorCode errorCode = KareeErrorCode.assertionError]) → void
Karee assert function that will check a condition and if false will redirect to the Karee error screen with the provided message and environment.