flutter-pinbox
this is a library for enter a pin on flutter/dart. you can enter one digit per textfield box.
the detail
the library locate at path lib/pinbox.dart. you can use function pinboxs to create a pin boxes. the function will return array of widget class that contain many pinbox.
function
pinboxs(double width, list cons, color boxcolor, color textcolor, buildcontext context, bool show)
width = width of one pin box
cons = array of texteditingcontroller for each pin box
boxcolor = color of pin box
textcolor = color of text in pin box
context = buildcontext of the app
show = display digit to user or not (true => show, false => not show)
example
you can see the example of usage in path /lib/main.dart.
after you run the file you will get the result as two pictures below.
Comments are closed.