Browse Source

Merge branch 'master' of http://git.ius.plus:88/Project-Vital/VitalApp

gavin.chen 1 năm trước cách đây
mục cha
commit
324db8fb9c
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      lib/pages/home/widgets/status_bar.dart

+ 2 - 3
lib/pages/home/widgets/status_bar.dart

@@ -100,11 +100,10 @@ class _NetStatusWidgetState extends State<_NetStatusWidget> {
       if (!_isServerConnectable) {
         return Icon(Icons.wifi_off_outlined, size: 36, color: Colors.red);
       }
-      if (netChecker.status == ConnectivityResult.wifi) {
-        return Icon(Icons.wifi, size: 36, color: Colors.green);
-      } else if (netChecker.status == ConnectivityResult.mobile) {
+      if (netChecker.status == ConnectivityResult.mobile) {
         return _NetworkIcon4G();
       }
+      return Icon(Icons.wifi, size: 36, color: Colors.green);
     }
 
     if (_waitTimer == null) {