layout property

  1. @override
List<Positioned> get layout
override

Implementation

@override
get layout {
  return [
    Positioned(
      child: background,
    ),
    Positioned(
      top: percentH(26),
      child: title,
    ),
    Positioned(
      top: percentH(36),
      left: percentW(5),
      right: percentW(5),
      height: percentH(actions == null ? 60 : 50),
      child: content,
    ),
    Positioned(
      bottom: percentW(5),
      left: percentW(5),
      right: percentW(5),
      child: actions ?? Container(),
    ),
  ];
}