wOneForth method

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

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

Example:

SomeWidget().wOneForth(context)

Implementation

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