Skip to content

Commit 032e9bc

Browse files
author
Nguyễn Tuấn Việt
committed
fix(analysis): remove unused key param, replace fontWeight.index with .value
render_table.dart: _TableDepthExceededPlaceholder is private and never constructed with an explicit key — remove unused optional parameter. udt_serializer.dart: FontWeight.index is deprecated in Flutter 3.41.x. Use FontWeight.value which returns the CSS weight (100-900) directly.
1 parent 4f4805f commit 032e9bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/hyper_render_core/lib/src/core/render_table.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class _TableNestingDepth extends InheritedWidget {
4545

4646
/// Shown in place of a table that exceeds [_kMaxTableNestingDepth].
4747
class _TableDepthExceededPlaceholder extends StatelessWidget {
48-
const _TableDepthExceededPlaceholder({super.key});
48+
const _TableDepthExceededPlaceholder();
4949

5050
@override
5151
Widget build(BuildContext context) {

packages/hyper_render_devtools/lib/src/udt_serializer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class UdtSerializer {
5858
// Text
5959
'color': style.color.toARGB32(),
6060
'fontSize': style.fontSize,
61-
'fontWeight': style.fontWeight.index,
61+
'fontWeight': style.fontWeight.value,
6262
'fontStyle': style.fontStyle.index,
6363
'fontFamily': style.fontFamily,
6464
'lineHeight': style.lineHeight,

0 commit comments

Comments
 (0)