title: Flutter - Drawing a rectangle in bottom
body: <p>I'm trying to draw a rectangle at the bottom only the <code>Rect</code> object <code>Rect.fromLTRB</code> is not drawing.</p>
  
  <p>I do not know if I'm interpreting the <code>Rect</code> object in the wrong way or I'm writing the <code>drawRect</code> object erroneously.</p>
  
  <p>Could you help me draw a rectangle in the bottom?</p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  void main() {
    runApp(new MaterialApp(home: new HomePage()));
  }
  
  class HomePage extends StatefulWidget {
    @override
    HomePageState createState() =&gt; new HomePageState();
  }
  
  class HomePageState extends State&lt;HomePage&gt; {
    @override
    Widget build(BuildContext context) {
      return new Scaffold(
        body: new Stack(
          children: &lt;Widget&gt;[
            new Positioned(
              bottom: 0.0,
              left: 0.0,
              right: 0.0,
              top: 0.0,
              child: new CustomPaint(
                painter: new Sky(),
              )
            ),
          ]
        )
      );
    }
  }
  
  class Sky extends CustomPainter {
    @override
    void paint(Canvas canvas, Size size) {
      canvas.drawRect(
        new Rect.fromLTRB(
          0.0, 100.0, 0.0, 0.0
        ),
        new Paint()..color = new Color(0xFF0099FF),
      );
    }
  
    @override
    bool shouldRepaint(Sky oldDelegate) {
      return false;
    }
  }
  </code></pre>