Panel

constructor(content: Widget, title: Widget? = null, bottomTitle: Widget? = null, expand: Boolean = false, padding: Padding = DEFAULT_PADDING, borderType: BorderType? = BorderType.ROUNDED, titleAlign: TextAlign = CENTER, bottomTitleAlign: TextAlign = titleAlign, borderStyle: TextStyle? = null, titlePadding: Int? = null)

Parameters

content

The content to draw in the center of the panel.

title

The content to draw in the top border

bottomTitle

The content to draw in the bottom border

expand

If true, the panel will expand horizontally to fill the screen. If false, it will be just wide enough to fit the content.

padding

Extra padding to add between the content and the panel border. (default: no extra padding)

borderType

The type of border to draw around the content, or null for no border

titleAlign

The horizontal alignment for the top title (default: center)

bottomTitleAlign

The horizontal alignment for the bottom title (default: copy titleAlign)

borderStyle

The TextStyle for the border (default: Theme style panel.border)

titlePadding

Amount of horizontal padding to add between the titles and the border characters (default: Theme value panel.title.padding)


constructor(content: String, title: String? = null, bottomTitle: String? = null, expand: Boolean = false, padding: Padding = DEFAULT_PADDING, borderType: BorderType? = BorderType.ROUNDED, titleAlign: TextAlign = CENTER, bottomTitleAlign: TextAlign = titleAlign, borderStyle: TextStyle? = null, titlePadding: Int? = null)

Parameters

content

The content to draw in the center of the panel.

title

The content to draw in the top border

bottomTitle

The content to draw in the bottom border

expand

If true, the panel will expand horizontally to fill the screen. If false, it will be just wide enough to fit the content.

padding

Extra padding to add between the content and the panel border. (default: no extra padding)

borderType

The type of border to draw around the content, or null for no border

titleAlign

The horizontal alignment for the top title (default: center)

bottomTitleAlign

The horizontal alignment for the bottom title (default: copy titleAlign)

borderStyle

The TextStyle for the border (default: Theme style panel.border)

titlePadding

Amount of horizontal padding to add between the titles and the border characters (default: Theme value panel.title.padding)