@@ -3376,23 +3376,6 @@ abstract class ParagraphBuilder {
33763376 /// [Paragraph] .
33773377 factory ParagraphBuilder (ParagraphStyle style) = _NativeParagraphBuilder ;
33783378
3379- /// Whether the rounding hack enabled by default in SkParagraph and TextPainter
3380- /// is disabled.
3381- ///
3382- /// Do not rely on this getter as it exists for migration purposes only and
3383- /// will soon be removed.
3384- @Deprecated ('''
3385- The shouldDisableRoundingHack flag is for internal migration purposes only and should not be used.
3386- ''' )
3387- static bool get shouldDisableRoundingHack => _shouldDisableRoundingHack;
3388- static bool _shouldDisableRoundingHack = true ;
3389- /// Do not call this method as it is for migration purposes only and will soon
3390- /// be removed.
3391- // ignore: use_setters_to_change_properties
3392- static void setDisableRoundingHack (bool disableRoundingHack) {
3393- _shouldDisableRoundingHack = disableRoundingHack;
3394- }
3395-
33963379 /// The number of placeholders currently in the paragraph.
33973380 int get placeholderCount;
33983381
@@ -3510,11 +3493,10 @@ base class _NativeParagraphBuilder extends NativeFieldWrapperClass1 implements P
35103493 style._height ?? 0 ,
35113494 style._ellipsis ?? '' ,
35123495 _encodeLocale (style._locale),
3513- ! ParagraphBuilder .shouldDisableRoundingHack,
35143496 );
35153497 }
35163498
3517- @Native < Void Function (Handle , Handle , Handle , Handle , Handle , Double , Double , Handle , Handle , Bool )> (symbol: 'ParagraphBuilder::Create' )
3499+ @Native < Void Function (Handle , Handle , Handle , Handle , Handle , Double , Double , Handle , Handle )> (symbol: 'ParagraphBuilder::Create' )
35183500 external void _constructor (
35193501 Int32List encoded,
35203502 ByteData ? strutData,
@@ -3524,7 +3506,7 @@ base class _NativeParagraphBuilder extends NativeFieldWrapperClass1 implements P
35243506 double height,
35253507 String ellipsis,
35263508 String locale,
3527- bool applyRoundingHack );
3509+ );
35283510
35293511 @override
35303512 int get placeholderCount => _placeholderCount;
0 commit comments