mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: reset line height to null as default value (#5942)
This commit is contained in:
parent
1db8480b75
commit
d3d9ab2fb0
@ -60,6 +60,7 @@ class ChatAIMessageWidget extends StatelessWidget {
|
||||
onAIResponseLimit: () {
|
||||
return FlowyText(
|
||||
LocaleKeys.sideBar_askOwnerToUpgradeToAIMax.tr(),
|
||||
lineHeight: 1.5,
|
||||
maxLines: 10,
|
||||
);
|
||||
},
|
||||
|
@ -162,6 +162,7 @@ class _FileUploadLocalState extends State<_FileUploadLocal> {
|
||||
.tr(),
|
||||
fontSize: 16,
|
||||
maxLines: 2,
|
||||
lineHeight: 1.5,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
],
|
||||
|
@ -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,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
@ -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)
|
||||
|
@ -626,6 +626,7 @@ class _Heading extends StatelessWidget {
|
||||
description!,
|
||||
fontSize: 12,
|
||||
maxLines: 5,
|
||||
lineHeight: 1.5,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user