This is Container widget. This widget motivated by Container in Flutter.

See: https://api.flutter.dev/flutter/widgets/Container-class.html

Props

width

Value: number | undefined

height

Value: number | undefined

color

Value: string (default: transparent)

This define background color of the container.

margin

Value: EdgeInsets (default: EdgeInsets.all(0))

padding

Value: EdgeInsets (default: EdgeInsets.all(0))

Alignment

Value: Alignment | undefined

child

Value: Widget | undefined