📱 Flutter
Beginner
What is the Padding widget?
Answer
The Padding widget inserts empty space around its child widget. You define the padding using an EdgeInsets object, which supports all() for equal padding on all sides, symmetric() for horizontal/vertical padding, and only() for padding on specific sides. Example: Padding(padding: EdgeInsets.all(16), child: Text("Hello")). You can also use the padding property directly on the Container widget.