height method

double height(
  1. BuildContext context
)

use --> context.height instead of MediaQuery.of(context).size.height

Implementation

double height(BuildContext context) => MediaQuery.of(context).size.height;