numpad_layout 0.0.3

SDKflutter
Platformandroidioswindowslinuxmacosweb

A new Flutter Package for numeric Keyboard with flexible customization as well as arabic digits support and many many more.

Numpad

an numeric Keyboard Layout supports english and arabic digits

Features

  • Documented:** each property has a code documentation
  • Languages:** supports English and Arabic Digits
  • Flexibility:** smooth and flexible to modify anything

Usage

ParameterDefaultDescription
onTyperequiredCallback when number pressed .
mainAxisAlignmentMainAxisAlignment.spaceBetweenfor spacing horizontal .
paddinghorizontal = 30padding over the whole layout .
leftWidgetnullthe widget at the left of the 0 .
rightWidgetnullthe widget at the right of the 0 .
highlightColorColor(0xFFC9C9C9)on Holding press any number.
runSpace40spacing vertical .
numberStylenullcustom number style
radius45radius for the shape of the number .
arabicDigitsfalseDisplays arabic digits if equal true
returnItAsEnglishfalseit returns the digits as english even it's arabic digits .

Example

 NumPad(
   arabicDigits: true,
   onType: (value) {
     number += value;
     setState(() {});
   },
   rightWidget: IconButton(
   icon: const Icon(Icons.backspace),
   onPressed: () {
   if (number.isNotEmpty) {
     number = number.substring(0, number.length - 1);
      setState(() {});
   }
   },
  ),
);

also you can find The sample code under the example package.