MyConnectivityWrapper constructor
const
MyConnectivityWrapper({
- Key? key,
- required Widget child,
- Color overlayColor = Colors.black54,
- double blurAmount = 5.0,
- Color messageBackgroundColor = Colors.white,
- Color messageTextColor = Colors.black87,
- Color buttonColor = Colors.blue,
- Color buttonTextColor = Colors.white,
- String noConnectionMessage = 'No Internet Connection',
- String buttonText = 'Try Again',
- double borderRadius = 8.0,
- EdgeInsets messagePadding = const EdgeInsets.all(24.0),
- VoidCallback? onButtonPressed,
- 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);