Trace:
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
flutterui:image_avatar [2026/04/15 08:30] admin created |
flutterui:image_avatar [2026/04/15 10:14] (current) admin |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| An image will be shown as it is, as rectangle. Sometimes it looks better as avatar: | An image will be shown as it is, as rectangle. Sometimes it looks better as avatar: | ||
| - | {{:flutterui:image_rect.png?nolink&400}} | + | {{:flutterui:image_rect.png?nolink&400}} {{:flutterui:image_avatar.png?nolink&400|}} |
| + | |||
| + | To show the image as avatar, simply do | ||
| + | |||
| + | editor.addStyleNames("f_as_avatar") | ||
| + | |||
| + | Per default, the radius will be set to the minimum of width and height. If you want to use the full size of the editor area, just add ''f_avatar_full_size'' as style. | ||
