heightFull method

AzButton heightFull()

Implementation

AzButton heightFull(){
  ui.PlatformDispatcher platformDispatcher = WidgetsBinding.instance.platformDispatcher;
  ui.FlutterView flutterView = platformDispatcher.views.first;
  // Access the physical size of the screen
  Size screenSize = flutterView.physicalSize / flutterView.devicePixelRatio;

  double height = screenSize.height;
  _height = height;
  _fixedSize = MaterialStateProperty.all(Size(_width, height));
  return this;
}