Preview:
@override
  Widget build(BuildContext context) {
    return Scaffold(
        backgroundColor: Colors.cyan[100],
        appBar: AppBar(
          title: const Text("Flutter margin padding"),
          backgroundColor: Colors.blueAccent,
        ), //appbar
        body: Container(
            color: Colors.cyan,
            margin: EdgeInsets.only(top: 32, left: 30, right: 0, bottom: 0),
              child: Padding(
                padding: const EdgeInsets.all(8.0),
                child: Text('Hello Students'),
              )),
        ); //scaffold
  }
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter