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
* 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 adding a return statement for infographies in the onTap callback of the DidvanCard widget in the MultitypeOverview class. This will prevent the code from executing further when the item type is infography.
This commit adjusts the heights and widths of various widgets in the `Radar` and `CategoriesGrid` components. Specifically, it changes the height of the `SizedBox` in `Radar` from 320 to 300, the top padding of `CategoriesRow1` from 212 to 192, and the width of each `CategoryItem` in `CategoryItem` from `ds.width / 3` to `(ds.width - 40) / 4`. Additionally, it updates the font weight of the label in `CategoryItem`.
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.
This commit adds a new type 'infography' in the OverviewData class and assigns it an integer value of 7. It also includes a bookmark button in the MultitypeOverview widget for the new type and all other types. The bookmark button is imported from the bookmark\_button.dart file. The commit also moves the caption section to a separate row and adjusts the flex properties of the containers.
The username input screen now includes a new text explaining the requirements for a username. The text is displayed below the username input field.
The edit profile screen has also been updated to include the same text below the username input field. The text is displayed only if the username field is not empty.
Additionally, the SizedBox widget has been replaced with a Padding widget in the username input screen for better customization.
This commit updates the dependencies in the pubspec.lock file to their latest versions. This includes updates to various packages such as firebase\_core, image\_picker, url\_launcher, and many others. The sha256 checksums and versions have been updated accordingly.
* 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.