getGreedyWidth function

double getGreedyWidth(
  1. BuildContext context,
  2. double width
)

Implementation

double getGreedyWidth(BuildContext context, double width) {
  if (width == double.infinity) {
    return MediaQuery.of(context).size.width;
  } else {
    return width;
  }
}