EzScreen constructor

const EzScreen({
  1. Key? key,
  2. AlignmentGeometry? alignment,
  3. EdgeInsetsGeometry? padding,
  4. Color? color,
  5. Decoration? decoration,
  6. Decoration? foregroundDecoration,
  7. double? width = double.infinity,
  8. double? height = double.infinity,
  9. BoxConstraints? constraints,
  10. EdgeInsetsGeometry? margin,
  11. Matrix4? transform,
  12. AlignmentGeometry? transformAlignment,
  13. required Widget child,
  14. Clip clipBehavior = Clip.none,
})

Container wrapper that defaults to max size with a margin from EzConfig The Container is also wrapped in a GestureDetector for faking trackpad support Flutter has no easy way of implementing trackpad swipes, so a click and drag to the right will pop the stack

Implementation

const EzScreen({
  // Container
  this.key,
  this.alignment,
  this.padding,
  this.color,
  this.decoration,
  this.foregroundDecoration,
  this.width = double.infinity,
  this.height = double.infinity,
  this.constraints,
  this.margin,
  this.transform,
  this.transformAlignment,
  required this.child,
  this.clipBehavior = Clip.none,
});