Daniil Kovalev
ad810026e8
Fix sub-url handling
...
Previously the app was unable to work with instances installed on sub-urls
because sub-url path was removed (say, server.name/api/v2/login instead of
server.name/wger/api/v2/login).
2022-06-25 15:52:43 +03:00
Roland Geider
d8933def9b
Add versioning to the exercise cache
...
This was backported from the exercise crowdsourcing branch and is needed since
we are adding new data structures, in this case the exercises.
2022-02-18 21:12:05 +01:00
Roland Geider
df4f8c1817
Use cached exercises
...
This was committed by mistake
2022-02-18 20:05:48 +01:00
Roland Geider
c24bc9783e
Add video player widget for exercise details
2022-01-29 12:43:50 +01:00
Roland Geider
b8f985b310
Don't plot energy in chart
...
The values use the same axis and the energy is of course much higher than
the amount in grams
2022-01-23 21:27:43 +01:00
Roland Geider
bc2b947b81
Recreate generated files
2022-01-23 20:52:40 +01:00
Roland Geider
dcfe3b8e4b
Merge branch 'master' into barcode_scanner
...
# Conflicts:
# test/gallery/gallery_screen_test.mocks.dart
# test/measurements/measurement_categories_screen_test.mocks.dart
# test/measurements/measurement_provider_test.mocks.dart
# test/nutrition/nutritional_plan_form_test.mocks.dart
# test/other/base_provider_test.mocks.dart
# test/workout/workout_form_test.mocks.dart
# test/workout/workout_set_form_test.mocks.dart
2022-01-23 20:33:45 +01:00
Adrian Halko
324afff37c
Added close label into app_en.arb. Deleted ingredient from nutritional_meal_item_form_test.dart. Changed return inside searchIngredientWithCode function.
2021-12-01 15:28:01 +01:00
Adrian Halko
246162fb6d
Added forgotten nutrition provider class. Changed tests names.
2021-11-23 17:10:22 +01:00
Roland Geider
672799287f
Use convenience methods to GET exercise data
2021-11-23 15:48:50 +01:00
Roland Geider
e5bd9e901f
Add workaround for the AndroidMetadata checks
...
The metaDataAsMap method doesn't work during tests and throws a null check
error. A better solution should be implemented when possible.
2021-11-08 10:55:16 +01:00
Roland Geider
fbff8f5425
Send user agent header with app version when logging in and registering
2021-11-08 09:57:18 +01:00
Roland Geider
1e9c44e56b
Use makeUri helper function in auth provider
2021-11-08 09:54:50 +01:00
Roland Geider
909349ce90
Remove unsed code in auth provider
2021-11-08 09:44:22 +01:00
Roland Geider
cf882c194f
Move flag checking for minimum required version to manifest
...
This is still not the best solution, ideally we would save this to some kind
of configuration file that we can use for dev/prod etc. Also, this solution
doesn't work with iOS or web
2021-11-08 09:42:32 +01:00
Roland Geider
03f7e1e371
Remove linting errors
2021-11-08 09:42:32 +01:00
Roland Geider
498a43f292
Test min application version check in auth provider
2021-11-08 09:42:32 +01:00
Roland Geider
504e4ffaba
Refactor ingredient search widget
2021-11-03 19:41:05 +01:00
Tomáš Konkoľ
76ce31287f
Add custom ingredient
2021-11-03 09:45:55 +01:00
Roland Geider
6a19a0697e
Merge pull request #105 from sandimilohanic/master
...
add reference from log to meal
2021-10-23 15:44:52 +02:00
Sandi Milohanić
364b37c106
Correction reference mealId in log
2021-10-23 07:37:14 +02:00
AxelBlaz3
8228b42bb2
Merge branch 'master' of https://github.com/AxelBlaz3/flutter
2021-10-14 09:08:54 +05:30
AxelBlaz3
1b92b073ca
Display errors in login page
...
Now the app shows the reason why the login failed to the user.
Why this happened?
There's a 'Consumer' at the top most widget (MaterialApp) which gets rebuild everytime during logout and login. We don't need to notify listeners and rebuild the MaterialApp widget when logging out (cleaning up old data) during login. By doing so, context is in place and dialog appears. If the whole MaterialApp rebuilds, the old context is gone and a new context is given to all the widgets, which is where the issue arises and the dialog uses old context (which doens't exist in the first place).
Signed-off-by: AxelBlaz3 <karthikgaddam4@gmail.com >
2021-10-14 08:51:18 +05:30
Roland Geider
4ad5263834
Merge branch 'better-linting-rules-1'
2021-10-13 17:45:59 +02:00
Roland Geider
188158e5d6
Merge branch 'sandimilohanic_master'
2021-10-13 17:40:46 +02:00
Sandi Milohanić
ee3df1bada
#29 - Add minimum required server version
2021-10-12 18:43:45 +02:00
Roland Geider
ca4e902e07
Merge branch 'master' into better-linting-rules-1
2021-10-12 15:11:43 +02:00
Marvin M
2fb9737901
camel_case_types
...
statics can't be private
2021-10-08 15:28:19 +02:00
Marvin M
1e8080cc02
always_declare_return_types
2021-10-07 20:43:55 +02:00
Marvin M
9d479e89b0
const_constructors
...
info: Prefer const with constant constructors. prefer_const_constructors
2021-10-07 20:40:09 +02:00
Marko Milosevic
48063634cc
Fixed 100 characters limit in code
2021-10-07 19:58:57 +02:00
Marko Milosevic
91ebe6ce04
Removed the hardcoded options for autologin
2021-10-07 19:40:19 +02:00
Marko Milosevic
88f1f200b1
Added the option to delete workout log entries
2021-10-07 19:37:16 +02:00
Marvin M
eae34f0b36
Fixes pt 2
2021-10-01 17:32:31 +02:00
Marvin M
45a2a5f857
Fixes pt 1
2021-10-01 17:18:17 +02:00
Roland Geider
8543652581
Merge branch 'master' into feature/measurements
...
# Conflicts:
# lib/screens/dashboard.dart
# test/base_provider_test.mocks.dart
# test/gallery_screen_test.mocks.dart
# test/nutritional_plan_form_test.mocks.dart
# test/workout_form_test.mocks.dart
# test/workout_set_form_test.mocks.dart
2021-09-07 17:03:15 +02:00
Roland Geider
c704f561db
Show entries graph in the category overview
2021-09-06 18:08:07 +02:00
Roland Geider
606a73a114
Load all measurement data upfront
2021-09-06 17:40:26 +02:00
Roland Geider
65129f000a
Fix type error that prevented an image from being edited
2021-09-01 15:46:54 +02:00
Roland Geider
c8d1d1ad84
Replace getImage with pickImage, was deprecated
2021-09-01 15:46:31 +02:00
Roland Geider
b2195d4f55
Allow deleting and editing entries
2021-08-29 22:34:30 +02:00
Roland Geider
dc22f236ef
Allow adding measurement categories and entries
2021-08-28 21:52:06 +02:00
ton-An
0b0da1405b
Changed MeasurementEntry's value string to number
...
Reflects the changes made to the rest api. MeasurementEntry's value is
a number instead of a string when in json format
2021-08-26 15:40:26 +02:00
ton-An
89e0060ff5
(MeasurementProvider) Fixed error handling
...
MeasurementProvider
(Edited)
- Fixed error handling
- implemented findEntryById and findCategoryById
MeasurementCategory
(Added)
- findEntryById()
2021-08-26 14:41:26 +02:00
Roland Geider
6cbe164ec8
Merge remote-tracking branch 'origin/feature/measurements' into feature/measurements
...
# Conflicts:
# lib/models/measurements/measurement_entry.g.dart
2021-08-25 21:34:22 +02:00
Roland Geider
a2673fe764
Merge branch 'master' into feature/measurements
...
# Conflicts:
# pubspec.lock
2021-08-25 16:52:15 +02:00
ton-An
755cdd5fae
Pretty much finished the MeasurementProvider
...
-- MesurementProvider --
(Added)
- editCategory
- editEntry
-- MeasurementEntry --
(Added)
- copyWith
-- MeasurementCategory --
(Added)
- copyWith
2021-08-25 16:24:29 +02:00
ton-An
23a8226e72
Worked on the MeasurementProvider
...
(Added)
- addCategory()
- deleteCategory()
- addEntry()
- deleteEntry()
2021-08-25 14:43:53 +02:00
ton-An
19445c36a2
(Measurements) Added Equatable + Refactored
...
(MeasurementProvider)
- Passing in the WgerBaseProvider instead of extending with it
- Re-written tests
- Added the fixture reader to make test file less crowded
(Measurement Models)
- Added Equatable
- Re-written tests
2021-08-22 18:07:47 +02:00
Roland Geider
e8c5b09c5a
Actually delete the logs from the server...
2021-08-16 19:07:49 +02:00