w24 method

Widget w24(
  1. BuildContext context, {
  2. Key? key,
})

Creates a SizedBox widget with a specific width of 24% of the MediaQuery width.

Example:

SomeWidget().w24(context)

Implementation

Widget w24(BuildContext context, {Key? key}) => SizedBox(
      key: key,
      width: context.screenWidthInPercentage * 24,
      child: this,
    );