buildScrollable method

Widget buildScrollable(
  1. Widget child, {
  2. List<Widget>? aboveWidgets,
  3. List<Widget>? belowWidgets,
  4. String? title,
  5. bool? ok,
  6. bool? cancel,
  7. DialogWidth? dialogWidth,
})

Implementation

Widget buildScrollable(
  Widget child, {
  List<Widget>? aboveWidgets,
  List<Widget>? belowWidgets,
  String? title,
  bool? ok,
  bool? cancel,
  DialogWidth? dialogWidth,
}) {
  if (title != null) this.title(title.text());
  this.actions(ok: ok, cancel: cancel);
  if (dialogWidth != null) this.dialogWidth = dialogWidth;

  ListWidget ls = [
    if (panelTitle != null) panelTitle!,
    if (aboveWidgets != null) ...aboveWidgets,
    child.flexible(),
    if (belowWidgets != null) ...belowWidgets,
    if (panelActions != null) panelActions!,
  ];
  return _constrainWidth(ls);
}