chore: require always two lines (#4068)

This commit is contained in:
Richard Shiue 2023-12-02 21:33:15 +08:00 committed by GitHub
parent 415f121720
commit bb4b987681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,10 +97,20 @@ class _MobileRecentViewState extends State<MobileRecentView> {
Expanded( Expanded(
child: Padding( child: Padding(
padding: const EdgeInsets.fromLTRB(8, 18, 8, 2), padding: const EdgeInsets.fromLTRB(8, 18, 8, 2),
child: FlowyText.medium( // hack: minLines currently not supported in Text widget.
view.name, // https://github.com/flutter/flutter/issues/31134
maxLines: 2, child: Stack(
overflow: TextOverflow.ellipsis, children: [
FlowyText(
view.name,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
const FlowyText(
"\n\n",
maxLines: 2,
),
],
), ),
), ),
), ),