alroyso 1 ano atrás
pai
commit
06c8e5d1f2

+ 8 - 5
lib/app/modules/home/views/home_view.dart

@@ -29,18 +29,20 @@ class HomeView extends GetView<HomeController> {
       ),
       child: Scaffold(
           backgroundColor: Colors.transparent,
-          appBar: SysAppBar(title: Text("首页"), actions: [
+          appBar: SysAppBar(title: const Text("首页"), actions: [
             Row(
               children: [
                 IconButton(
                   icon: const Icon(Icons.refresh),
+                  tooltip: '刷新节点',
                   onPressed: () {
                     controller.fetchNode();
                   },
                 ),
                 IconButton(onPressed: (){
+
                   controller.outlogin();
-                }, icon: const Icon(Icons.exit_to_app))
+                } ,tooltip: '切换账号', icon: const Icon(Icons.exit_to_app))
               ],
             ),
           ],),
@@ -205,7 +207,7 @@ class _UserStatusWidgetState extends State<UserStatusWidget> {
     return Align(
       alignment: Alignment.topCenter,
       child: Padding(
-        padding: const EdgeInsets.fromLTRB(5.0, 0, 5.0, 10.0),
+        padding: const EdgeInsets.fromLTRB(5.0, 0, 5.0, 0.0),
         child:
         Row(
           children: [
@@ -228,6 +230,7 @@ class _UserStatusWidgetState extends State<UserStatusWidget> {
                     ),
                     const SizedBox(width: 10,),
                     IconButton(
+                      tooltip: '刷新账号状态',
                       icon: widget.isLoading
                           ? const CircularProgressIndicator()
                           : Image.asset("assets/images/main/refresh.png"),
@@ -243,13 +246,13 @@ class _UserStatusWidgetState extends State<UserStatusWidget> {
                 Text(
                   widget.expiryDate,
                   style: const TextStyle(
-                    fontSize: 8.0, // 设置字体大小为20像素
+                    fontSize: 12.0, // 设置字体大小为20像素
                   ),
                 ),
                 Text(
                   widget.userTraffic,
                   style: const TextStyle(
-                    fontSize: 8.0, // 设置字体大小为20像素
+                    fontSize: 12.0, // 设置字体大小为20像素
                   ),
                 )
               ],

+ 3 - 3
lib/app/modules/node/views/node_view.dart

@@ -49,14 +49,14 @@ class NodeView extends GetView<NodeController> {
               ),
             ),
             child: Padding(
-              padding: EdgeInsets.all(30.0),
+              padding: const EdgeInsets.all(30.0),
               child: Column(
                 children: [
                   // 错误消息展示
                   Obx(() {
                     if (controller.errorMsg.value.isNotEmpty) {
                       return Text(controller.errorMsg.value,
-                          style: TextStyle(color: Colors.red));
+                          style: const TextStyle(color: Colors.red));
                     }
                     return const SizedBox.shrink(); // 返回一个不占空间的widget
                   }),
@@ -75,7 +75,7 @@ class NodeView extends GetView<NodeController> {
                       children: [
                         ElevatedButton(
                           onPressed: () => controller.filterNodesWithLeastUsersInHK(),
-                          child: const Text("人数最少"),
+                          child: const Text("自动推荐"),
                         ),
                         ElevatedButton(
                           onPressed: () => controller.showAllNodes(),