QudsInteractiveApp class Null safety

A wrap for MaterialApp with ability to change language and theme dynamically

Inheritance

Constructors

QudsInteractiveApp({Key? key, List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[], bool debugShowMaterialGrid = false, bool showPerformanceOverlay = false, bool checkerboardRasterCacheImages = false, bool checkerboardOffscreenLayers = false, bool showSemanticsDebugger = false, bool useInheritedMediaQuery = false, Map<String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{}, Widget builder(BuildContext context)?, String? title, String generateTitle()?, Widget customBuilder(BuildContext, Widget?)?, ThemeData? customTheme, bool debugShowCheckedModeBanner = true, GlobalKey<NavigatorState>? navigatorKey, GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey, String? initialRoute, Route? onGenerateRoute(RouteSettings)?, List<Route> onGenerateInitialRoutes(String)?, Route? onUnknownRoute(RouteSettings)?, String onGenerateTitle(BuildContext)?, Iterable<LocalizationsDelegate>? localizationsDelegates, Map<ShortcutActivator, Intent>? shortcuts, Map<Type, Action<Intent>>? actions, String? restorationScopeId, ScrollBehavior? scrollBehavior})
Create an instance of QudsInteractiveApp
const

Properties

actions Map<Type, Action<Intent>>?
final
builder → (Widget Function?(BuildContext context)?)
The builder function
final
checkerboardOffscreenLayers bool
final
checkerboardRasterCacheImages bool
final
customBuilder → (Widget Function?(BuildContext, Widget?)?)
Custom builder for whole app,
final
customTheme ThemeData?
Custom theme of the app
final
debugShowCheckedModeBanner bool
Turns on a little "DEBUG" banner in debug mode to indicate that the app is in debug mode. This is on by default (in debug mode), to turn it off, set the constructor argument to false. In release mode this has no effect.
final
debugShowMaterialGrid bool
final
generateTitle → (String Function?()?)
To generate dynamic title
final
hashCode int
The hash code for this object.
@nonVirtual, read-only, inherited
initialRoute String?
final
key Key?
Controls how one widget replaces another widget in the tree.
final, inherited
localizationsDelegates Iterable<LocalizationsDelegate>?
final
final
final
onGenerateInitialRoutes → (List<Route> Function?(String)?)
final
onGenerateRoute → (Route? Function?(RouteSettings)?)
final
onGenerateTitle → (String Function?(BuildContext)?)
final
onUnknownRoute → (Route? Function?(RouteSettings)?)
final
restorationScopeId String?
final
routes Map<String, Widget Function(BuildContext)>
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scaffoldMessengerKey GlobalKey<ScaffoldMessengerState>?
final
scrollBehavior ScrollBehavior?
final
shortcuts Map<ShortcutActivator, Intent>?
final
showPerformanceOverlay bool
final
showSemanticsDebugger bool
final
title String?
Set the material app title
final
useInheritedMediaQuery bool
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.
@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

Operators

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

Static Properties

qudsAppController QudsAppController
read / write

Static Methods

initialize({List<String>? supportedLanguageCodes, Map<String, Map<String, String>>? additionalDictionaries, bool restoreSavedPreferences = true, String? preferencesEncryptionKey, String? preferencesEncryptionIV, List<QudsProvider>? additionalProviders, String? defaultLangCode, String? defaultFont, Map<String, String>? customFonts}) Future<void>