Browse Source

fix: 修复底部工作表名称文本溢出问题

将名称文本包装在 FittedBox 中,并限制为单行显示,防止长文本溢出。同时添加 Spacer 以改善布局间距。
weicu
lxm 7 months ago
parent
commit
05151108a5
  1. 11
      lib/modules/meeting/views/bottomSheet/generate_bottom_sheet.dart

11
lib/modules/meeting/views/bottomSheet/generate_bottom_sheet.dart

@ -434,9 +434,15 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> {
),
),
Padding(
padding: EdgeInsets.symmetric(vertical: 10.w),
padding: EdgeInsets.symmetric(vertical: 8.w),
child: SizedBox(
height: 22.w,
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerLeft,
child: Text(
data['name'],
maxLines: 1,
style: TextStyle(
fontSize: 16.sp,
color: isDarkMode ? Colors.white : Colors.black87,
@ -444,6 +450,9 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> {
),
),
),
),
),
const Spacer(),
data['tag'].isNotEmpty
? Wrap(
spacing: 5.w,

Loading…
Cancel
Save