chore: reset line height to null as default value (#5942)

This commit is contained in:
Annie 2024-08-12 18:08:54 +08:00 committed by GitHub
parent 1db8480b75
commit d3d9ab2fb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 12 additions and 6 deletions

View File

@ -60,6 +60,7 @@ class ChatAIMessageWidget extends StatelessWidget {
onAIResponseLimit: () {
return FlowyText(
LocaleKeys.sideBar_askOwnerToUpgradeToAIMax.tr(),
lineHeight: 1.5,
maxLines: 10,
);
},

View File

@ -162,6 +162,7 @@ class _FileUploadLocalState extends State<_FileUploadLocal> {
.tr(),
fontSize: 16,
maxLines: 2,
lineHeight: 1.5,
textAlign: TextAlign.center,
),
],

View File

@ -204,6 +204,7 @@ class _UpgradeToAILocalPlanState extends State<_UpgradeToAILocalPlan> {
FlowyText.medium(
LocaleKeys.sideBar_upgradeToAILocal.tr(),
maxLines: 10,
lineHeight: 1.5,
),
const VSpace(4),
Opacity(
@ -212,6 +213,7 @@ class _UpgradeToAILocalPlanState extends State<_UpgradeToAILocalPlan> {
LocaleKeys.sideBar_upgradeToAILocalDesc.tr(),
fontSize: 12,
maxLines: 10,
lineHeight: 1.5,
),
),
],

View File

@ -362,6 +362,7 @@ class _CurrentPathState extends State<_CurrentPath> {
widget.path,
maxLines: 2,
overflow: TextOverflow.ellipsis,
lineHeight: 1.5,
decoration: isHovering ? TextDecoration.underline : null,
color: isLM
? const Color(0xFF005483)

View File

@ -626,6 +626,7 @@ class _Heading extends StatelessWidget {
description!,
fontSize: 12,
maxLines: 5,
lineHeight: 1.5,
),
),
],

View File

@ -41,8 +41,8 @@ class FlowyText extends StatelessWidget {
this.selectable = false,
this.fontFamily,
this.fallbackFontFamily,
// https://api.flutter.dev/flutter/painting/TextStyle/height.html
this.lineHeight = 1.5,
// // https://api.flutter.dev/flutter/painting/TextStyle/height.html
this.lineHeight,
this.figmaLineHeight,
this.withTooltip = false,
this.isEmoji = false,
@ -61,7 +61,7 @@ class FlowyText extends StatelessWidget {
this.selectable = false,
this.fontFamily,
this.fallbackFontFamily,
this.lineHeight = 1.5,
this.lineHeight,
this.withTooltip = false,
this.isEmoji = false,
this.strutStyle,
@ -82,7 +82,7 @@ class FlowyText extends StatelessWidget {
this.selectable = false,
this.fontFamily,
this.fallbackFontFamily,
this.lineHeight = 1.5,
this.lineHeight,
this.withTooltip = false,
this.isEmoji = false,
this.strutStyle,
@ -102,7 +102,7 @@ class FlowyText extends StatelessWidget {
this.selectable = false,
this.fontFamily,
this.fallbackFontFamily,
this.lineHeight = 1.5,
this.lineHeight,
this.withTooltip = false,
this.isEmoji = false,
this.strutStyle,
@ -122,7 +122,7 @@ class FlowyText extends StatelessWidget {
this.selectable = false,
this.fontFamily,
this.fallbackFontFamily,
this.lineHeight = 1.5,
this.lineHeight,
this.withTooltip = false,
this.isEmoji = false,
this.strutStyle,