1234567891011121314 |
- import "package:flutter/services.dart";
- class UpperCaseTextFormatter extends TextInputFormatter {
- @override
- TextEditingValue formatEditUpdate(
- TextEditingValue oldValue,
- TextEditingValue newValue,
- ) {
- return TextEditingValue(
- text: newValue.text.toUpperCase(),
- selection: newValue.selection,
- );
- }
- }
|