sizeScreen function

Size sizeScreen()

Returns the size of the screen.

This function uses the MediaQuery class to obtain the size of the screen based on the context of the appNavigator. It returns a Size object representing the width and height of the screen.

Implementation

Size sizeScreen() => MediaQuery.of(appNavigator.context).size;