layout property

  1. @override
List<Positioned> get layout
override

Implementation

@override
get layout {
  return [
    Positioned(
      child: background,
    ),
    Positioned(
      top: percentH(13),
      left: percentW(10),
      child: title,
    ),
    Positioned(
      top: percentH(40),
      left: percentW(10),
      right: percentW(10),
      height: percentH(actions == null ? 50 : 38),
      child: content,
    ),
    Positioned(
      bottom: percentW(12),
      left: percentW(10),
      right: percentW(10),
      child: actions ?? Container(),
    ),
  ];
}