浏览代码

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

gavin.chen 1 年之前
父节点
当前提交
324db8fb9c
共有 1 个文件被更改,包括 2 次插入3 次删除
  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) {