Add Step Goal feature
PatHock opened this issue · comments
End goal
- Allow user to input an integer for their daily step goal
- Possibly notify the user that he/she has reached their step goal. This could be via the landing page of the app and/or via a push notification.
Relevant Info/Links
https://docs.flutter.io/flutter/material/TextFormField-class.html
TextFormFields have built-in form validation.
Your Code
Step goal input can be achieved with a TextFormField and a number validator.
new TextFormField(
keyboardType: TextInputType.number,
validator: numberValidator,
...
)