“margin kontainer flutter” Kode Jawaban

margin flutter

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
    (
    	...
    ),
)
Silverlightning

margin kontainer flutter

@override
Widget build(BuildContext context) {
  return Scaffold(
    backgroundColor: Colors.white,
    body: Container(
      margin: const EdgeInsets.only(left: 20.0, right: 20.0),
      child: Container(),
    ),
  );
}
Encouraging Eland

margin kontainer flutter

@override
Widget build(BuildContext context) {
	return Scaffold(
    	backgroundColor: Colors.white,
		body: 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),
			// Margin only for left and right sides
			margin: const EdgeInsets.only(left: 10.0, right: 10.0),
			// Different margin for all sides
			margin: EdgeInsets.only(left: 5.0, top: 10.0, right: 15.0, bottom: 20.0),

			child: Child
			(
				...
			),
    	),
  	);
}
Fine Flatworm

Jawaban yang mirip dengan “margin kontainer flutter”

Pertanyaan yang mirip dengan “margin kontainer flutter”

Lebih banyak jawaban terkait untuk “margin kontainer flutter” di Dart

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya