mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
21 lines
574 B
Dart
21 lines
574 B
Dart
import 'dart:async';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:toolbox/core/extension/context/dialog.dart';
|
|
import 'package:toolbox/data/model/server/server_private_info.dart';
|
|
import 'package:toolbox/data/res/provider.dart';
|
|
|
|
abstract final class KeybordInteractive {
|
|
static FutureOr<List<String>?> defaultHandle(
|
|
ServerPrivateInfo spi, {
|
|
BuildContext? ctx,
|
|
}) async {
|
|
try {
|
|
final res = await (ctx ?? Pros.app.ctx)?.showPwdDialog(title: spi.id);
|
|
return res == null ? null : [res];
|
|
} catch (e) {
|
|
return null;
|
|
}
|
|
}
|
|
}
|