패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.1.2

virtual_keyboard_multi_language

키오스크 및 ATM과 같은 장치에서 가상 키보드를 표시하기 위한 간단한 패키지입니다. 라이브러리는 Dart로 작성되었으며, 네이티브 코드 종속성이 없습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
3천
좋아요
74
Pub 점수
145

패키지 설치

flutter pub add virtual_keyboard_multi_language

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

키오스크 및 ATM과 같은 장치에서 가상 키보드를 표시하기 위한 경량 크로스플랫폼 Dart 패키지입니다. 네이티브 코드 종속성이 없으며 여러 언어를 지원하고 Android, iOS, Web, macOS, Windows, Linux에서 원활하게 작동합니다. 사용자 정의 가능한 입력 솔루션이 필요한 터치 기반 인터페이스에 적합합니다. 이 패키지는 Flutter 애플리케이션에 가상 키보드를 최소한의 설정으로 간편하게 통합할 수 있는 간단한 API를 제공합니다.

사용 사례

  • 키오스크 단말기
  • ATM 인터페이스
  • 다국어 데이터 입력
  • 터치스크린 결제 시스템
  • 자기 서비스 체크인 스테이션
  • 상호작용형 공공 디스플레이

주요 기능

  • 다국어 지원
  • 네이티브 코드 종속성 없음
  • 크로스 플랫폼 호환성
  • 사용자 정의 키보드 레이아웃
  • 경량이며 통합이 쉬움
  • 모든 주요 데스크톱 및 모바일 플랫폼을 지원합니다

적합한 대상

  • 공개용 터치 인터페이스를 구축하는 개발자
  • 다국어 입력이 필요한 응용 프로그램
  • 다양한 운영 체제에 배포된 시스템
  • 최소한의 외부 종속성이 필요한 프로젝트
  • 키오스크 및 ATM 소프트웨어 개발

고려 사항

  • 비표준 언어 입력을 위해 사용자 정의 레이아웃 설계가 필요할 수 있습니다
  • 기본 텍스트 입력 기능에만 제한됨
  • 저사양 기기에서는 성능이 다를 수 있습니다
  • 예측 텍스트나 음성 입력과 같은 고급 기능을 포함하지 않습니다
  • 예측 가능한 사용자 행동을 가진 제어된 환경에 적합

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

virtual_keyboard_multi_language

About

A simple package for dispaying virtual keyboards on a devices like kiosks and ATMs. The library is written in Dart and has no native code dependancy.

This project has forked from virtual_keyboard project because the virtual_keyboard project built to only display a buttons on the screen with single language. However, this project will handel the events and aill supports multi-languages.

Feature and TODO List:

  • (Done) Multi-langugae support. (English-Arabic-Kurdish)
  • (Done) Customizable layout.
  • (ToDo) Option to make a popup floating keyboard/keyNum.
  • (ToDo) Adding input result viewer and handel the events.

FlutterBlue


FlutterBlue


FlutterBlue


Reference

VirtualKeyboard

Flutter widget to show virtual keyboards.

// Keyboard Type: Can be Numeric or Alphanumeric.
VirtualKeyboardType type
// Callback for Key press event. Called with pressed `Key` object.
// will fire before adding pressed key text to controller, if a controller exists
Function preKeyPress;
// Callback for Key press event. Called with pressed `Key` object.
// will fire after adding pressed key text to controller, if a controller exists
Function postKeyPress;
// Virtual keyboard height. Default is 300.
double height;
/// Virtual keyboard height. Default is full screen width
  double width;
// Color for key texts and icons.
Color textColor;
// Font size for keyboard keys.
double fontSize;;
// Only Caps letters enabled.
bool alwaysCaps;;
/// the custom layout for multi or single language
VirtualKeyboardLayoutKeys customLayoutKeys;
/// used for multi-languages with default layouts, the default is English only
/// will be ignored if customLayoutKeys is not null
List<VirtualKeyboardDefaultLayouts> defaultLayouts;
/// inverse the layout to fix the issues with right to left languages, default is false.
bool reverseLayout;
VirtualKeyboardType

enum of Available Virtual Keyboard Types.

// Numeric only.
VirtualKeyboardType.Numeric
// Alphanumeric: letters`[A-Z]` + numbers`[0-9]` + `@` + `.`.
VirtualKeyboardType.Alphanumeric
VirtualKeyboardKey

Virtual Keyboard key.

// The text of the key. 
String text
// The capitalized text of the key. 
String capsText;
// Action or String
VirtualKeyboardKeyType keyType;
// Action of the key.
VirtualKeyboardKeyAction action;
VirtualKeyboardKeyType

Type for virtual keyboard key.

// Can be an action key - Return, Backspace, etc.
VirtualKeyboardKeyType.Action
// Keys that have text values - letters, numbers, comma ...
VirtualKeyboardKeyType.String
VirtualKeyboardKeyAction
/// Virtual keyboard actions.
enum VirtualKeyboardKeyAction { Backspace, Return, Shift, Space }

Usage

Show Alphanumeric keyboard with default view
// Wrap the keyboard with Container to set background color.
Container(
            // Keyboard is transparent
            color: Colors.deepPurple,
            child: VirtualKeyboard(
                // Default height is 300
                height: 350,
                // Default height is will screen width
                width: 600,
                // Default is black
                textColor: Colors.white,
                // Default 14
                fontSize: 20,
                // the layouts supported
                defaultLayouts = [VirtualKeyboardDefaultLayouts.English],
                // [A-Z, 0-9]
                type: VirtualKeyboardType.Alphanumeric,
                // Callback for key press event
                postKeyPress: _onKeyPress),
          )
Show Numeric keyboard with default view
Container(
            // Keyboard is transparent
            color: Colors.red,
            child: VirtualKeyboard(
                // [0-9] + .
                type: VirtualKeyboardType.Numeric,
                // Callback for key press event
                postKeyPress: (key) => print(key.text)),
          )
Show Alphanumeric keyboard with customized keys
 Container(
            color: Colors.deepPurple,
            child: VirtualKeyboard(
                height: keyboardHeight,
                textColor: Colors.white,
                fontSize: 20,
                builder: _builder,
                type: VirtualKeyboardType.Numeric,
                postKeyPress: _onKeyPress),
          )

  /// Builder for keyboard keys.
  Widget _builder(BuildContext context, VirtualKeyboardKey key) {
    Widget keyWidget;

    switch (key.keyType) {
      case VirtualKeyboardKeyType.String:
        // Draw String key.
        keyWidget = _keyboardDefaultKey(key);
        break;
      case VirtualKeyboardKeyType.Action:
        // Draw action key.
        keyWidget = _keyboardDefaultActionKey(key);
        break;
    }

    return keyWidget;
  }          
onKeyPressed event basic ussage example
// Just local variable. Use Text widget or similar to show in UI.
String text;

  /// Fired when the virtual keyboard key is pressed.
_onKeyPress(VirtualKeyboardKey key) {
if (key.keyType == VirtualKeyboardKeyType.String) {
    text = text + (shiftEnabled ? key.capsText : key.text);
} else if (key.keyType == VirtualKeyboardKeyType.Action) {
    switch (key.action) {
    case VirtualKeyboardKeyAction.Backspace:
        if (text.length == 0) return;
        text = text.substring(0, text.length - 1);
        break;
    case VirtualKeyboardKeyAction.Return:
        text = text + '\n';
        break;
    case VirtualKeyboardKeyAction.Space:
        text = text + key.text;
        break;
    case VirtualKeyboardKeyAction.Shift:
        shiftEnabled = !shiftEnabled;
        break;
    default:
    }
}
// Update the screen
setState(() {});
}

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.