layout property

  1. @override
List<Positioned> get layout
override

Implementation

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