DeltaApp constructor

const DeltaApp({
  1. Key? key,
  2. required DeltaBuilder builder,
  3. Widget? child,
  4. ThemeData? theme,
  5. DeltaRebuildCase changeState = SetState.onAll,
  6. Size size = Delta.defaultSize,
  7. bool splitMode = false,
  8. bool minTextAdaptation = false,
  9. bool useInheritedMediaQuery = false,
  10. 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);