child property
child
is the child widget in which we want to use our package
child
must be in the top of our (Widget Tree) to work properly.
You can say that your child
widget is always will be our MaterialApp
or the home
widget
if you wanted to use the MediaQuery
related functions with this package
child
is a requirement to enable the package to work.
Still confused? Run the example app in which you can fine a working example with full comments to teach you every step the example: https://github.com/AhmedAbouelkher/UI_SizeConfig-for-Flutter/tree/master/example
Implementation
final Widget child;