layout property

  1. @override
List<Positioned> get layout
override

Implementation

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