Browse Source

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

将名称文本包装在 FittedBox 中,并限制为单行显示,防止长文本溢出。同时添加 Spacer 以改善布局间距。
newdev_shunjiawei
lxm 7 months ago
parent
commit
b8d4085a45
  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(
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( child: Text(
data['name'], data['name'],
maxLines: 1,
style: TextStyle( style: TextStyle(
fontSize: 16.sp, fontSize: 16.sp,
color: isDarkMode ? Colors.white : Colors.black87, color: isDarkMode ? Colors.white : Colors.black87,
@ -444,6 +450,9 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> {
), ),
), ),
), ),
),
),
const Spacer(),
data['tag'].isNotEmpty data['tag'].isNotEmpty
? Wrap( ? Wrap(
spacing: 5.w, spacing: 5.w,

Loading…
Cancel
Save