关于页面增加请求地址显示

This commit is contained in:
葛佳祥 2024-01-23 17:19:32 +08:00
parent f314d6fe05
commit de887d5c73
2 changed files with 9 additions and 3 deletions

View File

@ -8,6 +8,7 @@ import '../../app_settings/app_colors.dart';
import '../../tools/commonItem.dart';
import '../../tools/titleAppBar.dart';
import '../../translations/trans_lib.dart';
import '../../network/api.dart';
class AbountPage extends StatefulWidget {
const AbountPage({Key? key}) : super(key: key);
@ -40,6 +41,11 @@ class _AbountPageState extends State<AbountPage> {
"星锁 1.0.0.07(preRelease-20240118-1)",
style: TextStyle(fontSize: 24.sp, color: AppColors.blackColor),
),
SizedBox(height: 20.h),
Text(
Api.baseAddress,
style: TextStyle(fontSize: 24.sp, color: AppColors.blackColor),
),
SizedBox(
height: 60.h,
),

View File

@ -1,8 +1,8 @@
abstract class Api {
// static String baseAddress = "https://pre.lock.star-lock.cn"; //
static String baseAddress = "https://dev.lock.star-lock.cn"; //
static String baseAddress = "https://pre.lock.star-lock.cn"; //
// static String baseAddress = "https://dev.lock.star-lock.cn"; //
// static String baseAddress = "http://192.168.1.15:8022"; //
// static String baseAddress = "https://ge.lock.star-lock.cn:8100"; //
// static String baseAddress = "https://ge.lock.star-lock.cn"; //
final String baseUrl = "$baseAddress/api";