alpha_keyboard 0.1.0
alpha_keyboard: ^0.1.0 copied to clipboard
A highly customizable keyboard package for Flutter with multiple language support, privacy mode, and auto-suggestions.
Alpha Keyboard #
A highly customizable keyboard package for Flutter that supports multiple languages, privacy mode, custom theming, auto-suggestions, and more.
Features #
- Normal Keyboard: Standard keyboard layout with multiple language options
- Privacy Keyboard: Masked input ideal for passwords and sensitive information
- Custom Theming: Fully customizable keyboard appearance with light, dark, and privacy themes
- Multiple Language Support: English, Spanish, French, German, Chinese, Japanese, Arabic, Russian, and Hindi
- Auto-Suggestions: Smart word suggestions as you type
- Additional Features:
- Numeric, phone, email, and URL-specific layouts
- Emoji support
- Haptic and sound feedback
- Special characters support
- Customizable key appearance and behavior
- Text editing functions (backspace, clear, etc.)
Installation #
Add this to your package's pubspec.yaml
file:
dependencies:
alpha_keyboard: ^0.1.0
Then run:
flutter pub get
Usage #
Basic Usage #
import 'package:flutter/material.dart';
import 'package:alpha_keyboard/alpha_keyboard.dart';
class KeyboardScreen extends StatelessWidget {
final AlphaKeyboardController controller = AlphaKeyboardController();
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Alpha Keyboard Demo')),
body: Column(
children: [
Expanded(
child: Container(
padding: EdgeInsets.all(16.0),
alignment: Alignment.center,
child: Text(
controller.text,
style: TextStyle(fontSize: 24.0),
),
),
),
AlphaKeyboard(
controller: controller,
onTextChanged: (text) {
print('Text changed: $text');
},
),
],
),
);
}
}
Custom Theme #
AlphaKeyboard(
controller: controller,
theme: AlphaKeyboardTheme.dark().copyWith(
accentColor: Colors.purpleAccent,
keyBorderRadius: BorderRadius.circular(12),
),
)
Privacy Mode #
AlphaKeyboard(
controller: controller,
keyboardType: AlphaKeyboardType.privacy,
theme: AlphaKeyboardTheme.privacy(),
)
Different Language #
AlphaKeyboard(
controller: controller,
language: AlphaKeyboardLanguage.spanish,
)
License #
This project is licensed under the MIT License - see the LICENSE file for details.