mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 18:36:11 +02:00
fix: build web (#9259)
1. Web, build. 2. Web and mobile, `onSubmitted` for ID text field. 3. Web, remove unused key 'toggle_option'. Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
e40243b55d
commit
5f29016861
3 changed files with 11 additions and 3 deletions
|
@ -249,6 +249,9 @@ class _ConnectionPageState extends State<ConnectionPage> {
|
|||
),
|
||||
),
|
||||
inputFormatters: [IDTextInputFormatter()],
|
||||
onSubmitted: (_) {
|
||||
onConnect();
|
||||
},
|
||||
);
|
||||
},
|
||||
onSelected: (option) {
|
||||
|
|
|
@ -46,10 +46,11 @@ class HomePageState extends State<HomePage> {
|
|||
|
||||
void initPages() {
|
||||
_pages.clear();
|
||||
if (!bind.isIncomingOnly())
|
||||
if (!bind.isIncomingOnly()) {
|
||||
_pages.add(ConnectionPage(
|
||||
appBarActions: [],
|
||||
));
|
||||
}
|
||||
if (isAndroid && !bind.isOutgoingOnly()) {
|
||||
_chatPageTabIndex = _pages.length;
|
||||
_pages.addAll([ChatPage(type: ChatPageType.mobileMain), ServerPage()]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue