addHorizontalSpace method
Creates a horizontal spacing widget with responsive width.
The width parameter is multiplied by the screen width from GetX to create
responsive horizontal spacing that adapts to different screen sizes.
Parameters:
width: A fractional value (0.0 to 1.0) representing the proportion of screen width.
Returns a SizedBox with the calculated width.
Example:
// Add 5% of screen width as spacing
RtCommonWidget.instance.addHorizontalSpace(0.05);
Implementation
Widget addHorizontalSpace(double width) {
return SizedBox(
width: Get.width * width,
);
}