fix typos

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-05 11:35:47 +08:00
parent b4a46133be
commit ea52dd4484
51 changed files with 162 additions and 162 deletions

View File

@@ -121,7 +121,7 @@ class CustomTooltipState extends State<CustomTooltip>
final _CustomTooltipOverlay overlayChild = _CustomTooltipOverlay(
verticalOffset: box.size.height / 2,
horizontslOffset: box.size.width / 2,
horizontalOffset: box.size.width / 2,
type: widget.type,
animation: _overlayAnimation,
target: target,
@@ -175,7 +175,7 @@ class CustomTooltipState extends State<CustomTooltip>
class _CustomTooltipOverlay extends StatelessWidget {
const _CustomTooltipOverlay({
required this.verticalOffset,
required this.horizontslOffset,
required this.horizontalOffset,
required this.type,
required this.animation,
required this.target,
@@ -185,7 +185,7 @@ class _CustomTooltipOverlay extends StatelessWidget {
});
final double verticalOffset;
final double horizontslOffset;
final double horizontalOffset;
final TooltipType type;
final Animation<double> animation;
final Offset target;
@@ -200,7 +200,7 @@ class _CustomTooltipOverlay extends StatelessWidget {
type: type,
target: target,
verticalOffset: verticalOffset,
horizontslOffset: horizontslOffset,
horizontslOffset: horizontalOffset,
preferBelow: false,
),
children: [

View File

@@ -902,10 +902,10 @@ class RichTextEditingController extends TextEditingController {
// emoji tap
if (offset == range.start) {
if (e.emote != null) {
final cloestOffset = textPainter.getClosestGlyphForOffset(localPos);
if (cloestOffset != null) {
final offsetRect = cloestOffset.graphemeClusterLayoutBounds;
final offsetRange = cloestOffset.graphemeClusterCodeUnitRange;
final closestOffset = textPainter.getClosestGlyphForOffset(localPos);
if (closestOffset != null) {
final offsetRect = closestOffset.graphemeClusterLayoutBounds;
final offsetRange = closestOffset.graphemeClusterCodeUnitRange;
if (lastTapDownPosition.dx > offsetRect.right) {
return offsetRange.end;
} else {