AppFlowy-IO / AppFlowy-IO/appflowy-editor

[Bug] Type error from TableBlockKeys.colsHeight int being used where double? is expected

Đang mở
#1,144 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
684
Fork
329
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Bug Description

I see various type error issues related to a table colsHeight holding an int and being used where a double is expected.

I would love to help, but unfortunately do not have time. So, I hope it is useful to just report what I see in the error reporting service I use.

**_TableColBorderState.buildFixedBorder. (table_col_border.dart:89)**
_Container.height seem to expect a double and complains when getting an int from TableBlockKeys.colsHeight_
```dart
Container buildFixedBorder(BuildContext context) {
return Container(
width: widget.tableNode.config.borderWidth,
height: context.select(
(Node n) => n.attributes[TableBlockKeys.colsHeight],
),
color: Colors.grey,
);
}
```

**_TableColBorderState.buildResizableBorder. (table_col_border.dart:75)**
_Same issue with Container.height expecting a double_
```dart
},
child: Container(
key: _borderKey,
width: widget.tableNode.config.borderWidth,
height: context.select(
(Node n) => n.attributes[TableBlockKeys.colsHeight],
),
color: _borderHovering || _borderDragging
? widget.borderHoverColor
: widget.borderColor,
),
```

### How to Reproduce

I'm unfortunately not sure what users have done, but I currently see the issue reported only on Android. I primarily test on web currently and have not experienced the issue or caught errors in the console logs.

### Expected Behavior

I would expect that the editor component doesn't throw errors like this.

### Operating System

Android

### AppFlowy Editor Version(s)

6.1.0

### Screenshots

_No response_

### Additional Context

I use Flutter 3.35.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.