MyConnectivityWrapper constructor

const MyConnectivityWrapper({
  1. Key? key,
  2. required Widget child,
  3. Color overlayColor = Colors.black54,
  4. double blurAmount = 5.0,
  5. Color messageBackgroundColor = Colors.white,
  6. Color messageTextColor = Colors.black87,
  7. Color buttonColor = Colors.blue,
  8. Color buttonTextColor = Colors.white,
  9. String noConnectionMessage = 'No Internet Connection',
  10. String buttonText = 'Try Again',
  11. double borderRadius = 8.0,
  12. EdgeInsets messagePadding = const EdgeInsets.all(24.0),
  13. VoidCallback? onButtonPressed,
  14. bool showButton = true,
})

Implementation

const MyConnectivityWrapper({
  Key? key,
  required this.child,
  this.overlayColor = Colors.black54,
  this.blurAmount = 5.0,
  this.messageBackgroundColor = Colors.white,
  this.messageTextColor = Colors.black87,
  this.buttonColor = Colors.blue,
  this.buttonTextColor = Colors.white,
  this.noConnectionMessage = 'No Internet Connection',
  this.buttonText = 'Try Again',
  this.borderRadius = 8.0,
  this.messagePadding = const EdgeInsets.all(24.0),
  this.onButtonPressed,
  this.showButton = true,
}) : super(key: key);