diff --git a/lib/view/custom_exercise_page.dart b/lib/view/custom_exercise_page.dart index 6f23994..be46a9c 100644 --- a/lib/view/custom_exercise_page.dart +++ b/lib/view/custom_exercise_page.dart @@ -121,7 +121,7 @@ class _CustomExerciseNewPageState extends State { color: Colors.lightBlue, fontWeight: FontWeight.bold), inputFormatters: [ - FilteringTextInputFormatter(RegExp(r"[\d.]"), allow: true) + WhitelistingTextInputFormatter(RegExp(r"[\d.]")) ], onChanged: (input) => { print("UnitQuantity value $input"), @@ -163,7 +163,7 @@ class _CustomExerciseNewPageState extends State { color: Colors.deepOrange, fontWeight: FontWeight.bold), inputFormatters: [ - FilteringTextInputFormatter(RegExp(r"[\d.]"), allow: true) + WhitelistingTextInputFormatter (RegExp(r"[\d.]")) ], onChanged: (input) => { print("Quantity value $input"), diff --git a/lib/view/customer_modify_page.dart b/lib/view/customer_modify_page.dart index e7d0990..282b695 100644 --- a/lib/view/customer_modify_page.dart +++ b/lib/view/customer_modify_page.dart @@ -190,7 +190,7 @@ class CustomerModifyPage extends StatelessWidget{ style: TextStyle(fontSize: 12), textFieldBloc: customerBloc.birthYearField, inputFormatters: [ - FilteringTextInputFormatter(RegExp(r"[\d]"), allow: true) + WhitelistingTextInputFormatter (RegExp(r"[\d]")) ], decoration: InputDecoration( fillColor: Colors.white24, @@ -211,7 +211,7 @@ class CustomerModifyPage extends StatelessWidget{ style: TextStyle(fontSize: 12), textFieldBloc: customerBloc.weightField, inputFormatters: [ - FilteringTextInputFormatter(RegExp(r"[\d]"), allow: true) + WhitelistingTextInputFormatter (RegExp(r"[\d]")) ], decoration: InputDecoration( fillColor: Colors.white24, diff --git a/lib/view/exercise_new_page.dart b/lib/view/exercise_new_page.dart index 9cb47d9..d84d074 100644 --- a/lib/view/exercise_new_page.dart +++ b/lib/view/exercise_new_page.dart @@ -121,7 +121,7 @@ class _ExerciseNewPageState extends State { color: Colors.lightBlue, fontWeight: FontWeight.bold), inputFormatters: [ - FilteringTextInputFormatter(RegExp(r"[\d.]"), allow: true) + WhitelistingTextInputFormatter (RegExp(r"[\d.]")) ], onChanged: (input) => { print ("UnitQuantity value $input"), @@ -189,7 +189,7 @@ class _ExerciseNewPageState extends State { color: Colors.deepOrange, fontWeight: FontWeight.bold), inputFormatters: [ - FilteringTextInputFormatter(RegExp(r"[\d.]"), allow: true) + WhitelistingTextInputFormatter (RegExp(r"[\d.]")) ], onChanged: (input) => {