LBox constructor

const LBox(
  1. {Key key,
  2. LBoxDimension height = const LBoxDimension(),
  3. LBoxDimension width = const LBoxDimension(),
  4. LBoxVisibility visibility = const LBoxVisibility(),
  5. LBoxEdgeInsets padding = const LBoxEdgeInsets(),
  6. LBoxEdgeInsets margin = const LBoxEdgeInsets(),
  7. LBoxAlignment alignment = const LBoxAlignment(),
  8. LBoxDecoration decoration = const LBoxDecoration(),
  9. bool useMediaQuery = true,
  10. @required Widget child}
)

Creates a widget that combines common painting, positioning, and sizing widgets according to LBreakPoint

example:

...
child: LBox(
  visibility: LBoxVisibility(
    xs: false,
    sm: false,
  ),
  height: LBoxDimension(
    xs: 250.0,
    sm: 280.0,
    md: 350.0,
    lg: 450.0,
    xl: 500.0
  ),
  padding: LBoxEdgeInsets(
    lg: EdgeInsets.all(10.0),
    xl: EdgeInsets.all(20.0),
  ),
  child:
      Image.network("https://source.unsplash.com/random/"),
),
...

See also:

Implementation

const LBox({
  Key key,
  this.height = const LBoxDimension(),
  this.width = const LBoxDimension(),
  this.visibility = const LBoxVisibility(),
  this.padding = const LBoxEdgeInsets(),
  this.margin = const LBoxEdgeInsets(),
  this.alignment = const LBoxAlignment(),
  this.decoration = const LBoxDecoration(),
  this.useMediaQuery = true,
  @required this.child,
})  : assert(child != null),
      assert(height != null),
      assert(width != null),
      assert(visibility != null),
      assert(padding != null),
      assert(margin != null),
      assert(alignment != null),
      assert(decoration != null),
      assert(useMediaQuery != null),
      super(key: key);