- In NewStock, update the enableEmptyState property to check for additional empty states.
- In EditProfile, update the bottom property of Positioned widget to consider the keyboard height.
The onPressed callback of StatMainCard's RaisedButton now has a then statement with a more explicit syntax. The getStatistic method of the state object is still being called after the user taps the button.
- Refactored NewStatistic to use the new Statistic model.
- Updated StatMainCard to accept the new Statistic model and added marking functionality using UserProvider.
- Added .then() to onTap function in StatMainCard to update the state after marking a statistic.
- Added .then() to onChanged function in StatMainCard to update the state after marking a statistic.
- Added .then() to onTap function in StatHeader to update the state after marking a statistic.
- Added .then() to onChanged function in StatHeader to update the state after marking a statistic.
In `new_statistic.dart`, updated the onTap function for a GestureDetector to clear old content before adding new content to the list.
In `new_statistics_state.dart`, added a line to clear the contents list before adding new content to it.
In `stat_cats_general_state.dart`, added a few lines to clear the contents list before adding new content to it.
- Add listener for theme change in NewStatisticState
- Move statistic categories to NewStatisticState and update StatMenuItemType to use Assets.dart
- Update NewStatisticCategories to use statCat from NewStatisticState
- Add refresh method in NewStatisticState to update statCat list
- Call refresh method in initState of _NewStatisticState to update statCat list on theme change
* Updated dependencies to their latest versions
* Removed unused imports in various files
* Changed textScaleFactor to TextScaler.linear in some files
* Fixed some formatting issues
No functional changes.