You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in order to create a margin where all sides are equal we use new Margin(Size.SMALL) if there is more than one place in an application where a small margin is required we create a new instance of a Margin with small size.
I propose that we create constants for these types of margins such as Margin.ZERO, Margin.SMALL and Margin.MEDIUM, etc and deprecate, the new Margin(Size) constructor. This constructor should be made private. It makes no sense recreating identical instances of these Margins all over the place.
The text was updated successfully, but these errors were encountered:
Currently in order to create a margin where all sides are equal we use
new Margin(Size.SMALL)
if there is more than one place in an application where a small margin is required we create a new instance of a Margin with small size.I propose that we create constants for these types of margins such as
Margin.ZERO
,Margin.SMALL
andMargin.MEDIUM
, etc and deprecate, thenew Margin(Size)
constructor. This constructor should be made private. It makes no sense recreating identical instances of these Margins all over the place.The text was updated successfully, but these errors were encountered: