@@ -3355,23 +3355,6 @@ abstract class ParagraphBuilder {
33553355 /// [Paragraph] .
33563356 factory ParagraphBuilder (ParagraphStyle style) = _NativeParagraphBuilder ;
33573357
3358- /// Whether the rounding hack enabled by default in SkParagraph and TextPainter
3359- /// is disabled.
3360- ///
3361- /// Do not rely on this getter as it exists for migration purposes only and
3362- /// will soon be removed.
3363- @Deprecated ('''
3364- The shouldDisableRoundingHack flag is for internal migration purposes only and should not be used.
3365- ''' )
3366- static bool get shouldDisableRoundingHack => _shouldDisableRoundingHack;
3367- static bool _shouldDisableRoundingHack = true ;
3368- /// Do not call this method as it is for migration purposes only and will soon
3369- /// be removed.
3370- // ignore: use_setters_to_change_properties
3371- static void setDisableRoundingHack (bool disableRoundingHack) {
3372- _shouldDisableRoundingHack = disableRoundingHack;
3373- }
3374-
33753358 /// The number of placeholders currently in the paragraph.
33763359 int get placeholderCount;
33773360
@@ -3489,11 +3472,10 @@ base class _NativeParagraphBuilder extends NativeFieldWrapperClass1 implements P
34893472 style._height ?? 0 ,
34903473 style._ellipsis ?? '' ,
34913474 _encodeLocale (style._locale),
3492- ! ParagraphBuilder .shouldDisableRoundingHack,
34933475 );
34943476 }
34953477
3496- @Native < Void Function (Handle , Handle , Handle , Handle , Handle , Double , Double , Handle , Handle , Bool )> (symbol: 'ParagraphBuilder::Create' )
3478+ @Native < Void Function (Handle , Handle , Handle , Handle , Handle , Double , Double , Handle , Handle )> (symbol: 'ParagraphBuilder::Create' )
34973479 external void _constructor (
34983480 Int32List encoded,
34993481 ByteData ? strutData,
@@ -3503,7 +3485,7 @@ base class _NativeParagraphBuilder extends NativeFieldWrapperClass1 implements P
35033485 double height,
35043486 String ellipsis,
35053487 String locale,
3506- bool applyRoundingHack );
3488+ );
35073489
35083490 @override
35093491 int get placeholderCount => _placeholderCount;
0 commit comments