- 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
* In `infography_content.dart`, the `marked` property of `Content` is changed from `final` to a mutable `bool`.
* In `infography_screen.dart`, the `onMarkChanged` callback in `InfographyItem` is updated to accept an additional `bool shouldUpdate` parameter, and the callback is called with the new signature in `InfographyScreenState`.
* In `infography_item.dart`, the `onMarkChanged` callback in `InfographyTag` is updated to accept an additional `bool shouldUpdate` parameter.
* In `infography_tag.dart`, the `onPressed` callback in `InfographyTag` is updated to pass the `onMarkChanged` callback with the new signature to the `HashtagScreen`.
Update infography\_item.dart by removing import statement for infography\_content.dart
These changes were made to the files android/app/build.gradle and lib/views/home/main/widgets/infography\_item.dart.
The changes include:
* Remove the dependency on `date_time` package
* Update the code to use Dart's built-in `DateTime` class for formatting dates
* Update the code to use `toPersianDateStr` extension method for formatting dates as persian
* The changes are only in the `_MainPageGeneralItemState` class and specifically in the `getSubtitle` method.
This diff adds a new option for 'Infographics' in the bookmarks menu, along with a divider to separate it from the other options. The option is assigned the category ID of 7.
* 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.