I try to find maximum x and maximum y of screen size by height and width and below image and code.
Expected Output
Path drawPath(){
double width = window.physicalSize.width;
double height = window.physicalSize.height;
Path path = Path();
path.moveTo(0,0);
path.lineTo(width, height);
return path;
}
Getting Output
So how can I find Maximum X and Maximum Y in flutter screen ?
Expected output(not perfect but approx.) getting by this code.
Path drawPath(){
double width = window.physicalSize.width;
double height = window.physicalSize.height;
Path path = Path();
path.moveTo(0,0);
path.lineTo(width/2, height/2); //need to divide by 2
return path;
}

