Skip to content

paint is not a function #4

@Matzu89

Description

@Matzu89

Hi, trying out your lib which looks very promising.

According to docs I have to use .paint() for painting the TuiPanelBox widget.

The method 'paint' isn't defined for the type 'TuiPanelBox'.

Managed to get it to paint by adjusting to paintSurface

TuiPanelBox(
      title: ' Hello TUI! ',
      titleStyle: TuiTheme.dark.titleStyle,
      borderStyle: TuiTheme.dark.borderStyle,
      child: TuiText('Welcome to Utopia TUI! Press Ctrl+C to quit.'),
    )
    .paintSurface(context.surface, TuiRect(x: 0, y: 0, width: context.width, height: context.height));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions