stepWidgetSize method
Implementation
Size stepWidgetSize(BuildContext context, String text) {
final TextPainter textPainter = TextPainter(
text: TextSpan(text: text, style: guideTextStyle),
textDirection: TextDirection.ltr,
)..layout(
maxWidth: MediaQuery.sizeOf(context).width * maxWidthScale,
minWidth: 82,
);
return Size(
textPainter.size.width + padding.left + padding.right,
textPainter.size.height + padding.top + padding.bottom,
);
}