wFull method

AzButton wFull()

Implementation

AzButton wFull(){
  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 width = screenSize.width;
  _width = width;
  _fixedSize = MaterialStateProperty.all(Size(width, _height));
  return this;
}