Myanmar NRC Picker UI Kit for Flutter
This package is for Myanmar NRC Picker and Number Keyboard.
Usage
-
To use this plugin, add
mm_nrc_kit
as a dependency in your pubspec.yaml file. -
Import
mm_nrc_kit
import 'package:mm_nrc_kit/mm_nrc_kit.dart';
- Example
NRCField(
onCompleted: (value) {
debugPrint("onCompleted : $value");
},
onChanged: (value) {
debugPrint("onChanged : $value");
},
)
NRCField(
language: NrcLanguage.myanmar,
onCompleted: (value) {
debugPrint("onCompleted : $value");
},
onChanged: (value) {
debugPrint("onChanged : $value");
},
)
NRCField(
language: NrcLanguage.english,
onCompleted: (value) {
debugPrint("onCompleted : $value");
},
onChanged: (value) {
debugPrint("onChanged : $value");
},
)
NRCField(
language: NrcLanguage.english,
nrcValue: "8/MAKANA(N)123456",
leadingTitleFontSize: 14,
trailingTitleFontSize: 14,
leadingTitleColor: Colors.black,
backgroundColor: Colors.white,
pickerItemColor: Colors.black,
borderColor: Colors.white,
borderRadius: 10,
borderWidth: 0.4,
contentPadding:
const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
onCompleted: (value) {
debugPrint("onCompleted : $value");
},
onChanged: (value) {
debugPrint("onChanged : $value");
},
)
NRCField(
language: NrcLanguage.myanmar,
nrcValue: "၈/မကန(နိုင်)၁၂၃၄၅၆",
leadingTitleFontSize: 14,
trailingTitleFontSize: 14,
leadingTitleColor: Colors.black,
backgroundColor: Colors.white,
pickerItemColor: Colors.black,
borderColor: Colors.white,
borderRadius: 10,
borderWidth: 0.4,
contentPadding:
const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
onCompleted: (value) {
debugPrint("onCompleted : $value");
},
onChanged: (value) {
debugPrint("onChanged : $value");
},
)
Conslusion
- Credit : NRC Data and Util to mm_nrc package
- UI/UX inspired by SwiftUI flow
Happy coding
Peace✌️