AdaptiveApp class

Use this class as your app. Some parameters are going to be added. Make sure to wrap this widget inside AdaptiveInheritance directly.

AdaptiveInheritance(
     adaptiveState: AdaptiveInheritance.getStateByPlatform(), //this is used to automatically get the platform the app is running on
     child: AdaptiveApp(
       materialTheme: ThemeData(
           accentColor: Colors.red,
           buttonTheme: ButtonThemeData(
             buttonColor: Colors.red,
           )),
       home: HomeScreenPage(),
     ),
   );

Inheritance

Constructors

AdaptiveApp({Key? key, ThemeData? materialTheme, CupertinoThemeData? cupertinoTheme, bool debugShowCheckedModeBanner = true, String? title, required Widget home, Iterable<LocalizationsDelegate>? localizationsDelegates, Iterable<Locale> supportedLocales = const <Locale>[Locale('de', 'DE'), Locale('en', 'US')], Map<String, WidgetBuilder> routes = const <String, WidgetBuilder>{}, String? initialRoute, RouteFactory? onGenerateRoute, RouteFactory? onUnknownRoute, List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[], ThemeData? materialDarkTheme})

Properties

cupertinoTheme CupertinoThemeData?
To specify theme data for a Cupertino app, use this field.
final
debugShowCheckedModeBanner bool
This little badge in the top right corner. True by default.
final
hashCode int
The hash code for this object.
no setterinherited
home Widget
Your app widget tree.
final
initialRoute String?
The name of the first route to show, if a Navigator is built.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
localizationsDelegates Iterable<LocalizationsDelegate>?
The delegates for this app's Localizations widget.
final
materialDarkTheme ThemeData?
final
materialTheme ThemeData?
To specify theme data for a Material app, use this field.
final
The list of observers for the Navigator created for this app.
final
onGenerateRoute RouteFactory?
The route generator callback used when the app is navigated to a named route.
final
onUnknownRoute RouteFactory?
Called when onGenerateRoute fails to generate a route, except for the initialRoute.
final
routes Map<String, WidgetBuilder>
The application's top-level routing table.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedLocales Iterable<Locale>
The list of locales that this app has been localized for.
final
title String?
Your app's title.
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