DeltaApp constructor
const
DeltaApp({
- Key? key,
- required DeltaBuilder builder,
- Widget? child,
- ThemeData? theme,
- DeltaRebuildCase changeState = SetState.onAll,
- Size size = Delta.defaultSize,
- bool splitMode = false,
- bool minTextAdaptation = false,
- bool useInheritedMediaQuery = false,
- bool scaleByHeight = false,
A helper widget that initializes Delta Access to Media Query and Theme data without using context,,
Delta.data.theme
to access ThemeData,
Delta.data.width
to access current screen width
Implementation
const DeltaApp(
{Key? key,
required this.builder,
this.child,
this.theme,
this.changeState = SetState.onAll,
this.size = Delta.defaultSize,
this.splitMode = false,
this.minTextAdaptation = false,
this.useInheritedMediaQuery = false,
this.scaleByHeight = false})
: super(key: key);