增加版本号

This commit is contained in:
2026-01-04 10:27:39 +08:00
parent 4bedd8c04b
commit c5299dd655
2 changed files with 54 additions and 0 deletions

View File

@@ -176,6 +176,32 @@ class ReservationPage extends GetView<ReservationController> {
_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<String>(
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("");
},
),
),
],
)
],
),
),