swlabels 0.0.1 copy "swlabels: ^0.0.1" to clipboard
swlabels: ^0.0.1 copied to clipboard

outdated

SWLabels package

SWlabels #

SWLabels is a tool for conveniently printing text on SpriteWidget objects

It is very convenient for use in the following cases:

  • for debugging when it is more convenient to see information directly on the screen, instead of using logs or a debugger
  • to temporarily display the state of the application (for example, the score and life in games), while the graphics are not yet developed

You can also see an swlabels_axample of using SWLabels. A screenshot is taken from this example:

altText

In the left part you can see two SWLabels with the headings "Status" and "Ball positions". The first of them shows the current status of the application. In the second - the coordinates of all the balls that continuously moving. To the right is SWLabels with the heading "Terminal". He is so named because the lines in it will scroll up, as in ordinary terminals.

Lines in SWLabels are called text Labels (SWLabel objects). Information in them can be displayed different ways:

  • at the end of the list with the name of the label. The following output by name will replace existing text.
  • by coordinates with the name of the label. The following output will also replace existing text.
  • at the end of the list without specifying a label name. In this case, as soon as the number of rows reaches the maximum, the lines will scroll up. This is a mode resembling a terminal or a log

For more details, see the example in the repository swlabels_axample

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

SWLabels package

Homepage

License

unknown (LICENSE)

Dependencies

flutter, meta, spritewidget

More

Packages that depend on swlabels