File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
frontend/appflowy_flutter
lib/plugins/database_view/widgets/row/cells/select_option_cell
packages/flowy_infra_ui/lib/style_widget Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ import 'package:appflowy_backend/protobuf/flowy-database2/select_option.pb.dart'
3
3
4
4
import 'package:flowy_infra/theme_extension.dart' ;
5
5
import 'package:flowy_infra/size.dart' ;
6
+ import 'package:flowy_infra_ui/flowy_infra_ui.dart' ;
6
7
import 'package:flowy_infra_ui/style_widget/hover.dart' ;
7
- import 'package:flowy_infra_ui/style_widget/icon_button.dart' ;
8
- import 'package:flowy_infra_ui/style_widget/text.dart' ;
9
- import 'package:flowy_infra_ui/widget/spacing.dart' ;
10
8
import 'package:flutter/material.dart' ;
11
9
import 'package:easy_localization/easy_localization.dart' ;
12
10
import 'package:appflowy/generated/locale_keys.g.dart' ;
@@ -93,7 +91,7 @@ class SelectOptionTag extends StatelessWidget {
93
91
@override
94
92
Widget build (BuildContext context) {
95
93
EdgeInsets padding =
96
- const EdgeInsets .symmetric (vertical: 1.5 , horizontal: 8.0 );
94
+ const EdgeInsets .symmetric (vertical: 2 , horizontal: 8.0 );
97
95
if (onRemove != null ) {
98
96
padding = padding.copyWith (right: 2.0 );
99
97
}
Original file line number Diff line number Diff line change
1
+ import 'dart:io' ;
2
+
1
3
import 'package:flutter/material.dart' ;
2
4
3
5
class FlowyText extends StatelessWidget {
@@ -89,10 +91,12 @@ class FlowyText extends StatelessWidget {
89
91
maxLines: maxLines,
90
92
textAlign: textAlign,
91
93
overflow: overflow ?? TextOverflow .clip,
92
- textHeightBehavior: const TextHeightBehavior (
93
- applyHeightToFirstAscent: false ,
94
- applyHeightToLastDescent: false ,
95
- ),
94
+ textHeightBehavior: Platform .isAndroid || Platform .isIOS
95
+ ? const TextHeightBehavior (
96
+ applyHeightToFirstAscent: false ,
97
+ applyHeightToLastDescent: false ,
98
+ )
99
+ : null ,
96
100
style: Theme .of (context).textTheme.bodyMedium! .copyWith (
97
101
fontSize: fontSize,
98
102
fontWeight: fontWeight,
You can’t perform that action at this time.
0 commit comments