anchor.diff:            child: new CustomMultiChildLayout(
               children: children,
               delegate: new _ScaffoldLayout(
  -              statusBarHeight: padding.top,
  -              bottomPadding: widget.resizeToAvoidBottomPadding ? math.max(padding.bottom, viewInsets.bottom) : 0.0,
  +              statusBarHeight: mediaQuery.padding.top,
  +              // TODO(cbracken): this should use viewInsets.bottom only.
  +              bottomPadding: widget.resizeToAvoidBottomPadding
  +                ? math.max(mediaQuery.padding.bottom, mediaQuery.viewInsets.bottom)
  +                : 0.0,
                 endPadding: endPadding,
                 textDirection: textDirection,
               ),
  
positive.code:     double endPadding;
      switch (textDirection) {
        case TextDirection.rtl:
          endPadding = padding.left;
          break;
        case TextDirection.ltr:
          endPadding = padding.right;
          break;
      }
      assert(endPadding != null);
  
negative.code:   Widget build(BuildContext context) {
      assert(debugCheckHasMediaQuery(context));
      assert(debugCheckHasDirectionality(context));
      final MediaQueryData mediaQuery = MediaQuery.of(context);
      final ThemeData themeData = Theme.of(context);
      final TextDirection textDirection = Directionality.of(context);
  
  