INNER CODE UNIT · Dart

contentHeight

fujidaiti/smooth_sheets · lib/src/content_scaffold.dart:572

    final contentHeight = bodyMargin.vertical + bodyHeight;
    size = constraints.constrain(
      Size(constraints.maxWidth, contentHeight),
    );
  }

  @override
  void paint(PaintingContext context, Offset offset) {
    void paintChild(_ScaffoldSlot slot) {
      if (childForSlot(slot) case final child?) {
        final parentData = child.parentData! as BoxParentData;
        context.paintChild(child, offset + parentData.offset);
      }
    }

    // Paints the children in the reverse of hit test order.
    paintChild(_ScaffoldSlot.body);
    paintChild(_ScaffoldSlot.topBar);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…