Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with the PinFieldAutoFill with new flutter version 3.24.0 on glyphBounds.isEmpty #239

Open
jk-hub opened this issue Aug 8, 2024 · 0 comments

Comments

@jk-hub
Copy link

jk-hub commented Aug 8, 2024

This is the Exception we are getting when we try to open the video

#3 _TextLayout._endOfTextCaretMetrics (package:flutter/src/painting/text_painter.dart:348:57)
text_painter.dart:348
#4 _TextLayout._endOfTextCaretMetrics (package:flutter/src/painting/text_painter.dart)
#5 TextPainter._computeCaretMetrics (package:flutter/src/painting/text_painter.dart:1452:34)
text_painter.dart:1452
#6 TextPainter._computeCaretMetrics (package:flutter/src/painting/text_painter.dart:1462:14)
text_painter.dart:1462
#7 TextPainter.getOffsetForCaret (package:flutter/src/painting/text_painter.dart:1334:45)
text_painter.dart:1334
#8 RenderEditable.getLocalRectForCaret (package:flutter/src/rendering/editable.dart:1784:45)
editable.dart:1784
#9 EditableTextState._updateComposingRectIfNeeded (package:flutter/src/widgets/editable_text.dart:4498:38)
editable_text.dart:4498
#10 EditableTextState._schedulePeriodicPostFrameCallbacks (package:flutter/src/widgets/editable_text.dart:4405:5)
editable_text.dart:4405
#11 EditableTextState._openInputConnection (package:flutter/src/widgets/editable_text.dart:3616:7)
editable_text.dart:3616
#12 EditableTextState._openOrCloseInputConnectionIfNeeded (package:flutter/src/widgets/editable_text.dart:3650:7)
editable_text.dart:3650
#13 EditableTextState._handleFocusChanged (package:flutter/src/widgets/editable_text.dart:4341:5)
editable_text.dart:4341
#14 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:437:24)
change_notifier.dart:437
#15 FocusNode._notify (package:flutter/src/widgets/focus_manager.dart:1090:5)
focus_manager.dart:1090
#16 FocusManager.applyFocusChangesIfNeeded (package:flutter/src/widgets/focus_manager.dart:1871:12)
focus_manager.dart:1871
(elided 4 frames from class _AssertionError and dart:async)

The FocusNode sending notification was: FocusNode#1a7a1([PRIMARY FOCUS])
context: Focus
PRIMARY FOCUS
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by gesture ═══════════════════════════════════════════
'package:flutter/src/painting/text_painter.dart': Failed assertion: line 373 pos 14: '!glyphBounds.isEmpty': is not true.
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
'package:flutter/src/painting/text_painter.dart': Failed assertion: line 373 pos 14: '!glyphBounds.isEmpty': is not true.
════════════════════════════════════════════════════════════════════════════════

This is the Exception we are getting
════════ Exception caught by rendering library ═════════════════════════════════
'package:flutter/src/painting/text_painter.dart': Failed assertion: line 373 pos 14: '!glyphBounds.isEmpty': is not true.
The relevant error-causing widget was:
PinFieldAutoFill-[<'715237281'>] PinFieldAutoFill:file:///Users/jatinkataria/Developer/flutter_projects/Fitpage/bharti-mobile-app/lib/feature/auth/presentation/pages/enter_otp_screen/enter_otp_screen.dart:207:25
The following RenderObject was being processed when the exception was fired: RenderEditable#1fe59 relayoutBoundary=up24
RenderObject: RenderEditable#1fe59 relayoutBoundary=up24
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by scheduler library ═════════════════════════════════
'package:flutter/src/painting/text_painter.dart': Failed assertion: line 373 pos 14: '!glyphBounds.isEmpty': is not true.
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
A RenderFlex overflowed by 18 pixels on the bottom.
The relevant error-causing widget was:
Column Column:file:///Users/jatinkataria/Developer/flutter_projects/Fitpage/bharti-mobile-app/lib/feature/auth/presentation/pages/enter_otp_screen/enter_otp_screen.dart:201:28
════════════════════════════════════════════════════════════════════════════════

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant