Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
gpt_markdown
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
saminsohag
2024-03-12 17:40:58 +0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d4946ef3942948c029b3578742a91765d6ea436a
d4946ef3
1 parent
3f45273b
Fixed the hittest essue of the ordered list
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
gpt_markdown/example/lib/main.dart
gpt_markdown/lib/custom_widgets/unordered_ordered_list.dart
gpt_markdown/example/lib/main.dart
View file @
d4946ef
...
...
@@ -236,7 +236,7 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex
),
);
}
child =
GestureDetector
(
child =
InkWell
(
onTap: () {
debugPrint("Hello world");
},
...
...
gpt_markdown/lib/custom_widgets/unordered_ordered_list.dart
View file @
d4946ef
...
...
@@ -394,4 +394,26 @@ class OrderedListRenderObject extends RenderProxyBox {
);
pt
.
paint
(
context
.
canvas
,
offset
+
_ptOffset
);
}
@override
bool
hitTestSelf
(
Offset
position
)
{
return
false
;
}
@override
bool
hitTestChildren
(
BoxHitTestResult
result
,
{
required
Offset
position
})
{
Offset
offset
=
(
child
!.
parentData
as
BoxParentData
).
offset
;
return
result
.
addWithPaintOffset
(
offset:
offset
,
position:
position
,
hitTest:
(
result
,
newOffset
)
{
return
child
?.
hitTest
(
result
,
position:
newOffset
)
??
false
;
},
);
}
@override
bool
hitTest
(
BoxHitTestResult
result
,
{
required
Offset
position
})
{
return
hitTestChildren
(
result
,
position:
position
);
}
}
...
...
Please
register
or
login
to post a comment