afterFirstLayout method
Implementation
void afterFirstLayout(BuildContext context) {
try {
height = context.size!.height;
width = context.size!.width;
}catch(e){}
}
void afterFirstLayout(BuildContext context) {
try {
height = context.size!.height;
width = context.size!.width;
}catch(e){}
}