diff --git a/ln_jq_app/lib/pages/b_page/reservation/view.dart b/ln_jq_app/lib/pages/b_page/reservation/view.dart index d45cc04..432fdaa 100644 --- a/ln_jq_app/lib/pages/b_page/reservation/view.dart +++ b/ln_jq_app/lib/pages/b_page/reservation/view.dart @@ -176,6 +176,32 @@ class ReservationPage extends GetView { _buildInfoItem(Icons.help_outline, '价格信息将实时更新到用户端'), const SizedBox(height: 10), _buildInfoItem(Icons.headset_mic_outlined, '如有疑问请联系技术支持: 400-021-1773'), + const SizedBox(height: 10), + Row( + children: [ + Icon(Icons.verified_outlined, color: Colors.blue, size: 20), + const SizedBox(width: 10), + Expanded( + child: FutureBuilder( + future: getVersion(), + builder: (context, snapshot) { + // 判断是否还在加载 + if (snapshot.connectionState == ConnectionState.waiting) { + return const Text(""); + } + + // 如果加载完成且有数据 + if (snapshot.hasData) { + return TextX.labelSmall("当前版本: ${snapshot.data}",color: Colors.black54,); + } + + // 错误处理 + return const Text(""); + }, + ), + ), + ], + ) ], ), ), diff --git a/ln_jq_app/lib/pages/c_page/mine/view.dart b/ln_jq_app/lib/pages/c_page/mine/view.dart index b9c67ee..17b0b87 100644 --- a/ln_jq_app/lib/pages/c_page/mine/view.dart +++ b/ln_jq_app/lib/pages/c_page/mine/view.dart @@ -1,5 +1,7 @@ import 'package:flutter/material.dart'; import 'package:get/get.dart'; +import 'package:getx_scaffold/common/index.dart'; +import 'package:getx_scaffold/common/widgets/index.dart'; import 'package:ln_jq_app/common/styles/theme.dart'; import 'package:ln_jq_app/storage_service.dart'; import 'controller.dart'; @@ -311,6 +313,32 @@ class MinePage extends GetView { _buildInfoItem(Icons.rule, '遵守交通规则,避免违章扣分'), const SizedBox(height: 10), _buildInfoItem(Icons.headset_mic_outlined, '如有疑问请联系客服: 400-021-1773'), + const SizedBox(height: 10), + Row( + children: [ + Icon(Icons.verified_outlined, color: Colors.blue, size: 20), + const SizedBox(width: 10), + Expanded( + child: FutureBuilder( + future: getVersion(), + builder: (context, snapshot) { + // 判断是否还在加载 + if (snapshot.connectionState == ConnectionState.waiting) { + return const Text(""); + } + + // 如果加载完成且有数据 + if (snapshot.hasData) { + return TextX.labelSmall("当前版本: ${snapshot.data}",color: Colors.black54,); + } + + // 错误处理 + return const Text(""); + }, + ), + ), + ], + ) ], ), ),