diff --git a/lib/ui/widgets/fifth_screen/info_card.dart b/lib/ui/widgets/fifth_screen/info_card.dart index 61a4cf206997a21d16fc8f1ad21e4063471bde69..1b50258fb5d24527eb90101ed02478d7927ead32 100644 --- a/lib/ui/widgets/fifth_screen/info_card.dart +++ b/lib/ui/widgets/fifth_screen/info_card.dart @@ -1,4 +1,3 @@ -import 'package:connectivity_wrapper/connectivity_wrapper.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; @@ -25,30 +24,22 @@ class InfoCard extends StatelessWidget { color: Theme.of(context).colorScheme.surface, shape: const RoundedRectangleBorder( borderRadius: BorderRadius.all(Radius.circular(12))), - child: ConnectivityWidgetWrapper( - stacked: false, - offlineWidget: const Text( - 'Connecting', - style: TextStyle( - color: Colors.white, - ), - ), - child: ListTile( - shape: const RoundedRectangleBorder( - borderRadius: BorderRadius.all(Radius.circular(12))), - subtitle: subtitle.isNotEmpty ? Text(subtitle) : null, - trailing: trailing.isNotEmpty ? Text(trailing) : null, - leading: Icon(icon, color: Theme.of(context).colorScheme.primary), - minLeadingWidth: 10, - dense: true, - title: Text( - translate ? tr(title) : title, - style: Theme.of(context) - .textTheme - .titleMedium! - .apply(fontWeightDelta: 2), - ), - )), + child: ListTile( + shape: const RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(12))), + subtitle: subtitle.isNotEmpty ? Text(subtitle) : null, + trailing: trailing.isNotEmpty ? Text(trailing) : null, + leading: Icon(icon, color: Theme.of(context).colorScheme.primary), + minLeadingWidth: 10, + dense: true, + title: Text( + translate ? tr(title) : title, + style: Theme.of(context) + .textTheme + .titleMedium! + .apply(fontWeightDelta: 2), + ), + ), ); } }