Commit Graph
804 Commits
Author SHA1 Message Date
Roland Geider 86f8b7ae35 Add a third option to the theme mode
This allows the user to use the system settings as well, and not always force
light or dark mode in the app. Also move the logic to the UserProvider and
do some light refactoring.
2025-01-23 23:22:50 +01:00
sangharshdeveloper 06ca72e0f8 #687 enhancement theme-customization 2025-01-17 22:19:54 +05:30
sangharshdeveloper ced268660b #687 enhancement theme-customization 2025-01-12 20:48:31 +05:30
Roland Geider 7afe947566 Replace deprecated withOpacity with withValues 2024-12-17 11:52:41 +01:00
Roland Geider 764f0c2739 Render only up to one decimal place
Fixes #695
2024-12-13 12:49:14 +01:00
Roland Geider 0d43333aa4 Update widgets when the provider changes 2024-12-12 20:52:05 +01:00
Roland Geider 4489bfbc30 Merge branch 'master' into master 2024-11-07 11:49:01 +01:00
Xianglin Zeng 27e28e7f7b chore: add Xianglin Zeng to AUTHORS.md and update relevent doc 2024-11-04 23:39:23 +08:00
Xianglin Zeng f2bc07d2fd fix hard-coded text in Chinese version, improve weight expressed in Chinese 2024-11-04 23:07:38 +08:00
ARYPROGRAMMER bdb97cfae8 fix: RenderOverFlex in Dashboard UI 2024-10-23 23:36:50 +05:30
Dieter Plaetinck 5f148e7c92 no point showing charts that are empty - this also fixes some crashes 2024-10-16 15:33:59 +02:00
Dieter Plaetinck c5b1695d20 fix crash for empty measurements 2024-10-16 15:33:59 +02:00
Dieter Plaetinck bd7088d445 use a 'sensible range' for headline weight/measurements charts
this allows user to focus on their recent progress on the initial chart.
if they want to see the full history, that's only a tap away
2024-10-16 15:33:59 +02:00
Dieter Plaetinck 1a25f0f3c6 tooltip: better background color for contrast + show date 2024-10-16 15:33:59 +02:00
Roland Geider 773b8df4e6 Localize chart titles 2024-10-07 11:56:39 +02:00
Roland Geider 906fa7257a Rename function 2024-09-29 11:45:31 +02:00
Roland Geider 72a68b4f59 Allow resetting the ingredient cache from the settings page 2024-09-29 11:25:14 +02:00
Roland Geider 15b6eb19b0 Update carousel_slider and used flutter version 2024-09-26 20:00:55 +02:00
Dieter Plaetinck f90609f147 various dcm cleanups 2024-09-18 21:52:21 +03:00
Dieter Plaetinck 7e6c78c5e3 dart fix --apply 2024-09-18 21:29:22 +03:00
Dieter Plaetinck 85c245d67d dcm fix --only-rules=unnecessary-trailing-comma lib test test_data 2024-09-18 16:01:10 +03:00
Dieter Plaetinck a589d87fad dcm fix --only-rules=avoid-redundant-async 2024-09-18 15:52:55 +03:00
Dieter Plaetinck bf9e614f8b make it work for measurements + couple fixes 2024-09-18 13:33:57 +03:00
Dieter Plaetinck 3dc1c4e79e fix tests 2024-09-11 23:00:04 +03:00
Dieter Plaetinck 161444b32f weight visualisation improvements
* show weight entries during this nutrition plan and last 30 days
* show moving average of last 7 days
* show aggregate changes below chart
* fix unit displays in a few cases
* improv color scheme and other layout tweaks
* various small code cleanups
2024-09-11 16:03:43 +03:00
Dieter Plaetinck 14bd370503 solve the date fix in a cleaner way 2024-09-07 19:44:50 +03:00
dan ffeaad6f0c Use current DateTime when copying WeightEntry instead of previous.
Increment weight by 0.1 and round to one decimal place to prevent floating point accuracy (rounding) issues.
2024-09-05 01:16:31 +01:00
Dieter Plaetinck fee0e632af Merge pull request #624 from Denpeer/feature/remove-info-button
remove info button and viewmode logic
2024-07-18 17:41:35 +02:00
DVPeer 323f4bfc6b remove info button and viewmode logic 2024-07-18 01:36:17 +07:00
Dieter Plaetinck dc1f220292 refactor
ingredient details dialog:
 - give it close/continue buttons to load into selection
 - always use image property from loaded ingredient
   this is a bit slower, but:
   * more consistent (no need to support absolute vs relative URL's
     separately)
   * cleaner (no need to pass it thru explicitly)
   * more future proof: we will get rid of the dedicated
     /ingredient/search endpoint which gives us images before we load
     the full ingredient. in the future we will simply load the
     ingredients, completely, all at once.
   * allows for easier code reuse with barcode scan result dialog

barcode scan result dialog:
 - show image and detailed nutrition table
 - support a loading spinner
 - simplify error handling
 - deduplicate code between found & not found
 - share code with ingredient details dialog
2024-07-16 11:34:11 +03:00
Dieter Plaetinck 47a5f4a07f ingredient popup: scroll and shrink image when appropriate 2024-07-12 18:48:42 +03:00
Dieter Plaetinck 4a87c0b5f1 put popup button also in preview section 2024-07-12 18:48:42 +03:00
Dieter Plaetinck 1ae3f33edd use ingredient.license_object_url to link to human readable page 2024-07-12 14:26:09 +03:00
Dieter Plaetinck d99ca4160f ingredient popup: fix image rendering 2024-07-12 14:26:09 +03:00
Dieter Plaetinck fea019f51c show source name and link to source, when possible in popup 2024-07-12 14:11:07 +03:00
Dieter Plaetinck 7e7fa387d5 todo's 2024-07-12 14:11:07 +03:00
Dieter Plaetinck 2d27281a1d don't show g-per-bodyweight-kg on ingredient details popups 2024-07-12 10:09:36 +03:00
Dieter Plaetinck 395d40ce9a dart fix 2024-07-12 10:09:36 +03:00
Dieter Plaetinck 54fb7c1c6c cleanup 2024-07-12 10:09:36 +03:00
Dieter Plaetinck de1b7e2229 cleanup 2024-07-12 10:09:36 +03:00
Dieter Plaetinck b8f8bc4e4a remove test sleep 2024-07-12 10:09:36 +03:00
Dieter Plaetinck 1909f7caab popup ingredient details in typeahead suggestions and recently used 2024-07-12 10:09:36 +03:00
Dieter Plaetinck 02961c49dc dart fix 2024-07-11 19:03:12 +03:00
Dieter Plaetinck 87755f16b6 dcm fix --only-rules=unnecessary-trailing-comma lib 2024-06-20 15:55:28 +03:00
Dieter Plaetinck 9a8a7e112a dcm fix --only-rules=prefer-trailing-comma lib 2024-06-20 15:55:02 +03:00
Dieter Plaetinck 11ee38c03d dart fix --apply 2024-06-20 15:47:55 +03:00
Dieter Plaetinck 6e1d3f9568 dart format --line-length=100 .
(except auto generated files)
2024-06-20 15:44:35 +03:00
Roland Geider d5b172fd57 Merge branch 'master' into HEAD
# Conflicts:
#	lib/screens/log_meal_screen.dart
#	lib/widgets/core/core.dart
#	lib/widgets/nutrition/meal.dart
#	lib/widgets/nutrition/nutritional_diary_detail.dart
#	lib/widgets/nutrition/widgets.dart
2024-06-18 17:46:52 +02:00
Dieter Plaetinck 7f96672b8b Merge branch 'master' into simplify-tables 2024-06-16 12:27:06 +03:00
Dieter Plaetinck f220a2e42f l10n 2024-06-16 12:18:30 +03:00