feat:login page done
This commit is contained in:
31
lib/core/helpers/formatters.dart
Normal file
31
lib/core/helpers/formatters.dart
Normal file
@@ -0,0 +1,31 @@
|
||||
import 'package:mask_text_input_formatter/mask_text_input_formatter.dart';
|
||||
|
||||
abstract class Formatters {
|
||||
static final phoneFormatter = MaskTextInputFormatter(
|
||||
mask: '## ### ## ##',
|
||||
filter: {"#": RegExp(r'[0-9]')},
|
||||
type: MaskAutoCompletionType.lazy,
|
||||
);
|
||||
|
||||
static final cardFormatter = MaskTextInputFormatter(
|
||||
mask: '#### #### #### ####',
|
||||
filter: {"#": RegExp(r'[0-9]')},
|
||||
type: MaskAutoCompletionType.lazy,
|
||||
);
|
||||
static final cardNumberFormatter = MaskTextInputFormatter(
|
||||
mask: '#### #### #### ####',
|
||||
filter: {"#": RegExp(r'[0-9]')},
|
||||
type: MaskAutoCompletionType.lazy,
|
||||
);
|
||||
|
||||
static final cardExpirationDateFormatter = MaskTextInputFormatter(
|
||||
mask: '##/##',
|
||||
filter: {"#": RegExp(r'[0-9]')},
|
||||
type: MaskAutoCompletionType.lazy,
|
||||
);
|
||||
static final moneyFormatter = MaskTextInputFormatter(
|
||||
mask: '########',
|
||||
filter: {"#": RegExp(r'[0-9]')},
|
||||
type: MaskAutoCompletionType.lazy,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user