add chart code
This commit is contained in:
@@ -139,9 +139,14 @@ class LeaveDetail extends StatelessWidget {
|
||||
const SizedBox(width: 12),
|
||||
Text(label, style: const TextStyle(color: Colors.grey, fontSize: 14)),
|
||||
const Spacer(),
|
||||
Text(
|
||||
value,
|
||||
style: const TextStyle(fontWeight: FontWeight.w600, fontSize: 15),
|
||||
// 使用 Flexible 限制文字寬度並允許換行
|
||||
Flexible(
|
||||
child: Text(
|
||||
value,
|
||||
textAlign: TextAlign.end, // 靠右對齊
|
||||
style: const TextStyle(fontWeight: FontWeight.w600, fontSize: 15),
|
||||
softWrap: true, // 允許自動換行
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user