Answers for "flutter pad"

5

flutter margins

Container (
	// Even Margin On All Sides
    margin: EdgeInsets.all(10.0),
    // Symetric Margin
    margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 5.0),
    // Different Margin For All Sides
    margin: EdgeInsets.fromLTRB(1.0, 2.0, 3.0, 4.0);
    
    child: Child
    (
    	...
    ),
)
Posted by: Guest on May-25-2020
1

flutter padding

const Card(
  child: Padding(
    padding: EdgeInsets.all(16.0),
    child: Text('Hello World!'),
  ),
)
Posted by: Guest on July-27-2020
8

flutter padding

Padding(
    padding: EdgeInsets.all(16.0),
    padding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 10.0),
    padding: EdgeInsets.fromLTRB(10.0, 10.0, 10.0, 10.0);
    child: Text('Padding'),
  ),
Posted by: Guest on August-25-2021
0

flutter padding

Padding(
  padding: const EdgeInsets.all(8.0),
  child: Text("text"),
);
Posted by: Guest on November-10-2021
-1

flutter listview top padding

you should wrap the ListView with a MediaQuery.removePadding widget (with removeTop: true).
Posted by: Guest on June-04-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language