From ff9c3bccb5a20d2c2f69ae55922b776e53eac6fd Mon Sep 17 00:00:00 2001 From: csf Date: Fri, 30 Sep 2022 16:15:21 +0800 Subject: [PATCH] remove comma when self-host server --- .../lib/desktop/pages/connection_page.dart | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dart index 627cd23e9..480fd1518 100644 --- a/flutter/lib/desktop/pages/connection_page.dart +++ b/flutter/lib/desktop/pages/connection_page.dart @@ -288,17 +288,23 @@ class _ConnectionPageState extends State children: [ light, Text(translate('Ready'), style: textStyle), - Text(', ', style: textStyle), - svcIsUsingPublicServer.value - ? InkWell( - onTap: onUsePublicServerGuide, - child: Text( - translate('setup_server_tip'), - style: TextStyle( - decoration: TextDecoration.underline, fontSize: fontSize), - ), - ) - : Offstage() + Offstage( + offstage: !svcIsUsingPublicServer.value, + child: Row( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text(', ', style: textStyle), + InkWell( + onTap: onUsePublicServerGuide, + child: Text( + translate('setup_server_tip'), + style: TextStyle( + decoration: TextDecoration.underline, + fontSize: fontSize), + ), + ) + ], + )) ], ); }