initialise method
CupertinoStackViewController has to be initialised as soon as the application starts. Use this method with the MediaQuery.of(context).size.height and MediaQuery.of(context).size.width values.
Implementation
void initialise(double height, double width) {
this.height = height;
this.width = width;
}