Commit Graph

18 Commits

Author SHA1 Message Date
MohammadTaha Basiri bbcea4c04d Change from `StateHandler<NewStatisticState>`'s `state` to use `context.watch<NewStatisticState>()` instead of `context.read<NewStatisticState>()` in `_NewStatisticState 2024-04-18 10:46:51 +03:30
mehrdad78 b0c215acd3 never mind! 2024-04-16 16:06:31 +03:30
MohammadTaha Basiri d69fa7b174 Change from watching NewStatisticState to reading NewStatisticState in _NewStatisticState 2024-04-16 10:40:29 +03:30
MohammadTaha Basiri d5a929dfcc Remove unnecessary imports and logs 2024-04-16 10:32:37 +03:30
MohammadTaha Basiri 4c46d7fabb Update NewStock and EditProfile classes:
- 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.
2024-04-15 00:44:43 +03:30
Amir Hossein Mousavi dd04590128 fix some isuues 2024-04-14 00:56:18 +03:30
mehrdad78 dfe506bb01 some changes 2024-04-13 21:21:57 +03:30
Amir Hossein Mousavi d3252e931f fixing some issues 2024-04-13 01:32:17 +03:30
mehrdad78 eadfa391fd some little changes 2024-04-12 23:28:15 +03:30
Amir Hossein Mousavi 4b5dfe5e38 update some icons and assets 2024-04-12 21:01:34 +03:30
mehrdad78 4b3d7fb160 add infography item to main page 2024-04-11 20:39:14 +03:30
MohammadTaha Basiri 0b9e57e654 Update then statement in StatMainCard's onPressed callback
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.
2024-04-01 19:52:44 +03:30
MohammadTaha Basiri 5ff143add0 Update NewStatistic and StatMainCard to use new Statistic model and add marking functionality
- 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.
2024-04-01 19:51:19 +03:30
MohammadTaha Basiri 7ecf074bb8 Update new statistic and stats general state; clear old content before adding new
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.
2024-04-01 19:34:59 +03:30
MohammadTaha Basiri 6740479395 Update new statistic view with theme change listener and new statistic categories
- 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
2024-04-01 19:20:16 +03:30
mehrdad78 5f9cb5db3f Navigation from infography to Hashtag 2024-04-01 18:39:34 +03:30
MohammadTaha Basiri 73c7d49c90 Update dependencies and remove unused imports
* 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.
2024-04-01 15:44:28 +03:30
mehrdad78 79b60f945c Add new data and stock 2024-04-01 15:29:28 +03:30