WOW! That was way more work than I thought it would be, but I also feel like I understand Flutter so much better. A quick rundown of what I did while creating the "Create Base Assessment" page view:
Changed main.dart
just created a way to get from the base app to the create_base_assessment_view for ease of manual testing, this can go away as soon as we have a real login/dashboard up and running
Added tw_app_bar custom app bar and accompanying test
customized app bar to make them all look the same across the app
Added create_base_assessment_view and accompanying test
this just renders the custom app bar and the form
Added create_bass_assessment_form and accompanying test
Added dropdown_select component and accompanying test
to abstract away the DropdownFormField nonsense into an easier component to deal with
Added validators class for easy functions to use across the app and accompanying tests
I think that's it. A lot of extra work, but will hopefully make things easier in the future. Feel free to use my tests as examples of how to test things/isolate the right issues. Hopefully I caught everything, but let me know if I need to change something!
WOW! That was way more work than I thought it would be, but I also feel like I understand Flutter so much better. A quick rundown of what I did while creating the "Create Base Assessment" page view:
main.dart
create_base_assessment_view
for ease of manual testing, this can go away as soon as we have a real login/dashboard up and runningtw_app_bar
custom app bar and accompanying testcreate_base_assessment_view
and accompanying testcreate_bass_assessment_form
and accompanying testdropdown_select
component and accompanying testDropdownFormField
nonsense into an easier component to deal withvalidators
class for easy functions to use across the app and accompanying testsI think that's it. A lot of extra work, but will hopefully make things easier in the future. Feel free to use my tests as examples of how to test things/isolate the right issues. Hopefully I caught everything, but let me know if I need to change something!