diff --git a/lib/features/network_status_handle/presentation/network_connnection_controller.dart b/lib/features/network_status_handle/presentation/network_connnection_controller.dart index 0fd4ba695..047f0a236 100644 --- a/lib/features/network_status_handle/presentation/network_connnection_controller.dart +++ b/lib/features/network_status_handle/presentation/network_connnection_controller.dart @@ -58,8 +58,6 @@ class NetworkConnectionController extends BaseController { _setNetworkConnectivityState(result); if (_isEnableShowToastDisconnection && !isNetworkConnectionAvailable()) { _showToastLostConnection(); - } else if (isNetworkConnectionAvailable()) { - _showToastConnectedToTheNetwork(); } else { ToastView.dismiss(); } @@ -96,18 +94,4 @@ class NetworkConnectionController extends BaseController { ); } } - - void _showToastConnectedToTheNetwork() { - if (currentContext != null && currentOverlayContext != null) { - _appToast.showToastMessage( - currentOverlayContext!, - AppLocalizations.of(currentContext!).connectedToTheInternet, - leadingSVGIcon: _imagePaths.icConnectedInternet, - backgroundColor: AppColor.primaryColor, - textColor: Colors.white, - padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 12), - duration: const Duration(seconds: 5) - ); - } - } } \ No newline at end of file