📜  如何在长笛中写入文本返回对齐 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:25.780000             🧑  作者: Mango

代码示例1
Padding(
    padding: const EdgeInsets.all(8.0),
    child: Container(
      width: 300,
      padding: EdgeInsets.all(10),
        decoration: BoxDecoration(
          color: Colors.blue,
        ),
        child: Column(
          mainAxisSize: MainAxisSize.min,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Container(
              child: Text(
                "Without Alignment",
                style: TextStyle(fontWeight: FontWeight.bold, fontSize: 30),
              ),
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.end,
              children: [
                Container(
              decoration: BoxDecoration(
                border: Border.all(),
              ),
              child: Text(
                "7:30 PM",
                textDirection: TextDirection.rtl,
                textAlign: TextAlign.right,
                style: TextStyle(fontWeight: FontWeight.bold, fontSize: 30),
              ),
            ),
              ],
            )
          ],
        ),
      ),
  ),