@@ -3376,23 +3376,6 @@ abstract class ParagraphBuilder {
3376
3376
/// [Paragraph] .
3377
3377
factory ParagraphBuilder (ParagraphStyle style) = _NativeParagraphBuilder ;
3378
3378
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
-
3396
3379
/// The number of placeholders currently in the paragraph.
3397
3380
int get placeholderCount;
3398
3381
@@ -3510,11 +3493,10 @@ base class _NativeParagraphBuilder extends NativeFieldWrapperClass1 implements P
3510
3493
style._height ?? 0 ,
3511
3494
style._ellipsis ?? '' ,
3512
3495
_encodeLocale (style._locale),
3513
- ! ParagraphBuilder .shouldDisableRoundingHack,
3514
3496
);
3515
3497
}
3516
3498
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' )
3518
3500
external void _constructor (
3519
3501
Int32List encoded,
3520
3502
ByteData ? strutData,
@@ -3524,7 +3506,7 @@ base class _NativeParagraphBuilder extends NativeFieldWrapperClass1 implements P
3524
3506
double height,
3525
3507
String ellipsis,
3526
3508
String locale,
3527
- bool applyRoundingHack );
3509
+ );
3528
3510
3529
3511
@override
3530
3512
int get placeholderCount => _placeholderCount;
0 commit comments