|
@@ -168,7 +168,7 @@ class HomeView extends GetView<HomeController> {
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
- const SizedBox(height: 40,),
|
|
|
+ const SizedBox(height: 20,),
|
|
|
Center(
|
|
|
child: Row(
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
@@ -211,7 +211,13 @@ class HomeView extends GetView<HomeController> {
|
|
|
// alignment: Alignment.center,
|
|
|
// child:,
|
|
|
// )
|
|
|
- Text("版本号:$kVersion")
|
|
|
+ Text("版本号:$kVersion"),
|
|
|
+ ElevatedButton(onPressed: () async {
|
|
|
+ await controllers.global.showConsole();
|
|
|
+ }, child: Text("显示控制台")),
|
|
|
+ ElevatedButton(onPressed: () async {
|
|
|
+ await controllers.global.hideConsole();
|
|
|
+ }, child: Text("隐藏控制台")),
|
|
|
],
|
|
|
);
|
|
|
})
|
|
@@ -261,11 +267,19 @@ class _UserStatusWidgetState extends State<UserStatusWidget> {
|
|
|
|
|
|
Row(
|
|
|
children: [
|
|
|
- Text(widget.username),
|
|
|
+ Container(
|
|
|
+ width: 150,
|
|
|
+ child: Text(
|
|
|
+ widget.username,
|
|
|
+ overflow: TextOverflow.ellipsis, // 使用省略号
|
|
|
+ softWrap: false, // 关闭文本自动换行
|
|
|
+ maxLines: 1, // 设置文本最大行数为 1
|
|
|
+ ),
|
|
|
+ ),
|
|
|
const SizedBox(width: 10,),
|
|
|
Image(
|
|
|
image: AssetImage(imagePath),
|
|
|
- width: 80,
|
|
|
+ width: 60,
|
|
|
height: 30,
|
|
|
),
|
|
|
const SizedBox(width: 10,),
|
|
@@ -273,7 +287,7 @@ class _UserStatusWidgetState extends State<UserStatusWidget> {
|
|
|
tooltip: '刷新账号状态',
|
|
|
icon: widget.isLoading
|
|
|
? const CircularProgressIndicator()
|
|
|
- : Image.asset("assets/images/main/refresh.png"),
|
|
|
+ : Image(image: AssetImage("assets/images/main/refresh.png"),width: 20,height: 20,),
|
|
|
onPressed: () {
|
|
|
// 刷新操作
|
|
|
if (!widget.isLoading) {
|