Ask the assistant
0/400
Your question is processed by an AI service and kept to improve answers. Do not enter personal data.

    Align

    This page has not been translated into English yet. The Russian original is below.

    Позиционирует дочерний элемент внутри себя по заданному выравниванию.

    Тип: single-child

    Align alignment:bottomRight
      Text "Внизу справа"

    Параметры

    Параметр Тип Default Описание
    alignment string center Позиция: topLeft , topCenter , topRight , centerLeft , center , centerRight , bottomLeft , bottomCenter , bottomRight
    widthFactor double — Множитель ширины относительно дочернего элемента
    heightFactor double — Множитель высоты относительно дочернего элемента

    Примеры

    Бейдж в углу

    Stack
      SizedBox width:200 height:200
        ColoredBox color:#36345E
      Align alignment:topRight
        Text "NEW"
          #style fontSize:12 color:#FF0000

    See also

    • Center — частный случай Align с alignment:center
    • Stack — позиционирование нескольких элементов
    DOCS
    dark_mode_baseline
    RU/EN
    menu_baseline