fix: text overflow on time in event card (#2434)

This commit is contained in:
Richard Shiue 2023-05-03 10:11:16 +08:00 committed by GitHub
parent d5b70c842b
commit 95bc325e85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,17 +122,24 @@ class CalendarDayCard extends StatelessWidget {
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(vertical: 2), padding: const EdgeInsets.symmetric(vertical: 2),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
FlowyText.regular( Flexible(
cellData.date, flex: 3,
fontSize: 10, child: FlowyText.regular(
color: Theme.of(context).hintColor, cellData.date,
fontSize: 10,
color: Theme.of(context).hintColor,
overflow: TextOverflow.ellipsis,
),
), ),
const Spacer(), Flexible(
FlowyText.regular( child: FlowyText.regular(
cellData.time, cellData.time,
fontSize: 10, fontSize: 10,
color: Theme.of(context).hintColor, color: Theme.of(context).hintColor,
overflow: TextOverflow.ellipsis,
),
) )
], ],
), ),