From 51ad3520fa94c8c4d8104486d11582bf7c8c0efe Mon Sep 17 00:00:00 2001 From: John Mccaulley Date: Thu, 28 May 2026 15:22:31 -0400 Subject: [PATCH 01/22] initial code for profile usage --- lib/main.dart | 7 ++++--- lib/models/workouts/set_config_data.dart | 2 +- lib/models/workouts/set_config_data.g.dart | 2 +- lib/models/workouts/slot_entry.dart | 3 +-- lib/providers/routines.dart | 18 +++++++++++++----- lib/providers/user.dart | 20 +++++++++++++++----- lib/screens/home_tabs_screen.dart | 2 -- 7 files changed, 35 insertions(+), 19 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 1a7f61127..0dbe18ef7 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -163,14 +163,15 @@ class MainApp extends StatelessWidget { update: (context, base, previous) => previous ?? ExercisesProvider(WgerBaseProvider(base)), ), - ChangeNotifierProxyProvider2( + ChangeNotifierProxyProvider3( create: (context) => RoutinesProvider( WgerBaseProvider(Provider.of(context, listen: false)), Provider.of(context, listen: false), + Provider.of(context, listen: true), [], ), - update: (context, auth, exercises, previous) => - previous ?? RoutinesProvider(WgerBaseProvider(auth), exercises, []), + update: (context, auth, exercises, user, previous) => + previous ?? RoutinesProvider(WgerBaseProvider(auth), exercises, user, []), ), ChangeNotifierProxyProvider( create: (context) => NutritionPlansProvider( diff --git a/lib/models/workouts/set_config_data.dart b/lib/models/workouts/set_config_data.dart index 38b8e1520..47435945c 100644 --- a/lib/models/workouts/set_config_data.dart +++ b/lib/models/workouts/set_config_data.dart @@ -107,7 +107,7 @@ class SetConfigData { this.maxNrOfSets, this.weight, this.maxWeight, - this.weightUnitId = WEIGHT_UNIT_KG, + this.weightUnitId, this.weightRounding, this.repetitions, this.maxRepetitions, diff --git a/lib/models/workouts/set_config_data.g.dart b/lib/models/workouts/set_config_data.g.dart index e415005b7..eba87c76a 100644 --- a/lib/models/workouts/set_config_data.g.dart +++ b/lib/models/workouts/set_config_data.g.dart @@ -40,7 +40,7 @@ SetConfigData _$SetConfigDataFromJson(Map json) { maxNrOfSets: json['max_sets'] as num?, weight: stringToNumNull(json['weight'] as String?), maxWeight: stringToNumNull(json['max_weight'] as String?), - weightUnitId: (json['weight_unit'] as num?)?.toInt() ?? WEIGHT_UNIT_KG, + weightUnitId: (json['weight_unit'] as num?)?.toInt(), weightRounding: stringToNumNull(json['weight_rounding'] as String?), repetitions: stringToNumNull(json['repetitions'] as String?), maxRepetitions: stringToNumNull(json['max_repetitions'] as String?), diff --git a/lib/models/workouts/slot_entry.dart b/lib/models/workouts/slot_entry.dart index 47f87bd08..5e46bc3c1 100644 --- a/lib/models/workouts/slot_entry.dart +++ b/lib/models/workouts/slot_entry.dart @@ -192,7 +192,7 @@ class SlotEntry { int? order, SlotEntryType? type, required Exercise exercise, - int? weightUnitId, + this.weightUnitId, this.weightRounding, int? repetitionUnitId, this.repetitionRounding, @@ -203,7 +203,6 @@ class SlotEntry { this.type = type ?? SlotEntryType.normal; exerciseObj = exercise; exerciseId = exercise.id!; - this.weightUnitId = weightUnitId ?? WEIGHT_UNIT_KG; this.repetitionUnitId = repetitionUnitId ?? REP_UNIT_REPETITIONS_ID; } diff --git a/lib/providers/routines.dart b/lib/providers/routines.dart index 7072afe66..eba0081be 100644 --- a/lib/providers/routines.dart +++ b/lib/providers/routines.dart @@ -37,6 +37,7 @@ import 'package:wger/models/workouts/slot_entry.dart'; import 'package:wger/models/workouts/weight_unit.dart'; import 'package:wger/providers/base_provider.dart'; import 'package:wger/providers/exercises.dart'; +import 'package:wger/providers/user.dart'; class RoutinesProvider with ChangeNotifier { final _logger = Logger('RoutinesProvider'); @@ -67,6 +68,7 @@ class RoutinesProvider with ChangeNotifier { Routine? activeRoutine; final ExercisesProvider _exerciseProvider; final WgerBaseProvider baseProvider; + final UserProvider _userProvider; List _routines = []; List _weightUnits = []; List _repetitionUnits = []; @@ -74,6 +76,7 @@ class RoutinesProvider with ChangeNotifier { RoutinesProvider( this.baseProvider, this._exerciseProvider, + this._userProvider, List entries, { List? weightUnits, List? repetitionUnits, @@ -112,8 +115,9 @@ class RoutinesProvider with ChangeNotifier { } /// Return the default weight unit (kg) - WeightUnit get defaultWeightUnit { - return _weightUnits.firstWhere((element) => element.id == WEIGHT_UNIT_KG); + Future get defaultWeightUnit async { + final id = await _userProvider.isMetric() ? WEIGHT_UNIT_KG : WEIGHT_UNIT_LB; + return _weightUnits.firstWhere((element) => element.id == id); } WeightUnit findWeightUnitById(int id) => _weightUnits.firstWhere((element) => element.id == id); @@ -203,9 +207,13 @@ class RoutinesProvider with ChangeNotifier { (e) => e.id == setConfig.repetitionsUnitId, ); - setConfig.weightUnit = _weightUnits.firstWhere( - (e) => e.id == setConfig.weightUnitId, - ); + if (setConfig.weightUnitId != null) { + setConfig.weightUnit = _weightUnits.firstWhere( + (e) => e.id == setConfig.weightUnitId, + ); + } else { + setConfig.weightUnit = await defaultWeightUnit; + } } } } diff --git a/lib/providers/user.dart b/lib/providers/user.dart index 7659e841f..43f528ca4 100644 --- a/lib/providers/user.dart +++ b/lib/providers/user.dart @@ -244,7 +244,7 @@ class UserProvider with ChangeNotifier { } /// Fetch the current user's profile - Future fetchAndSetProfile() async { + Future _fetchAndSetProfile() async { final userData = await baseProvider.fetch(baseProvider.makeUrl(PROFILE_URL)); try { profile = Profile.fromJson(userData); @@ -255,10 +255,13 @@ class UserProvider with ChangeNotifier { /// Save the user's profile to the server Future saveProfile() async { - await baseProvider.post( - profile!.toJson(), - baseProvider.makeUrl(PROFILE_URL), - ); + final profile = this.profile; + if (profile != null) { + await baseProvider.post( + profile.toJson(), + baseProvider.makeUrl(PROFILE_URL), + ); + } } /// Verify the user's email @@ -271,4 +274,11 @@ class UserProvider with ChangeNotifier { ); //log(verificationData.toString()); } + + Future isMetric() async { + if (profile == null) { + await _fetchAndSetProfile(); + } + return profile?.isMetric ?? false; + } } diff --git a/lib/screens/home_tabs_screen.dart b/lib/screens/home_tabs_screen.dart index 10de168f7..61baa85da 100644 --- a/lib/screens/home_tabs_screen.dart +++ b/lib/screens/home_tabs_screen.dart @@ -93,14 +93,12 @@ class _HomeTabsScreenState extends ConsumerState final galleryProvider = context.read(); final weightProvider = context.read(); final measurementProvider = context.read(); - final userProvider = context.read(); // // Base data widget._logger.info('Loading base data'); await Future.wait([ authProvider.setServerVersion(), - userProvider.fetchAndSetProfile(), routinesProvider.fetchAndSetUnits(), nutritionPlansProvider.fetchIngredientsFromCache(), exercisesProvider.fetchAndSetInitialData(), From fb599a488987c8381bf0f928802f5322758d4d79 Mon Sep 17 00:00:00 2001 From: John Mccaulley Date: Thu, 28 May 2026 15:38:27 -0400 Subject: [PATCH 02/22] updating tests to pass --- test/routine/routine_screen_test.dart | 5 +- test/routine/routine_screen_test.mocks.dart | 245 +++++++++- test/routine/routines_provider_test.dart | 16 +- .../routine/routines_provider_test.mocks.dart | 441 +++++++++++++----- test/routine/routines_screen_test.dart | 5 +- test/routine/routines_screen_test.mocks.dart | 245 +++++++++- test/user/provider_test.dart | 6 +- 7 files changed, 794 insertions(+), 169 deletions(-) diff --git a/test/routine/routine_screen_test.dart b/test/routine/routine_screen_test.dart index 9d46b1d26..97fb78574 100644 --- a/test/routine/routine_screen_test.dart +++ b/test/routine/routine_screen_test.dart @@ -28,14 +28,16 @@ import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/providers/base_provider.dart'; import 'package:wger/providers/exercises.dart'; import 'package:wger/providers/routines.dart'; +import 'package:wger/providers/user.dart'; import 'package:wger/screens/routine_screen.dart'; import '../../test_data/routines.dart'; import 'routine_screen_test.mocks.dart'; -@GenerateMocks([WgerBaseProvider]) +@GenerateMocks([WgerBaseProvider, UserProvider]) void main() { final mockBaseProvider = MockWgerBaseProvider(); + final mockUserProvider = MockUserProvider(); final exercisesProvider = ExercisesProvider( mockBaseProvider, database: ExerciseDatabase.inMemory(NativeDatabase.memory()), @@ -48,6 +50,7 @@ void main() { create: (context) => RoutinesProvider( mockBaseProvider, exercisesProvider, + mockUserProvider, [getTestRoutine()], ), child: MaterialApp( diff --git a/test/routine/routine_screen_test.mocks.dart b/test/routine/routine_screen_test.mocks.dart index aac1c9eac..166b4a5e8 100644 --- a/test/routine/routine_screen_test.mocks.dart +++ b/test/routine/routine_screen_test.mocks.dart @@ -3,12 +3,17 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; +import 'dart:async' as _i6; +import 'dart:ui' as _i9; +import 'package:flutter/material.dart' as _i8; import 'package:http/http.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; +import 'package:shared_preferences/shared_preferences.dart' as _i5; +import 'package:wger/models/user/profile.dart' as _i10; import 'package:wger/providers/auth.dart' as _i2; import 'package:wger/providers/base_provider.dart' as _i4; +import 'package:wger/providers/user.dart' as _i7; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -26,19 +31,35 @@ import 'package:wger/providers/base_provider.dart' as _i4; // ignore_for_file: invalid_use_of_internal_member class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider { - _FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeAuthProvider_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeClient_1 extends _i1.SmartFake implements _i3.Client { - _FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeClient_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeUri_2 extends _i1.SmartFake implements Uri { - _FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeUri_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response { - _FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeResponse_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeWgerBaseProvider_4 extends _i1.SmartFake + implements _i4.WgerBaseProvider { + _FakeWgerBaseProvider_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeSharedPreferencesAsync_5 extends _i1.SmartFake + implements _i5.SharedPreferencesAsync { + _FakeSharedPreferencesAsync_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [WgerBaseProvider]. @@ -116,7 +137,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { as Uri); @override - _i5.Future fetch( + _i6.Future fetch( Uri? uri, { int? maxRetries = 3, Duration? initialDelay = const Duration(milliseconds: 250), @@ -134,12 +155,12 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { #language: language, }, ), - returnValue: _i5.Future.value(), + returnValue: _i6.Future.value(), ) - as _i5.Future); + as _i6.Future); @override - _i5.Future> fetchPaginated( + _i6.Future> fetchPaginated( Uri? uri, { String? language, Duration? timeout = const Duration(seconds: 15), @@ -150,43 +171,227 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { [uri], {#language: language, #timeout: timeout}, ), - returnValue: _i5.Future>.value([]), + returnValue: _i6.Future>.value([]), ) - as _i5.Future>); + as _i6.Future>); @override - _i5.Future> post(Map? data, Uri? uri) => + _i6.Future> post(Map? data, Uri? uri) => (super.noSuchMethod( Invocation.method(#post, [data, uri]), - returnValue: _i5.Future>.value( + returnValue: _i6.Future>.value( {}, ), ) - as _i5.Future>); + as _i6.Future>); @override - _i5.Future> patch( + _i6.Future> patch( Map? data, Uri? uri, ) => (super.noSuchMethod( Invocation.method(#patch, [data, uri]), - returnValue: _i5.Future>.value( + returnValue: _i6.Future>.value( {}, ), ) - as _i5.Future>); + as _i6.Future>); @override - _i5.Future<_i3.Response> deleteRequest(String? url, int? id) => + _i6.Future<_i3.Response> deleteRequest(String? url, int? id) => (super.noSuchMethod( Invocation.method(#deleteRequest, [url, id]), - returnValue: _i5.Future<_i3.Response>.value( + returnValue: _i6.Future<_i3.Response>.value( _FakeResponse_3( this, Invocation.method(#deleteRequest, [url, id]), ), ), ) - as _i5.Future<_i3.Response>); + as _i6.Future<_i3.Response>); +} + +/// A class which mocks [UserProvider]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockUserProvider extends _i1.Mock implements _i7.UserProvider { + MockUserProvider() { + _i1.throwOnMissingStub(this); + } + + @override + _i8.ThemeMode get themeMode => + (super.noSuchMethod( + Invocation.getter(#themeMode), + returnValue: _i8.ThemeMode.system, + ) + as _i8.ThemeMode); + + @override + _i4.WgerBaseProvider get baseProvider => + (super.noSuchMethod( + Invocation.getter(#baseProvider), + returnValue: _FakeWgerBaseProvider_4( + this, + Invocation.getter(#baseProvider), + ), + ) + as _i4.WgerBaseProvider); + + @override + _i5.SharedPreferencesAsync get prefs => + (super.noSuchMethod( + Invocation.getter(#prefs), + returnValue: _FakeSharedPreferencesAsync_5( + this, + Invocation.getter(#prefs), + ), + ) + as _i5.SharedPreferencesAsync); + + @override + List<_i7.DashboardWidget> get dashboardWidgets => + (super.noSuchMethod( + Invocation.getter(#dashboardWidgets), + returnValue: <_i7.DashboardWidget>[], + ) + as List<_i7.DashboardWidget>); + + @override + List<_i7.DashboardWidget> get allDashboardWidgets => + (super.noSuchMethod( + Invocation.getter(#allDashboardWidgets), + returnValue: <_i7.DashboardWidget>[], + ) + as List<_i7.DashboardWidget>); + + @override + set themeMode(_i8.ThemeMode? value) => super.noSuchMethod( + Invocation.setter(#themeMode, value), + returnValueForMissingStub: null, + ); + + @override + set userLocale(_i9.Locale? value) => super.noSuchMethod( + Invocation.setter(#userLocale, value), + returnValueForMissingStub: null, + ); + + @override + set prefs(_i5.SharedPreferencesAsync? value) => super.noSuchMethod( + Invocation.setter(#prefs, value), + returnValueForMissingStub: null, + ); + + @override + set profile(_i10.Profile? value) => super.noSuchMethod( + Invocation.setter(#profile, value), + returnValueForMissingStub: null, + ); + + @override + bool get hasListeners => + (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) + as bool); + + @override + void clear() => super.noSuchMethod( + Invocation.method(#clear, []), + returnValueForMissingStub: null, + ); + + @override + bool isDashboardWidgetVisible(_i7.DashboardWidget? key) => + (super.noSuchMethod( + Invocation.method(#isDashboardWidgetVisible, [key]), + returnValue: false, + ) + as bool); + + @override + _i6.Future setDashboardWidgetVisible( + _i7.DashboardWidget? key, + bool? visible, + ) => + (super.noSuchMethod( + Invocation.method(#setDashboardWidgetVisible, [key, visible]), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + _i6.Future setDashboardOrder(int? oldIndex, int? newIndex) => + (super.noSuchMethod( + Invocation.method(#setDashboardOrder, [oldIndex, newIndex]), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + void setThemeMode(_i8.ThemeMode? mode) => super.noSuchMethod( + Invocation.method(#setThemeMode, [mode]), + returnValueForMissingStub: null, + ); + + @override + _i6.Future setUserLocale(_i9.Locale? locale) => + (super.noSuchMethod( + Invocation.method(#setUserLocale, [locale]), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + _i6.Future saveProfile() => + (super.noSuchMethod( + Invocation.method(#saveProfile, []), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + _i6.Future verifyEmail() => + (super.noSuchMethod( + Invocation.method(#verifyEmail, []), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + _i6.Future isMetric() => + (super.noSuchMethod( + Invocation.method(#isMetric, []), + returnValue: _i6.Future.value(false), + ) + as _i6.Future); + + @override + void addListener(_i9.VoidCallback? listener) => super.noSuchMethod( + Invocation.method(#addListener, [listener]), + returnValueForMissingStub: null, + ); + + @override + void removeListener(_i9.VoidCallback? listener) => super.noSuchMethod( + Invocation.method(#removeListener, [listener]), + returnValueForMissingStub: null, + ); + + @override + void dispose() => super.noSuchMethod( + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); + + @override + void notifyListeners() => super.noSuchMethod( + Invocation.method(#notifyListeners, []), + returnValueForMissingStub: null, + ); } diff --git a/test/routine/routines_provider_test.dart b/test/routine/routines_provider_test.dart index 4679985c5..15e401439 100644 --- a/test/routine/routines_provider_test.dart +++ b/test/routine/routines_provider_test.dart @@ -35,15 +35,17 @@ import 'package:wger/models/workouts/weight_unit.dart'; import 'package:wger/providers/base_provider.dart'; import 'package:wger/providers/exercises.dart'; import 'package:wger/providers/routines.dart'; +import 'package:wger/providers/user.dart'; import '../../test_data/exercises.dart'; import '../../test_data/routines.dart'; import '../fixtures/fixture_reader.dart'; import 'routines_provider_test.mocks.dart'; -@GenerateMocks([WgerBaseProvider, ExercisesProvider]) +@GenerateMocks([WgerBaseProvider, ExercisesProvider, UserProvider]) void main() { final mockBaseProvider = MockWgerBaseProvider(); + final mockUserProvider = MockUserProvider(); /// Replacement for SharedPreferences.setMockInitialValues() SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); @@ -74,7 +76,7 @@ void main() { ); // Load the entries - final provider = RoutinesProvider(mockBaseProvider, exercisesProvider, []); + final provider = RoutinesProvider(mockBaseProvider, exercisesProvider, mockUserProvider, []); final plan = await provider.fetchAndSetRoutineSparse(325397); final plans = provider.getPlans(); @@ -102,7 +104,7 @@ void main() { ); // Load the entries - final provider = RoutinesProvider(mockBaseProvider, exercisesProvider, []); + final provider = RoutinesProvider(mockBaseProvider, exercisesProvider, mockUserProvider, []); await provider.fetchAndSetRoutineSparse(325397); await provider.deleteRoutine(325397); @@ -121,7 +123,7 @@ void main() { ).thenAnswer((_) => Future.value(tRepetitionUnits['results'])); // Load the entries - final provider = RoutinesProvider(mockBaseProvider, exercisesProvider, []); + final provider = RoutinesProvider(mockBaseProvider, exercisesProvider, mockUserProvider, []); await provider.fetchAndSetRepetitionUnits(); final repetitionUnits = provider.repetitionUnits; @@ -139,7 +141,7 @@ void main() { final ExercisesProvider testExercisesProvider = ExercisesProvider(mockBaseProvider); // Load the entries - final provider = RoutinesProvider(mockBaseProvider, testExercisesProvider, []); + final provider = RoutinesProvider(mockBaseProvider, testExercisesProvider, mockUserProvider, []); await provider.fetchAndSetWeightUnits(); final weightUnits = provider.weightUnits; @@ -168,7 +170,7 @@ void main() { final prefs = PreferenceHelper.asyncPref; // Load the entries - final provider = RoutinesProvider(mockBaseProvider, exercisesProvider, []); + final provider = RoutinesProvider(mockBaseProvider, exercisesProvider, mockUserProvider, []); await provider.fetchAndSetUnits(); final prefsJson = jsonDecode((await prefs.getString(PREFS_WORKOUT_UNITS))!); @@ -229,7 +231,7 @@ void main() { (_) async => Future.value(testCrunches), ); - final provider = RoutinesProvider(mockBaseProvider, mockExercisesProvider, []); + final provider = RoutinesProvider(mockBaseProvider, mockExercisesProvider, mockUserProvider, []); provider.repetitionUnits = testRepetitionUnits; provider.weightUnits = testWeightUnits; diff --git a/test/routine/routines_provider_test.mocks.dart b/test/routine/routines_provider_test.mocks.dart index c07f47e1c..b3362c3cb 100644 --- a/test/routine/routines_provider_test.mocks.dart +++ b/test/routine/routines_provider_test.mocks.dart @@ -3,22 +3,26 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i11; -import 'dart:ui' as _i15; +import 'dart:async' as _i12; +import 'dart:ui' as _i16; +import 'package:flutter/material.dart' as _i18; import 'package:http/http.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; +import 'package:shared_preferences/shared_preferences.dart' as _i11; import 'package:wger/database/exercises/exercise_database.dart' as _i5; -import 'package:wger/models/core/search_options.dart' as _i13; +import 'package:wger/models/core/search_options.dart' as _i14; import 'package:wger/models/exercises/category.dart' as _i7; import 'package:wger/models/exercises/equipment.dart' as _i8; import 'package:wger/models/exercises/exercise.dart' as _i6; -import 'package:wger/models/exercises/exercise_filters.dart' as _i14; +import 'package:wger/models/exercises/exercise_filters.dart' as _i15; import 'package:wger/models/exercises/language.dart' as _i10; import 'package:wger/models/exercises/muscle.dart' as _i9; +import 'package:wger/models/user/profile.dart' as _i19; import 'package:wger/providers/auth.dart' as _i2; import 'package:wger/providers/base_provider.dart' as _i4; -import 'package:wger/providers/exercises.dart' as _i12; +import 'package:wger/providers/exercises.dart' as _i13; +import 'package:wger/providers/user.dart' as _i17; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -36,50 +40,67 @@ import 'package:wger/providers/exercises.dart' as _i12; // ignore_for_file: invalid_use_of_internal_member class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider { - _FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeAuthProvider_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeClient_1 extends _i1.SmartFake implements _i3.Client { - _FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeClient_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeUri_2 extends _i1.SmartFake implements Uri { - _FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeUri_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response { - _FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeResponse_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeWgerBaseProvider_4 extends _i1.SmartFake implements _i4.WgerBaseProvider { +class _FakeWgerBaseProvider_4 extends _i1.SmartFake + implements _i4.WgerBaseProvider { _FakeWgerBaseProvider_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } -class _FakeExerciseDatabase_5 extends _i1.SmartFake implements _i5.ExerciseDatabase { +class _FakeExerciseDatabase_5 extends _i1.SmartFake + implements _i5.ExerciseDatabase { _FakeExerciseDatabase_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeExercise_6 extends _i1.SmartFake implements _i6.Exercise { - _FakeExercise_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeExercise_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeExerciseCategory_7 extends _i1.SmartFake implements _i7.ExerciseCategory { +class _FakeExerciseCategory_7 extends _i1.SmartFake + implements _i7.ExerciseCategory { _FakeExerciseCategory_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeEquipment_8 extends _i1.SmartFake implements _i8.Equipment { - _FakeEquipment_8(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeEquipment_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeMuscle_9 extends _i1.SmartFake implements _i9.Muscle { - _FakeMuscle_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeMuscle_9(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeLanguage_10 extends _i1.SmartFake implements _i10.Language { - _FakeLanguage_10(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeLanguage_10(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeSharedPreferencesAsync_11 extends _i1.SmartFake + implements _i11.SharedPreferencesAsync { + _FakeSharedPreferencesAsync_11(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [WgerBaseProvider]. @@ -157,7 +178,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { as Uri); @override - _i11.Future fetch( + _i12.Future fetch( Uri? uri, { int? maxRetries = 3, Duration? initialDelay = const Duration(milliseconds: 250), @@ -175,12 +196,12 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { #language: language, }, ), - returnValue: _i11.Future.value(), + returnValue: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future> fetchPaginated( + _i12.Future> fetchPaginated( Uri? uri, { String? language, Duration? timeout = const Duration(seconds: 15), @@ -191,54 +212,54 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { [uri], {#language: language, #timeout: timeout}, ), - returnValue: _i11.Future>.value([]), + returnValue: _i12.Future>.value([]), ) - as _i11.Future>); + as _i12.Future>); @override - _i11.Future> post( + _i12.Future> post( Map? data, Uri? uri, ) => (super.noSuchMethod( Invocation.method(#post, [data, uri]), - returnValue: _i11.Future>.value( + returnValue: _i12.Future>.value( {}, ), ) - as _i11.Future>); + as _i12.Future>); @override - _i11.Future> patch( + _i12.Future> patch( Map? data, Uri? uri, ) => (super.noSuchMethod( Invocation.method(#patch, [data, uri]), - returnValue: _i11.Future>.value( + returnValue: _i12.Future>.value( {}, ), ) - as _i11.Future>); + as _i12.Future>); @override - _i11.Future<_i3.Response> deleteRequest(String? url, int? id) => + _i12.Future<_i3.Response> deleteRequest(String? url, int? id) => (super.noSuchMethod( Invocation.method(#deleteRequest, [url, id]), - returnValue: _i11.Future<_i3.Response>.value( + returnValue: _i12.Future<_i3.Response>.value( _FakeResponse_3( this, Invocation.method(#deleteRequest, [url, id]), ), ), ) - as _i11.Future<_i3.Response>); + as _i12.Future<_i3.Response>); } /// A class which mocks [ExercisesProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider { +class MockExercisesProvider extends _i1.Mock implements _i13.ExercisesProvider { MockExercisesProvider() { _i1.throwOnMissingStub(this); } @@ -334,10 +355,11 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider { ); @override - set filteredExercises(List<_i6.Exercise>? newFilteredExercises) => super.noSuchMethod( - Invocation.setter(#filteredExercises, newFilteredExercises), - returnValueForMissingStub: null, - ); + set filteredExercises(List<_i6.Exercise>? newFilteredExercises) => + super.noSuchMethod( + Invocation.setter(#filteredExercises, newFilteredExercises), + returnValueForMissingStub: null, + ); @override set languages(List<_i10.Language>? languages) => super.noSuchMethod( @@ -347,16 +369,17 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider { @override bool get hasListeners => - (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool); + (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) + as bool); @override - _i11.Future setFilters(_i12.Filters? newFilters) => + _i12.Future setFilters(_i13.Filters? newFilters) => (super.noSuchMethod( Invocation.method(#setFilters, [newFilters]), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override void initFilters() => super.noSuchMethod( @@ -365,13 +388,13 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider { ); @override - _i11.Future findByFilters() => + _i12.Future findByFilters() => (super.noSuchMethod( Invocation.method(#findByFilters, []), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override void clear() => super.noSuchMethod( @@ -450,60 +473,60 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider { as _i10.Language); @override - _i11.Future fetchAndSetCategoriesFromApi() => + _i12.Future fetchAndSetCategoriesFromApi() => (super.noSuchMethod( Invocation.method(#fetchAndSetCategoriesFromApi, []), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future fetchAndSetMusclesFromApi() => + _i12.Future fetchAndSetMusclesFromApi() => (super.noSuchMethod( Invocation.method(#fetchAndSetMusclesFromApi, []), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future fetchAndSetEquipmentsFromApi() => + _i12.Future fetchAndSetEquipmentsFromApi() => (super.noSuchMethod( Invocation.method(#fetchAndSetEquipmentsFromApi, []), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future fetchAndSetLanguagesFromApi() => + _i12.Future fetchAndSetLanguagesFromApi() => (super.noSuchMethod( Invocation.method(#fetchAndSetLanguagesFromApi, []), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future fetchAndSetAllExercises() => + _i12.Future fetchAndSetAllExercises() => (super.noSuchMethod( Invocation.method(#fetchAndSetAllExercises, []), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future<_i6.Exercise?> fetchAndSetExercise(int? exerciseId) => + _i12.Future<_i6.Exercise?> fetchAndSetExercise(int? exerciseId) => (super.noSuchMethod( Invocation.method(#fetchAndSetExercise, [exerciseId]), - returnValue: _i11.Future<_i6.Exercise?>.value(), + returnValue: _i12.Future<_i6.Exercise?>.value(), ) - as _i11.Future<_i6.Exercise?>); + as _i12.Future<_i6.Exercise?>); @override - _i11.Future<_i6.Exercise> handleUpdateExerciseFromApi( + _i12.Future<_i6.Exercise> handleUpdateExerciseFromApi( _i5.ExerciseDatabase? database, int? exerciseId, ) => @@ -512,7 +535,7 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider { database, exerciseId, ]), - returnValue: _i11.Future<_i6.Exercise>.value( + returnValue: _i12.Future<_i6.Exercise>.value( _FakeExercise_6( this, Invocation.method(#handleUpdateExerciseFromApi, [ @@ -522,39 +545,39 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider { ), ), ) - as _i11.Future<_i6.Exercise>); + as _i12.Future<_i6.Exercise>); @override - _i11.Future initCacheTimesLocalPrefs({bool? forceInit = false}) => + _i12.Future initCacheTimesLocalPrefs({bool? forceInit = false}) => (super.noSuchMethod( Invocation.method(#initCacheTimesLocalPrefs, [], { #forceInit: forceInit, }), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future clearAllCachesAndPrefs() => + _i12.Future clearAllCachesAndPrefs() => (super.noSuchMethod( Invocation.method(#clearAllCachesAndPrefs, []), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future fetchAndSetInitialData() => + _i12.Future fetchAndSetInitialData() => (super.noSuchMethod( Invocation.method(#fetchAndSetInitialData, []), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future setExercisesFromDatabase( + _i12.Future setExercisesFromDatabase( _i5.ExerciseDatabase? database, { bool? forceDeleteCache = false, }) => @@ -564,58 +587,58 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider { [database], {#forceDeleteCache: forceDeleteCache}, ), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future updateExerciseCache(_i5.ExerciseDatabase? database) => + _i12.Future updateExerciseCache(_i5.ExerciseDatabase? database) => (super.noSuchMethod( Invocation.method(#updateExerciseCache, [database]), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future fetchAndSetMuscles(_i5.ExerciseDatabase? database) => + _i12.Future fetchAndSetMuscles(_i5.ExerciseDatabase? database) => (super.noSuchMethod( Invocation.method(#fetchAndSetMuscles, [database]), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future fetchAndSetCategories(_i5.ExerciseDatabase? database) => + _i12.Future fetchAndSetCategories(_i5.ExerciseDatabase? database) => (super.noSuchMethod( Invocation.method(#fetchAndSetCategories, [database]), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future fetchAndSetLanguages(_i5.ExerciseDatabase? database) => + _i12.Future fetchAndSetLanguages(_i5.ExerciseDatabase? database) => (super.noSuchMethod( Invocation.method(#fetchAndSetLanguages, [database]), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future fetchAndSetEquipments(_i5.ExerciseDatabase? database) => + _i12.Future fetchAndSetEquipments(_i5.ExerciseDatabase? database) => (super.noSuchMethod( Invocation.method(#fetchAndSetEquipments, [database]), - returnValue: _i11.Future.value(), - returnValueForMissingStub: _i11.Future.value(), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), ) - as _i11.Future); + as _i12.Future); @override - _i11.Future> searchExercise( + _i12.Future> searchExercise( String? name, { String? languageCode = 'en', bool? searchEnglish = false, @@ -626,18 +649,18 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider { [name], {#languageCode: languageCode, #searchEnglish: searchEnglish}, ), - returnValue: _i11.Future>.value( + returnValue: _i12.Future>.value( <_i6.Exercise>[], ), ) - as _i11.Future>); + as _i12.Future>); @override - _i11.Future> searchExerciseWithSearchMode( + _i12.Future> searchExerciseWithSearchMode( String? name, { String? languageCode = 'en', - _i13.SearchLanguage? searchLanguage = _i13.SearchLanguage.currentAndEnglish, - _i14.ExerciseSearchMode? searchMode = _i14.ExerciseSearchMode.fulltext, + _i14.SearchLanguage? searchLanguage = _i14.SearchLanguage.currentAndEnglish, + _i15.ExerciseSearchMode? searchMode = _i15.ExerciseSearchMode.fulltext, Set<_i7.ExerciseCategory>? categories = const {}, }) => (super.noSuchMethod( @@ -651,20 +674,204 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider { #categories: categories, }, ), - returnValue: _i11.Future>.value( + returnValue: _i12.Future>.value( <_i6.Exercise>[], ), ) - as _i11.Future>); + as _i12.Future>); @override - void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method(#addListener, [listener]), returnValueForMissingStub: null, ); @override - void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( + Invocation.method(#removeListener, [listener]), + returnValueForMissingStub: null, + ); + + @override + void dispose() => super.noSuchMethod( + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); + + @override + void notifyListeners() => super.noSuchMethod( + Invocation.method(#notifyListeners, []), + returnValueForMissingStub: null, + ); +} + +/// A class which mocks [UserProvider]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockUserProvider extends _i1.Mock implements _i17.UserProvider { + MockUserProvider() { + _i1.throwOnMissingStub(this); + } + + @override + _i18.ThemeMode get themeMode => + (super.noSuchMethod( + Invocation.getter(#themeMode), + returnValue: _i18.ThemeMode.system, + ) + as _i18.ThemeMode); + + @override + _i4.WgerBaseProvider get baseProvider => + (super.noSuchMethod( + Invocation.getter(#baseProvider), + returnValue: _FakeWgerBaseProvider_4( + this, + Invocation.getter(#baseProvider), + ), + ) + as _i4.WgerBaseProvider); + + @override + _i11.SharedPreferencesAsync get prefs => + (super.noSuchMethod( + Invocation.getter(#prefs), + returnValue: _FakeSharedPreferencesAsync_11( + this, + Invocation.getter(#prefs), + ), + ) + as _i11.SharedPreferencesAsync); + + @override + List<_i17.DashboardWidget> get dashboardWidgets => + (super.noSuchMethod( + Invocation.getter(#dashboardWidgets), + returnValue: <_i17.DashboardWidget>[], + ) + as List<_i17.DashboardWidget>); + + @override + List<_i17.DashboardWidget> get allDashboardWidgets => + (super.noSuchMethod( + Invocation.getter(#allDashboardWidgets), + returnValue: <_i17.DashboardWidget>[], + ) + as List<_i17.DashboardWidget>); + + @override + set themeMode(_i18.ThemeMode? value) => super.noSuchMethod( + Invocation.setter(#themeMode, value), + returnValueForMissingStub: null, + ); + + @override + set userLocale(_i16.Locale? value) => super.noSuchMethod( + Invocation.setter(#userLocale, value), + returnValueForMissingStub: null, + ); + + @override + set prefs(_i11.SharedPreferencesAsync? value) => super.noSuchMethod( + Invocation.setter(#prefs, value), + returnValueForMissingStub: null, + ); + + @override + set profile(_i19.Profile? value) => super.noSuchMethod( + Invocation.setter(#profile, value), + returnValueForMissingStub: null, + ); + + @override + bool get hasListeners => + (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) + as bool); + + @override + void clear() => super.noSuchMethod( + Invocation.method(#clear, []), + returnValueForMissingStub: null, + ); + + @override + bool isDashboardWidgetVisible(_i17.DashboardWidget? key) => + (super.noSuchMethod( + Invocation.method(#isDashboardWidgetVisible, [key]), + returnValue: false, + ) + as bool); + + @override + _i12.Future setDashboardWidgetVisible( + _i17.DashboardWidget? key, + bool? visible, + ) => + (super.noSuchMethod( + Invocation.method(#setDashboardWidgetVisible, [key, visible]), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) + as _i12.Future); + + @override + _i12.Future setDashboardOrder(int? oldIndex, int? newIndex) => + (super.noSuchMethod( + Invocation.method(#setDashboardOrder, [oldIndex, newIndex]), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) + as _i12.Future); + + @override + void setThemeMode(_i18.ThemeMode? mode) => super.noSuchMethod( + Invocation.method(#setThemeMode, [mode]), + returnValueForMissingStub: null, + ); + + @override + _i12.Future setUserLocale(_i16.Locale? locale) => + (super.noSuchMethod( + Invocation.method(#setUserLocale, [locale]), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) + as _i12.Future); + + @override + _i12.Future saveProfile() => + (super.noSuchMethod( + Invocation.method(#saveProfile, []), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) + as _i12.Future); + + @override + _i12.Future verifyEmail() => + (super.noSuchMethod( + Invocation.method(#verifyEmail, []), + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) + as _i12.Future); + + @override + _i12.Future isMetric() => + (super.noSuchMethod( + Invocation.method(#isMetric, []), + returnValue: _i12.Future.value(false), + ) + as _i12.Future); + + @override + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( + Invocation.method(#addListener, [listener]), + returnValueForMissingStub: null, + ); + + @override + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method(#removeListener, [listener]), returnValueForMissingStub: null, ); diff --git a/test/routine/routines_screen_test.dart b/test/routine/routines_screen_test.dart index 6c7740588..3a4465143 100644 --- a/test/routine/routines_screen_test.dart +++ b/test/routine/routines_screen_test.dart @@ -29,6 +29,7 @@ import 'package:wger/models/workouts/routine.dart'; import 'package:wger/providers/base_provider.dart'; import 'package:wger/providers/exercises.dart'; import 'package:wger/providers/routines.dart'; +import 'package:wger/providers/user.dart'; import 'package:wger/screens/form_screen.dart'; import 'package:wger/screens/routine_list_screen.dart'; import 'package:wger/widgets/nutrition/forms.dart'; @@ -36,9 +37,10 @@ import 'package:wger/widgets/routines/forms/routine.dart'; import 'routines_screen_test.mocks.dart'; -@GenerateMocks([WgerBaseProvider]) +@GenerateMocks([WgerBaseProvider, UserProvider]) void main() { var mockBaseProvider = MockWgerBaseProvider(); + var mockUserProvider = MockUserProvider(); final testExercisesProvider = ExercisesProvider( mockBaseProvider, database: ExerciseDatabase.inMemory(NativeDatabase.memory()), @@ -61,6 +63,7 @@ void main() { create: (context) => RoutinesProvider( mockBaseProvider, testExercisesProvider, + mockUserProvider, [ Routine( id: 1, diff --git a/test/routine/routines_screen_test.mocks.dart b/test/routine/routines_screen_test.mocks.dart index e76067c8f..88c113d15 100644 --- a/test/routine/routines_screen_test.mocks.dart +++ b/test/routine/routines_screen_test.mocks.dart @@ -3,12 +3,17 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; +import 'dart:async' as _i6; +import 'dart:ui' as _i9; +import 'package:flutter/material.dart' as _i8; import 'package:http/http.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; +import 'package:shared_preferences/shared_preferences.dart' as _i5; +import 'package:wger/models/user/profile.dart' as _i10; import 'package:wger/providers/auth.dart' as _i2; import 'package:wger/providers/base_provider.dart' as _i4; +import 'package:wger/providers/user.dart' as _i7; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -26,19 +31,35 @@ import 'package:wger/providers/base_provider.dart' as _i4; // ignore_for_file: invalid_use_of_internal_member class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider { - _FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeAuthProvider_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeClient_1 extends _i1.SmartFake implements _i3.Client { - _FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeClient_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeUri_2 extends _i1.SmartFake implements Uri { - _FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeUri_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response { - _FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeResponse_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeWgerBaseProvider_4 extends _i1.SmartFake + implements _i4.WgerBaseProvider { + _FakeWgerBaseProvider_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeSharedPreferencesAsync_5 extends _i1.SmartFake + implements _i5.SharedPreferencesAsync { + _FakeSharedPreferencesAsync_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [WgerBaseProvider]. @@ -116,7 +137,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { as Uri); @override - _i5.Future fetch( + _i6.Future fetch( Uri? uri, { int? maxRetries = 3, Duration? initialDelay = const Duration(milliseconds: 250), @@ -134,12 +155,12 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { #language: language, }, ), - returnValue: _i5.Future.value(), + returnValue: _i6.Future.value(), ) - as _i5.Future); + as _i6.Future); @override - _i5.Future> fetchPaginated( + _i6.Future> fetchPaginated( Uri? uri, { String? language, Duration? timeout = const Duration(seconds: 15), @@ -150,43 +171,227 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { [uri], {#language: language, #timeout: timeout}, ), - returnValue: _i5.Future>.value([]), + returnValue: _i6.Future>.value([]), ) - as _i5.Future>); + as _i6.Future>); @override - _i5.Future> post(Map? data, Uri? uri) => + _i6.Future> post(Map? data, Uri? uri) => (super.noSuchMethod( Invocation.method(#post, [data, uri]), - returnValue: _i5.Future>.value( + returnValue: _i6.Future>.value( {}, ), ) - as _i5.Future>); + as _i6.Future>); @override - _i5.Future> patch( + _i6.Future> patch( Map? data, Uri? uri, ) => (super.noSuchMethod( Invocation.method(#patch, [data, uri]), - returnValue: _i5.Future>.value( + returnValue: _i6.Future>.value( {}, ), ) - as _i5.Future>); + as _i6.Future>); @override - _i5.Future<_i3.Response> deleteRequest(String? url, int? id) => + _i6.Future<_i3.Response> deleteRequest(String? url, int? id) => (super.noSuchMethod( Invocation.method(#deleteRequest, [url, id]), - returnValue: _i5.Future<_i3.Response>.value( + returnValue: _i6.Future<_i3.Response>.value( _FakeResponse_3( this, Invocation.method(#deleteRequest, [url, id]), ), ), ) - as _i5.Future<_i3.Response>); + as _i6.Future<_i3.Response>); +} + +/// A class which mocks [UserProvider]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockUserProvider extends _i1.Mock implements _i7.UserProvider { + MockUserProvider() { + _i1.throwOnMissingStub(this); + } + + @override + _i8.ThemeMode get themeMode => + (super.noSuchMethod( + Invocation.getter(#themeMode), + returnValue: _i8.ThemeMode.system, + ) + as _i8.ThemeMode); + + @override + _i4.WgerBaseProvider get baseProvider => + (super.noSuchMethod( + Invocation.getter(#baseProvider), + returnValue: _FakeWgerBaseProvider_4( + this, + Invocation.getter(#baseProvider), + ), + ) + as _i4.WgerBaseProvider); + + @override + _i5.SharedPreferencesAsync get prefs => + (super.noSuchMethod( + Invocation.getter(#prefs), + returnValue: _FakeSharedPreferencesAsync_5( + this, + Invocation.getter(#prefs), + ), + ) + as _i5.SharedPreferencesAsync); + + @override + List<_i7.DashboardWidget> get dashboardWidgets => + (super.noSuchMethod( + Invocation.getter(#dashboardWidgets), + returnValue: <_i7.DashboardWidget>[], + ) + as List<_i7.DashboardWidget>); + + @override + List<_i7.DashboardWidget> get allDashboardWidgets => + (super.noSuchMethod( + Invocation.getter(#allDashboardWidgets), + returnValue: <_i7.DashboardWidget>[], + ) + as List<_i7.DashboardWidget>); + + @override + set themeMode(_i8.ThemeMode? value) => super.noSuchMethod( + Invocation.setter(#themeMode, value), + returnValueForMissingStub: null, + ); + + @override + set userLocale(_i9.Locale? value) => super.noSuchMethod( + Invocation.setter(#userLocale, value), + returnValueForMissingStub: null, + ); + + @override + set prefs(_i5.SharedPreferencesAsync? value) => super.noSuchMethod( + Invocation.setter(#prefs, value), + returnValueForMissingStub: null, + ); + + @override + set profile(_i10.Profile? value) => super.noSuchMethod( + Invocation.setter(#profile, value), + returnValueForMissingStub: null, + ); + + @override + bool get hasListeners => + (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) + as bool); + + @override + void clear() => super.noSuchMethod( + Invocation.method(#clear, []), + returnValueForMissingStub: null, + ); + + @override + bool isDashboardWidgetVisible(_i7.DashboardWidget? key) => + (super.noSuchMethod( + Invocation.method(#isDashboardWidgetVisible, [key]), + returnValue: false, + ) + as bool); + + @override + _i6.Future setDashboardWidgetVisible( + _i7.DashboardWidget? key, + bool? visible, + ) => + (super.noSuchMethod( + Invocation.method(#setDashboardWidgetVisible, [key, visible]), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + _i6.Future setDashboardOrder(int? oldIndex, int? newIndex) => + (super.noSuchMethod( + Invocation.method(#setDashboardOrder, [oldIndex, newIndex]), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + void setThemeMode(_i8.ThemeMode? mode) => super.noSuchMethod( + Invocation.method(#setThemeMode, [mode]), + returnValueForMissingStub: null, + ); + + @override + _i6.Future setUserLocale(_i9.Locale? locale) => + (super.noSuchMethod( + Invocation.method(#setUserLocale, [locale]), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + _i6.Future saveProfile() => + (super.noSuchMethod( + Invocation.method(#saveProfile, []), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + _i6.Future verifyEmail() => + (super.noSuchMethod( + Invocation.method(#verifyEmail, []), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + _i6.Future isMetric() => + (super.noSuchMethod( + Invocation.method(#isMetric, []), + returnValue: _i6.Future.value(false), + ) + as _i6.Future); + + @override + void addListener(_i9.VoidCallback? listener) => super.noSuchMethod( + Invocation.method(#addListener, [listener]), + returnValueForMissingStub: null, + ); + + @override + void removeListener(_i9.VoidCallback? listener) => super.noSuchMethod( + Invocation.method(#removeListener, [listener]), + returnValueForMissingStub: null, + ); + + @override + void dispose() => super.noSuchMethod( + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); + + @override + void notifyListeners() => super.noSuchMethod( + Invocation.method(#notifyListeners, []), + returnValueForMissingStub: null, + ); } diff --git a/test/user/provider_test.dart b/test/user/provider_test.dart index cc83fea6d..2187968a5 100644 --- a/test/user/provider_test.dart +++ b/test/user/provider_test.dart @@ -70,7 +70,7 @@ void main() { group('house keeping', () { test('should clear the profile list with clear()', () async { // arrange - await userProvider.fetchAndSetProfile(); + await userProvider.isMetric(); // assert expect(userProvider.profile, isNot(null)); @@ -87,7 +87,7 @@ void main() { group('profile', () { test('Loading the profile from the server works', () async { // arrange - await userProvider.fetchAndSetProfile(); + await userProvider.isMetric(); // assert expect(userProvider.profile!.username, 'admin'); @@ -98,7 +98,7 @@ void main() { test('Sending the verify email works', () async { // arrange - await userProvider.fetchAndSetProfile(); + await userProvider.isMetric(); await userProvider.verifyEmail(); // assert From 8fe43409497123da5daaed5d201f50ae7b69bf80 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Fri, 19 Jun 2026 15:17:59 +0200 Subject: [PATCH 03/22] Properly load and set the unit from the profile --- lib/models/workouts/log.dart | 4 +- .../helpers/routine_form_test_overrides.dart | 14 ++++- test/routine/models/log_test.dart | 21 ++++++- test/routine/routines_provider_test.dart | 59 +++++++++++++++++++ 4 files changed, 93 insertions(+), 5 deletions(-) diff --git a/lib/models/workouts/log.dart b/lib/models/workouts/log.dart index 18503fb29..291c41fcc 100644 --- a/lib/models/workouts/log.dart +++ b/lib/models/workouts/log.dart @@ -93,7 +93,9 @@ class Log { weight = setConfig.weight; weightTarget = setConfig.weight; - weightUnitId = setConfig.weightUnitId ?? WEIGHT_UNIT_KG; + // Fall back to the resolved unit object (set during routine hydration from + // the user's metric preference) when the config carries no explicit unit. + weightUnitId = setConfig.weightUnitId ?? setConfig.weightUnit?.id ?? WEIGHT_UNIT_KG; weightUnitObj = setConfig.weightUnit; repetitions = setConfig.repetitions; diff --git a/test/routine/helpers/routine_form_test_overrides.dart b/test/routine/helpers/routine_form_test_overrides.dart index 739d2110b..5d9cf6147 100644 --- a/test/routine/helpers/routine_form_test_overrides.dart +++ b/test/routine/helpers/routine_form_test_overrides.dart @@ -32,7 +32,7 @@ import 'package:wger/providers/workout_session_repository.dart'; import 'routine_form_test_overrides.mocks.dart'; export 'routine_form_test_overrides.mocks.dart' - show MockExerciseRepository, MockWorkoutSessionRepository; + show MockExerciseRepository, MockWorkoutSessionRepository, MockUserProfileRepository; @GenerateMocks([ExerciseRepository, WorkoutSessionRepository, UserProfileRepository]) /// Repository overrides for the two reference-data notifiers that @@ -47,6 +47,7 @@ export 'routine_form_test_overrides.mocks.dart' List exerciseAndSessionRepoOverrides({ MockExerciseRepository? exercise, MockWorkoutSessionRepository? session, + MockUserProfileRepository? userProfile, }) { final exerciseRepo = exercise ?? _emptyExerciseRepoMock(); final sessionRepo = session ?? _emptySessionRepoMock(); @@ -55,7 +56,9 @@ List exerciseAndSessionRepoOverrides({ workoutSessionRepositoryProvider.overrideWithValue(sessionRepo), // RoutinesRiverpod.build listens to the user profile to pick the default // weight unit; stub it so the real Drift-backed repo isn't pulled in. - userProfileRepositoryProvider.overrideWithValue(_emptyUserProfileRepoMock()), + // Defaults to a null (metric) profile; pass [userProfile] to exercise the + // imperial default-unit path. + userProfileRepositoryProvider.overrideWithValue(userProfile ?? _emptyUserProfileRepoMock()), ]; } @@ -90,10 +93,15 @@ MockWorkoutSessionRepository _emptySessionRepoMock() { List routineFormAmbientOverrides({ MockExerciseRepository? exercise, MockWorkoutSessionRepository? session, + MockUserProfileRepository? userProfile, List repetitionUnits = const [], List weightUnits = const [], }) => [ - ...exerciseAndSessionRepoOverrides(exercise: exercise, session: session), + ...exerciseAndSessionRepoOverrides( + exercise: exercise, + session: session, + userProfile: userProfile, + ), routineRepetitionUnitProvider.overrideWith( (ref) => Stream>.value(repetitionUnits), ), diff --git a/test/routine/models/log_test.dart b/test/routine/models/log_test.dart index c979b6ae4..f2b72c946 100644 --- a/test/routine/models/log_test.dart +++ b/test/routine/models/log_test.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (c) 2020, 2025 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -22,6 +22,7 @@ import 'package:wger/models/exercises/category.dart'; import 'package:wger/models/exercises/exercise.dart'; import 'package:wger/models/workouts/log.dart'; import 'package:wger/models/workouts/set_config_data.dart'; +import 'package:wger/models/workouts/weight_unit.dart'; void main() { group('Log.volume', () { @@ -178,6 +179,24 @@ void main() { expect(log.repetitionsUnitId, REP_UNIT_TILL_FAILURE_ID); }); + test('derives the unit ID from the resolved unit object when no explicit ID is set', () { + // Imperial users: routine hydration leaves weightUnitId null and only + // resolves the weightUnit object (lb) from the profile. The log must pick + // up lb for *both* the ID and the object + const lb = WeightUnit(id: WEIGHT_UNIT_LB, name: 'lb'); + final setConfig = SetConfigData( + exerciseId: 1, + slotEntryId: 1, + exercise: exercise, + weightUnit: lb, + ); + + final log = Log.fromSetConfigData(setConfig); + + expect(log.weightUnitId, WEIGHT_UNIT_LB); + expect(log.weightUnitObj, lb); + }); + test('copies weight and repetitions values', () { final setConfig = SetConfigData( exerciseId: 1, diff --git a/test/routine/routines_provider_test.dart b/test/routine/routines_provider_test.dart index 5a509bc8f..61f27d65e 100644 --- a/test/routine/routines_provider_test.dart +++ b/test/routine/routines_provider_test.dart @@ -22,15 +22,20 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; import 'package:wger/models/exercises/exercise.dart'; +import 'package:wger/models/user/user_profile.dart'; import 'package:wger/models/workouts/day.dart'; +import 'package:wger/models/workouts/day_data.dart'; import 'package:wger/models/workouts/log.dart'; import 'package:wger/models/workouts/routine.dart'; import 'package:wger/models/workouts/session.dart'; +import 'package:wger/models/workouts/set_config_data.dart'; import 'package:wger/models/workouts/slot.dart'; +import 'package:wger/models/workouts/slot_data.dart'; import 'package:wger/models/workouts/slot_entry.dart'; import 'package:wger/providers/exercises_notifier.dart'; import 'package:wger/providers/routines_notifier.dart'; import 'package:wger/providers/routines_repository.dart'; +import 'package:wger/providers/user_profile_notifier.dart'; import '../../test_data/exercises.dart'; import '../../test_data/routines.dart'; @@ -359,6 +364,60 @@ void main() { // Assert: `_fullFetchInFlight` collapses them into a single roundtrip. verify(mockRepo.fetchAndSetRoutineFullServer(101)).called(1); }); + + test('resolves the default weight unit from an imperial profile', () async { + // A set config without an explicit weight unit must inherit the unit + // implied by the profile: lb (id 2) for an imperial user, not kg. + overrideStreams(mockExerciseRepo); + final setConfig = SetConfigData( + exerciseId: 1, + slotEntryId: 1, + exercise: getTestExercises()[0], + // No weightUnit / weightUnitId: the server omits it, the default applies. + ); + final routine = Routine(id: 101, name: 'Test routine') + ..dayDataGym = [ + DayData( + iteration: 1, + date: DateTime(2024, 11, 1), + label: '', + day: Day(id: 1, routineId: 101, name: 'Test', order: 1), + slots: [ + SlotData(comment: '', isSuperset: false, exerciseIds: [1], setConfigs: [setConfig]), + ], + ), + ]; + when(mockRepo.fetchAndSetRoutineFullServer(101)).thenAnswer((_) async => routine); + + final imperialProfileRepo = MockUserProfileRepository(); + when( + imperialProfileRepo.watchDrift(), + ).thenAnswer((_) => Stream.value(UserProfile(id: 1, weightUnitStr: 'lb'))); + + final container = ProviderContainer.test( + overrides: [ + routinesRepositoryProvider.overrideWithValue(mockRepo), + ...routineFormAmbientOverrides( + exercise: mockExerciseRepo, + session: mockSessionRepo, + userProfile: imperialProfileRepo, + repetitionUnits: testRepetitionUnits, + weightUnits: testWeightUnits, + ), + ], + ); + + // fetchAndSetRoutineFull doesn't await the profile, so keep it alive and + // let its stream emit before hydration reads it (post-sync steady state). + container.listen(userProfileProvider, (_, _) {}); + await pumpEventQueue(); + final notifier = container.read(routinesRiverpodProvider.notifier); + final result = await notifier.fetchAndSetRoutineFull(101); + + // testWeightUnit2 has id 2 == WEIGHT_UNIT_LB. + final hydratedConfig = result.dayDataGym[0].slots[0].setConfigs[0]; + expect(hydratedConfig.weightUnit, testWeightUnit2); + }); }); group('routineHydration family', () { From fe6d0a59df10cf5bc3976cc3a5e011372df72649 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Thu, 30 Jul 2026 21:47:01 +0200 Subject: [PATCH 04/22] Default the weight unit from the profile for app-created entries and ad-hoc exercises --- lib/features/account/models/user_profile.dart | 4 ++ .../routines/models/set_config_data.g.dart | 52 +++++++++---------- lib/features/routines/models/slot_entry.dart | 5 +- .../providers/gym_state_notifier.dart | 13 +++++ .../routines/providers/routines_notifier.dart | 14 ++--- .../providers/routines_notifier.g.dart | 7 +-- test/core/helpers_test.dart | 6 ++- .../routine_form_test_overrides.mocks.dart | 24 +++------ .../models/slot_entry_model_test.dart | 7 +++ .../routines/providers/gym_state_test.dart | 52 +++++++++++++++++++ .../providers/routines_notifier_test.dart | 23 +++++++- .../routines_notifier_test.mocks.dart | 21 +++----- .../forms/routine_form_test.mocks.dart | 45 ++++++---------- 13 files changed, 166 insertions(+), 107 deletions(-) diff --git a/lib/features/account/models/user_profile.dart b/lib/features/account/models/user_profile.dart index 0bfce2413..dcb8d3455 100644 --- a/lib/features/account/models/user_profile.dart +++ b/lib/features/account/models/user_profile.dart @@ -17,6 +17,7 @@ */ import 'package:drift/drift.dart' as drift; +import 'package:wger/core/consts.dart'; import 'package:wger/database/powersync/database.dart'; /// The user's editable profile preferences. @@ -28,6 +29,9 @@ class UserProfile { bool get isMetric => weightUnitStr == 'kg'; + /// Weight unit implied by the metric preference: kg for metric users, lb otherwise. + int get defaultWeightUnitId => isMetric ? WEIGHT_UNIT_KG : WEIGHT_UNIT_LB; + /// Drift companion for local UPDATE writes routed through PowerSync. UserProfileTableCompanion toCompanion() { return UserProfileTableCompanion( diff --git a/lib/features/routines/models/set_config_data.g.dart b/lib/features/routines/models/set_config_data.g.dart index 5fbec3fa7..eba87c76a 100644 --- a/lib/features/routines/models/set_config_data.g.dart +++ b/lib/features/routines/models/set_config_data.g.dart @@ -35,9 +35,7 @@ SetConfigData _$SetConfigDataFromJson(Map json) { return SetConfigData( exerciseId: (json['exercise'] as num).toInt(), slotEntryId: (json['slot_entry_id'] as num).toInt(), - type: - $enumDecodeNullable(_$SlotEntryTypeEnumMap, json['type']) ?? - SlotEntryType.normal, + type: $enumDecodeNullable(_$SlotEntryTypeEnumMap, json['type']) ?? SlotEntryType.normal, nrOfSets: json['sets'] as num?, maxNrOfSets: json['max_sets'] as num?, weight: stringToNumNull(json['weight'] as String?), @@ -46,8 +44,7 @@ SetConfigData _$SetConfigDataFromJson(Map json) { weightRounding: stringToNumNull(json['weight_rounding'] as String?), repetitions: stringToNumNull(json['repetitions'] as String?), maxRepetitions: stringToNumNull(json['max_repetitions'] as String?), - repetitionsUnitId: - (json['repetitions_unit'] as num?)?.toInt() ?? REP_UNIT_REPETITIONS_ID, + repetitionsUnitId: (json['repetitions_unit'] as num?)?.toInt() ?? REP_UNIT_REPETITIONS_ID, repetitionsRounding: stringToNumNull( json['repetitions_rounding'] as String?, ), @@ -61,29 +58,28 @@ SetConfigData _$SetConfigDataFromJson(Map json) { ); } -Map _$SetConfigDataToJson(SetConfigData instance) => - { - 'exercise': instance.exerciseId, - 'slot_entry_id': instance.slotEntryId, - 'type': _$SlotEntryTypeEnumMap[instance.type]!, - 'text_repr': instance.textRepr, - 'sets': instance.nrOfSets, - 'max_sets': instance.maxNrOfSets, - 'weight': instance.weight, - 'max_weight': instance.maxWeight, - 'weight_unit': instance.weightUnitId, - 'weight_rounding': instance.weightRounding, - 'repetitions': instance.repetitions, - 'max_repetitions': instance.maxRepetitions, - 'repetitions_unit': instance.repetitionsUnitId, - 'repetitions_rounding': instance.repetitionsRounding, - 'rir': instance.rir, - 'max_rir': instance.maxRir, - 'rpe': instance.rpe, - 'rest': instance.restTime, - 'max_rest': instance.maxRestTime, - 'comment': instance.comment, - }; +Map _$SetConfigDataToJson(SetConfigData instance) => { + 'exercise': instance.exerciseId, + 'slot_entry_id': instance.slotEntryId, + 'type': _$SlotEntryTypeEnumMap[instance.type]!, + 'text_repr': instance.textRepr, + 'sets': instance.nrOfSets, + 'max_sets': instance.maxNrOfSets, + 'weight': instance.weight, + 'max_weight': instance.maxWeight, + 'weight_unit': instance.weightUnitId, + 'weight_rounding': instance.weightRounding, + 'repetitions': instance.repetitions, + 'max_repetitions': instance.maxRepetitions, + 'repetitions_unit': instance.repetitionsUnitId, + 'repetitions_rounding': instance.repetitionsRounding, + 'rir': instance.rir, + 'max_rir': instance.maxRir, + 'rpe': instance.rpe, + 'rest': instance.restTime, + 'max_rest': instance.maxRestTime, + 'comment': instance.comment, +}; const _$SlotEntryTypeEnumMap = { SlotEntryType.normal: 'normal', diff --git a/lib/features/routines/models/slot_entry.dart b/lib/features/routines/models/slot_entry.dart index 67abb8952..220924cd4 100644 --- a/lib/features/routines/models/slot_entry.dart +++ b/lib/features/routines/models/slot_entry.dart @@ -130,6 +130,7 @@ class SlotEntry { @JsonKey(required: false, name: 'max_repetitions_configs', includeToJson: false) late List maxRepetitionsConfigs = []; + /// Null means no explicit unit; the user's profile default (kg/lb) applies. @JsonKey(required: true, name: 'weight_unit') late int? weightUnitId; @@ -210,7 +211,7 @@ class SlotEntry { int? order, SlotEntryType? type, required Exercise exercise, - int? weightUnitId, + this.weightUnitId, this.weightRounding, int? repetitionUnitId, this.repetitionRounding, @@ -221,8 +222,6 @@ class SlotEntry { this.type = type ?? SlotEntryType.normal; exerciseObj = exercise; exerciseId = exercise.id; - this.weightUnitId = weightUnitId ?? WEIGHT_UNIT_KG; - this.repetitionUnitId = repetitionUnitId ?? REP_UNIT_REPETITIONS_ID; } diff --git a/lib/features/routines/providers/gym_state_notifier.dart b/lib/features/routines/providers/gym_state_notifier.dart index 5dc514e00..ae5ed2594 100644 --- a/lib/features/routines/providers/gym_state_notifier.dart +++ b/lib/features/routines/providers/gym_state_notifier.dart @@ -20,13 +20,17 @@ import 'package:clock/clock.dart'; import 'package:collection/collection.dart'; import 'package:logging/logging.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; +import 'package:wger/core/consts.dart'; import 'package:wger/core/shared_preferences.dart'; +import 'package:wger/features/account/providers/user_profile_notifier.dart'; import 'package:wger/features/exercises/models/exercise.dart'; import 'package:wger/features/routines/models/log.dart'; import 'package:wger/features/routines/models/routine.dart'; import 'package:wger/features/routines/models/set_config_data.dart'; +import 'package:wger/features/routines/models/weight_unit.dart'; import 'package:wger/features/routines/providers/gym_log_notifier.dart'; import 'package:wger/features/routines/providers/gym_state.dart'; +import 'package:wger/features/routines/providers/routines_notifier.dart'; part 'gym_state_notifier.g.dart'; @@ -431,6 +435,14 @@ class GymStateNotifier extends _$GymStateNotifier { String pageEntryUUID, { required Exercise newExercise, }) { + // Ad-hoc set configs bypass routine hydration, so resolve the profile + // default weight unit (kg/lb) here; the log draft picks it up from the + // unit object. + final profile = ref.read(userProfileProvider).value; + final weightUnits = ref.read(routineWeightUnitProvider).value ?? const []; + final defaultWeightUnitId = profile?.defaultWeightUnitId ?? WEIGHT_UNIT_KG; + final defaultWeightUnit = weightUnits.firstWhereOrNull((u) => u.id == defaultWeightUnitId); + final List pages = []; for (final page in state.pages) { pages.add(page); @@ -450,6 +462,7 @@ class GymStateNotifier extends _$GymStateNotifier { exerciseId: newExercise.id, exercise: newExercise, slotEntryId: setConfigData.slotEntryId, + weightUnit: defaultWeightUnit, ), ), ); diff --git a/lib/features/routines/providers/routines_notifier.dart b/lib/features/routines/providers/routines_notifier.dart index 678dfb022..92c65b9d8 100644 --- a/lib/features/routines/providers/routines_notifier.dart +++ b/lib/features/routines/providers/routines_notifier.dart @@ -147,10 +147,10 @@ class RoutinesRiverpod extends _$RoutinesRiverpod { final weightUnits = ref.read(routineWeightUnitProvider).value ?? const []; final profile = ref.read(userProfileProvider).value; - // Used for set configs that don't carry an explicit weight unit: kg for - // metric users, lb otherwise. Defaults to kg while the profile is still - // syncing (the profile listener re-hydrates once it arrives). - final defaultWeightUnitId = (profile?.isMetric ?? true) ? WEIGHT_UNIT_KG : WEIGHT_UNIT_LB; + // Used for slot entries and set configs that don't carry an explicit + // weight unit. Defaults to kg while the profile is still syncing (the + // profile listener re-hydrates once it arrives). + final defaultWeightUnitId = profile?.defaultWeightUnitId ?? WEIGHT_UNIT_KG; final defaultWeightUnit = weightUnits.firstWhereOrNull((u) => u.id == defaultWeightUnitId); routine.sessions = sessions.where((s) => s.routineId == routine.id).toList(); @@ -180,9 +180,9 @@ class RoutinesRiverpod extends _$RoutinesRiverpod { entry.repetitionUnitObj = repetitionUnits.firstWhereOrNull( (u) => u.id == entry.repetitionUnitId, ); - entry.weightUnitObj = weightUnits.firstWhereOrNull( - (u) => u.id == entry.weightUnitId, - ); + entry.weightUnitObj = entry.weightUnitId != null + ? weightUnits.firstWhereOrNull((u) => u.id == entry.weightUnitId) + : defaultWeightUnit; } } } diff --git a/lib/features/routines/providers/routines_notifier.g.dart b/lib/features/routines/providers/routines_notifier.g.dart index 79d499825..bd77065ea 100644 --- a/lib/features/routines/providers/routines_notifier.g.dart +++ b/lib/features/routines/providers/routines_notifier.g.dart @@ -58,9 +58,7 @@ final class RoutineRepetitionUnitProvider List, Stream> > - with - $FutureModifier>, - $StreamProvider> { + with $FutureModifier>, $StreamProvider> { RoutineRepetitionUnitProvider._() : super( from: null, @@ -87,8 +85,7 @@ final class RoutineRepetitionUnitProvider } } -String _$routineRepetitionUnitHash() => - r'de9d2c5b6e2f4df761165d6899353b3fb2cee8c6'; +String _$routineRepetitionUnitHash() => r'de9d2c5b6e2f4df761165d6899353b3fb2cee8c6'; @ProviderFor(RoutinesRiverpod) final routinesRiverpodProvider = RoutinesRiverpodProvider._(); diff --git a/test/core/helpers_test.dart b/test/core/helpers_test.dart index 9f62d7641..5e28eb692 100644 --- a/test/core/helpers_test.dart +++ b/test/core/helpers_test.dart @@ -299,8 +299,10 @@ void main() { final messages = records.where((r) => r.level == Level.INFO).map((r) => r.message); expect( messages, - contains('PowerSync probe: https://ps.example.com/probes/liveness failed: ' - 'ClientException: Connection refused'), + contains( + 'PowerSync probe: https://ps.example.com/probes/liveness failed: ' + 'ClientException: Connection refused', + ), ); expect( messages, diff --git a/test/features/routines/helpers/routine_form_test_overrides.mocks.dart b/test/features/routines/helpers/routine_form_test_overrides.mocks.dart index 24cedc1aa..a3bf6e59e 100644 --- a/test/features/routines/helpers/routine_form_test_overrides.mocks.dart +++ b/test/features/routines/helpers/routine_form_test_overrides.mocks.dart @@ -9,19 +9,15 @@ import 'package:mockito/mockito.dart' as _i1; import 'package:wger/core/language.dart' as _i11; import 'package:wger/core/search_options.dart' as _i5; import 'package:wger/features/account/models/user_profile.dart' as _i14; -import 'package:wger/features/account/providers/user_profile_repository.dart' - as _i13; +import 'package:wger/features/account/providers/user_profile_repository.dart' as _i13; import 'package:wger/features/exercises/models/category.dart' as _i7; import 'package:wger/features/exercises/models/equipment.dart' as _i9; import 'package:wger/features/exercises/models/exercise_filters.dart' as _i6; import 'package:wger/features/exercises/models/muscle.dart' as _i10; -import 'package:wger/features/exercises/providers/exercise_repository.dart' - as _i3; -import 'package:wger/features/exercises/providers/exercises_notifier.dart' - as _i8; +import 'package:wger/features/exercises/providers/exercise_repository.dart' as _i3; +import 'package:wger/features/exercises/providers/exercises_notifier.dart' as _i8; import 'package:wger/features/routines/models/session.dart' as _i2; -import 'package:wger/features/routines/providers/workout_session_repository.dart' - as _i12; +import 'package:wger/features/routines/providers/workout_session_repository.dart' as _i12; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -38,8 +34,7 @@ import 'package:wger/features/routines/providers/workout_session_repository.dart // ignore_for_file: subtype_of_sealed_class // ignore_for_file: invalid_use_of_internal_member -class _FakeWorkoutSession_0 extends _i1.SmartFake - implements _i2.WorkoutSession { +class _FakeWorkoutSession_0 extends _i1.SmartFake implements _i2.WorkoutSession { _FakeWorkoutSession_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } @@ -47,8 +42,7 @@ class _FakeWorkoutSession_0 extends _i1.SmartFake /// A class which mocks [ExerciseRepository]. /// /// See the documentation for Mockito's code generation for more information. -class MockExerciseRepository extends _i1.Mock - implements _i3.ExerciseRepository { +class MockExerciseRepository extends _i1.Mock implements _i3.ExerciseRepository { MockExerciseRepository() { _i1.throwOnMissingStub(this); } @@ -136,8 +130,7 @@ class MockExerciseRepository extends _i1.Mock /// A class which mocks [WorkoutSessionRepository]. /// /// See the documentation for Mockito's code generation for more information. -class MockWorkoutSessionRepository extends _i1.Mock - implements _i12.WorkoutSessionRepository { +class MockWorkoutSessionRepository extends _i1.Mock implements _i12.WorkoutSessionRepository { MockWorkoutSessionRepository() { _i1.throwOnMissingStub(this); } @@ -185,8 +178,7 @@ class MockWorkoutSessionRepository extends _i1.Mock /// A class which mocks [UserProfileRepository]. /// /// See the documentation for Mockito's code generation for more information. -class MockUserProfileRepository extends _i1.Mock - implements _i13.UserProfileRepository { +class MockUserProfileRepository extends _i1.Mock implements _i13.UserProfileRepository { MockUserProfileRepository() { _i1.throwOnMissingStub(this); } diff --git a/test/features/routines/models/slot_entry_model_test.dart b/test/features/routines/models/slot_entry_model_test.dart index dc27681ed..48a89ccb6 100644 --- a/test/features/routines/models/slot_entry_model_test.dart +++ b/test/features/routines/models/slot_entry_model_test.dart @@ -52,6 +52,13 @@ void main() { expect(slotEntry.maxRestTimeConfigs.length, 1); }); + test('withData leaves the weight unit unset so the profile default applies', () { + final slotEntry = SlotEntry.withData(slotId: 1, exercise: testSquats); + + expect(slotEntry.weightUnitId, isNull); + expect(slotEntry.weightUnitObj, isNull); + }); + test('Checks that an empty model correctly calculates hasProgressionRules', () { final slotEntry = SlotEntry.empty(); expect(slotEntry.hasProgressionRules, false); diff --git a/test/features/routines/providers/gym_state_test.dart b/test/features/routines/providers/gym_state_test.dart index ea27b573d..72bf05eb5 100644 --- a/test/features/routines/providers/gym_state_test.dart +++ b/test/features/routines/providers/gym_state_test.dart @@ -20,14 +20,20 @@ import 'package:clock/clock.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_test/flutter_test.dart'; +import 'package:mockito/mockito.dart'; import 'package:shared_preferences_platform_interface/in_memory_shared_preferences_async.dart'; import 'package:shared_preferences_platform_interface/shared_preferences_async_platform_interface.dart'; import 'package:wger/core/shared_preferences.dart'; +import 'package:wger/features/account/models/user_profile.dart'; +import 'package:wger/features/account/providers/user_profile_notifier.dart'; +import 'package:wger/features/account/providers/user_profile_repository.dart'; import 'package:wger/features/routines/providers/gym_state.dart'; import 'package:wger/features/routines/providers/gym_state_notifier.dart'; +import 'package:wger/features/routines/providers/routines_notifier.dart'; import '../../../../test_data/exercises.dart'; import '../../../../test_data/routines.dart'; +import '../helpers/routine_form_test_overrides.dart'; void main() { late GymStateNotifier notifier; @@ -171,6 +177,52 @@ void main() { }); }); + group('GymStateNotifier.addExerciseAfterPage', () { + test('Stamps the profile default weight unit on the ad-hoc set configs', () async { + // Ad-hoc exercises bypass routine hydration, so the notifier itself + // resolves the profile default: lb (id 2) for an imperial user. + final profileRepo = MockUserProfileRepository(); + when( + profileRepo.watchDrift(), + ).thenAnswer((_) => Stream.value(UserProfile(id: 1, weightUnitStr: 'lb'))); + + final imperialContainer = ProviderContainer.test( + overrides: [ + userProfileRepositoryProvider.overrideWithValue(profileRepo), + routineWeightUnitProvider.overrideWith((ref) => Stream.value(testWeightUnits)), + ], + ); + // Let both streams emit before the notifier reads them (in the app the + // dashboard keeps them alive long before gym mode starts). + imperialContainer.listen(userProfileProvider, (_, _) {}); + imperialContainer.listen(routineWeightUnitProvider, (_, _) {}); + await pumpEventQueue(); + + final imperialNotifier = imperialContainer.read(gymStateProvider.notifier); + imperialNotifier.state = imperialNotifier.state.copyWith( + showExercisePages: true, + showTimerPages: true, + dayId: 1, + iteration: 1, + routine: getTestRoutine(), + ); + imperialNotifier.calculatePages(); + final setPage = imperialNotifier.state.pages.firstWhere((p) => p.type == PageType.set); + + imperialNotifier.addExerciseAfterPage(setPage.uuid, newExercise: testSquats); + + // recalculateIndices copies the page objects, so look the page up by uuid. + final pages = imperialNotifier.state.pages; + final newPage = pages[pages.indexWhere((p) => p.uuid == setPage.uuid) + 1]; + expect(newPage.slotPages, isNotEmpty); + for (final slotPage in newPage.slotPages) { + // testWeightUnit2 has id 2 == WEIGHT_UNIT_LB. + expect(slotPage.setConfigData!.weightUnit, testWeightUnit2); + expect(slotPage.setConfigData!.weightUnitId, isNull); + } + }); + }); + group('GymStateNotifier.calculatePages', () { test( 'Correctly generates pages - exercise and timer', diff --git a/test/features/routines/providers/routines_notifier_test.dart b/test/features/routines/providers/routines_notifier_test.dart index 184e3736a..2aa976d3c 100644 --- a/test/features/routines/providers/routines_notifier_test.dart +++ b/test/features/routines/providers/routines_notifier_test.dart @@ -366,8 +366,8 @@ void main() { }); test('resolves the default weight unit from an imperial profile', () async { - // A set config without an explicit weight unit must inherit the unit - // implied by the profile: lb (id 2) for an imperial user, not kg. + // A slot entry or set config without an explicit weight unit must inherit + // the unit implied by the profile: lb (id 2) for an imperial user, not kg. overrideStreams(mockExerciseRepo); final setConfig = SetConfigData( exerciseId: 1, @@ -376,6 +376,23 @@ void main() { // No weightUnit / weightUnitId: the server omits it, the default applies. ); final routine = Routine(id: 101, name: 'Test routine') + ..days = [ + Day(id: 1, routineId: 101, name: 'Test', order: 1) + ..slots = [ + Slot.withData(id: 1, day: 1, order: 1) + ..entries.add( + SlotEntry( + id: 1, + slotId: 1, + exerciseId: 1, + repetitionUnitId: 1, + repetitionRounding: null, + weightUnitId: null, + weightRounding: null, + ), + ), + ], + ] ..dayDataGym = [ DayData( iteration: 1, @@ -417,6 +434,8 @@ void main() { // testWeightUnit2 has id 2 == WEIGHT_UNIT_LB. final hydratedConfig = result.dayDataGym[0].slots[0].setConfigs[0]; expect(hydratedConfig.weightUnit, testWeightUnit2); + final hydratedEntry = result.days[0].slots[0].entries[0]; + expect(hydratedEntry.weightUnitObj, testWeightUnit2); }); }); diff --git a/test/features/routines/providers/routines_notifier_test.mocks.dart b/test/features/routines/providers/routines_notifier_test.mocks.dart index bddf82544..f4e84bafe 100644 --- a/test/features/routines/providers/routines_notifier_test.mocks.dart +++ b/test/features/routines/providers/routines_notifier_test.mocks.dart @@ -13,8 +13,7 @@ import 'package:wger/features/routines/models/routine.dart' as _i2; import 'package:wger/features/routines/models/slot.dart' as _i4; import 'package:wger/features/routines/models/slot_entry.dart' as _i5; import 'package:wger/features/routines/models/weight_unit.dart' as _i9; -import 'package:wger/features/routines/providers/routines_repository.dart' - as _i7; +import 'package:wger/features/routines/providers/routines_repository.dart' as _i7; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -32,35 +31,29 @@ import 'package:wger/features/routines/providers/routines_repository.dart' // ignore_for_file: invalid_use_of_internal_member class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine { - _FakeRoutine_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeDay_1 extends _i1.SmartFake implements _i3.Day { - _FakeDay_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeDay_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeSlot_2 extends _i1.SmartFake implements _i4.Slot { - _FakeSlot_2(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeSlot_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeSlotEntry_3 extends _i1.SmartFake implements _i5.SlotEntry { - _FakeSlotEntry_3(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeSlotEntry_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeBaseConfig_4 extends _i1.SmartFake implements _i6.BaseConfig { - _FakeBaseConfig_4(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeBaseConfig_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } /// A class which mocks [RoutinesRepository]. /// /// See the documentation for Mockito's code generation for more information. -class MockRoutinesRepository extends _i1.Mock - implements _i7.RoutinesRepository { +class MockRoutinesRepository extends _i1.Mock implements _i7.RoutinesRepository { MockRoutinesRepository() { _i1.throwOnMissingStub(this); } diff --git a/test/features/routines/widgets/forms/routine_form_test.mocks.dart b/test/features/routines/widgets/forms/routine_form_test.mocks.dart index 2552aff8b..fd307b5ab 100644 --- a/test/features/routines/widgets/forms/routine_form_test.mocks.dart +++ b/test/features/routines/widgets/forms/routine_form_test.mocks.dart @@ -9,16 +9,13 @@ import 'package:mockito/mockito.dart' as _i1; import 'package:wger/core/language.dart' as _i20; import 'package:wger/core/search_options.dart' as _i14; import 'package:wger/features/account/models/user_profile.dart' as _i22; -import 'package:wger/features/account/providers/user_profile_repository.dart' - as _i21; +import 'package:wger/features/account/providers/user_profile_repository.dart' as _i21; import 'package:wger/features/exercises/models/category.dart' as _i16; import 'package:wger/features/exercises/models/equipment.dart' as _i18; import 'package:wger/features/exercises/models/exercise_filters.dart' as _i15; import 'package:wger/features/exercises/models/muscle.dart' as _i19; -import 'package:wger/features/exercises/providers/exercise_repository.dart' - as _i13; -import 'package:wger/features/exercises/providers/exercises_notifier.dart' - as _i17; +import 'package:wger/features/exercises/providers/exercise_repository.dart' as _i13; +import 'package:wger/features/exercises/providers/exercises_notifier.dart' as _i17; import 'package:wger/features/routines/models/base_config.dart' as _i6; import 'package:wger/features/routines/models/day.dart' as _i3; import 'package:wger/features/routines/models/repetition_unit.dart' as _i11; @@ -27,10 +24,8 @@ import 'package:wger/features/routines/models/session.dart' as _i7; import 'package:wger/features/routines/models/slot.dart' as _i4; import 'package:wger/features/routines/models/slot_entry.dart' as _i5; import 'package:wger/features/routines/models/weight_unit.dart' as _i10; -import 'package:wger/features/routines/providers/routines_repository.dart' - as _i8; -import 'package:wger/features/routines/providers/workout_session_repository.dart' - as _i12; +import 'package:wger/features/routines/providers/routines_repository.dart' as _i8; +import 'package:wger/features/routines/providers/workout_session_repository.dart' as _i12; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -48,32 +43,26 @@ import 'package:wger/features/routines/providers/workout_session_repository.dart // ignore_for_file: invalid_use_of_internal_member class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine { - _FakeRoutine_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeDay_1 extends _i1.SmartFake implements _i3.Day { - _FakeDay_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeDay_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeSlot_2 extends _i1.SmartFake implements _i4.Slot { - _FakeSlot_2(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeSlot_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeSlotEntry_3 extends _i1.SmartFake implements _i5.SlotEntry { - _FakeSlotEntry_3(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeSlotEntry_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeBaseConfig_4 extends _i1.SmartFake implements _i6.BaseConfig { - _FakeBaseConfig_4(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeBaseConfig_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } -class _FakeWorkoutSession_5 extends _i1.SmartFake - implements _i7.WorkoutSession { +class _FakeWorkoutSession_5 extends _i1.SmartFake implements _i7.WorkoutSession { _FakeWorkoutSession_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } @@ -81,8 +70,7 @@ class _FakeWorkoutSession_5 extends _i1.SmartFake /// A class which mocks [RoutinesRepository]. /// /// See the documentation for Mockito's code generation for more information. -class MockRoutinesRepository extends _i1.Mock - implements _i8.RoutinesRepository { +class MockRoutinesRepository extends _i1.Mock implements _i8.RoutinesRepository { MockRoutinesRepository() { _i1.throwOnMissingStub(this); } @@ -300,8 +288,7 @@ class MockRoutinesRepository extends _i1.Mock /// A class which mocks [WorkoutSessionRepository]. /// /// See the documentation for Mockito's code generation for more information. -class MockWorkoutSessionRepository extends _i1.Mock - implements _i12.WorkoutSessionRepository { +class MockWorkoutSessionRepository extends _i1.Mock implements _i12.WorkoutSessionRepository { MockWorkoutSessionRepository() { _i1.throwOnMissingStub(this); } @@ -349,8 +336,7 @@ class MockWorkoutSessionRepository extends _i1.Mock /// A class which mocks [ExerciseRepository]. /// /// See the documentation for Mockito's code generation for more information. -class MockExerciseRepository extends _i1.Mock - implements _i13.ExerciseRepository { +class MockExerciseRepository extends _i1.Mock implements _i13.ExerciseRepository { MockExerciseRepository() { _i1.throwOnMissingStub(this); } @@ -438,8 +424,7 @@ class MockExerciseRepository extends _i1.Mock /// A class which mocks [UserProfileRepository]. /// /// See the documentation for Mockito's code generation for more information. -class MockUserProfileRepository extends _i1.Mock - implements _i21.UserProfileRepository { +class MockUserProfileRepository extends _i1.Mock implements _i21.UserProfileRepository { MockUserProfileRepository() { _i1.throwOnMissingStub(this); } From 88f72a64bd7c32fa11036b2f06a45a6385c3fbd8 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Thu, 30 Jul 2026 21:50:41 +0200 Subject: [PATCH 05/22] Fix the unit dropdowns in the slot entry form discarding the selection --- .../routines/widgets/forms/slot_entry.dart | 10 ++-------- .../widgets/forms/slot_entry_form_test.dart | 14 +++++++++++++- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/lib/features/routines/widgets/forms/slot_entry.dart b/lib/features/routines/widgets/forms/slot_entry.dart index e03269f0c..dceebe940 100644 --- a/lib/features/routines/widgets/forms/slot_entry.dart +++ b/lib/features/routines/widgets/forms/slot_entry.dart @@ -225,10 +225,7 @@ class _SlotEntryFormState extends ConsumerState { if (!widget.simpleMode) WeightUnitInputWidget( widget.entry.weightUnitObj, - onChanged: (value) { - widget.entry.weightUnitObj = null; - widget.entry.weightUnitId = null; - }, + onChanged: (value) => widget.entry.weightUnit = value, ), Row( spacing: 10, @@ -259,10 +256,7 @@ class _SlotEntryFormState extends ConsumerState { if (!widget.simpleMode) RepetitionUnitInputWidget( widget.entry.repetitionUnitObj, - onChanged: (value) { - widget.entry.repetitionUnitObj = null; - widget.entry.repetitionUnitId = null; - }, + onChanged: (value) => widget.entry.repetitionUnit = value, ), Row( spacing: 10, diff --git a/test/features/routines/widgets/forms/slot_entry_form_test.dart b/test/features/routines/widgets/forms/slot_entry_form_test.dart index 47307d1d5..a9d1dd2ac 100644 --- a/test/features/routines/widgets/forms/slot_entry_form_test.dart +++ b/test/features/routines/widgets/forms/slot_entry_form_test.dart @@ -129,6 +129,16 @@ void main() { await tester.tap(find.byKey(const ValueKey('slot-entry-type-option-myo')), warnIfMissed: false); await tester.pumpAndSettle(); + // Set the units (select by name, the item keys collide between the dropdowns) + await tester.tap(find.byType(WeightUnitInputWidget)); + await tester.pumpAndSettle(); + await tester.tap(find.text(testWeightUnit2.name).last, warnIfMissed: false); + await tester.pumpAndSettle(); + await tester.tap(find.byType(RepetitionUnitInputWidget)); + await tester.pumpAndSettle(); + await tester.tap(find.text(testRepetitionUnit2.name).last, warnIfMissed: false); + await tester.pumpAndSettle(); + await tester.tap(find.byKey(const ValueKey(SUBMIT_BUTTON_KEY_NAME))); await tester.pumpAndSettle(); @@ -139,7 +149,9 @@ void main() { .having((d) => d.id, 'id', null) .having((d) => d.slotId, 'slotId', 1) .having((d) => d.order, 'order', 1) - .having((d) => d.type, 'type', SlotEntryType.myo), + .having((d) => d.type, 'type', SlotEntryType.myo) + .having((d) => d.weightUnitId, 'weightUnitId', testWeightUnit2.id) + .having((d) => d.repetitionUnitId, 'repetitionUnitId', testRepetitionUnit2.id), ), ), ); From c334ce6695f3addafdac8078d5c735c39d918858 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Thu, 30 Jul 2026 22:15:44 +0200 Subject: [PATCH 06/22] Wait for the user profile before hydrating a routine --- .../providers/gym_state_notifier.g.dart | 2 +- .../routines/providers/routines_notifier.dart | 1 + .../providers/routines_notifier.g.dart | 2 +- .../providers/routines_notifier_test.dart | 67 +++++++++++++++++-- .../routines/screens/gym_mode_test.dart | 5 ++ .../routines/screens/gym_mode_test.mocks.dart | 28 ++++++++ 6 files changed, 98 insertions(+), 7 deletions(-) diff --git a/lib/features/routines/providers/gym_state_notifier.g.dart b/lib/features/routines/providers/gym_state_notifier.g.dart index bf1475bd2..87afe3caf 100644 --- a/lib/features/routines/providers/gym_state_notifier.g.dart +++ b/lib/features/routines/providers/gym_state_notifier.g.dart @@ -40,7 +40,7 @@ final class GymStateNotifierProvider extends $NotifierProvider r'53db98cc8dacabe415f9986e8fae3fa745965c99'; +String _$gymStateNotifierHash() => r'018852d495cd23fd0f765591a02b9369764c2161'; abstract class _$GymStateNotifier extends $Notifier { GymModeState build(); diff --git a/lib/features/routines/providers/routines_notifier.dart b/lib/features/routines/providers/routines_notifier.dart index 92c65b9d8..56b8d25cd 100644 --- a/lib/features/routines/providers/routines_notifier.dart +++ b/lib/features/routines/providers/routines_notifier.dart @@ -272,6 +272,7 @@ class RoutinesRiverpod extends _$RoutinesRiverpod { await ref.awaitFirstValue(routineRepetitionUnitProvider); await ref.awaitFirstValue(routineWeightUnitProvider); await ref.awaitFirstValue(workoutSessionProvider); + await ref.awaitFirstValue(userProfileProvider); final routine = await repo.fetchAndSetRoutineFullServer(routineId); _hydrateRoutine(routine); diff --git a/lib/features/routines/providers/routines_notifier.g.dart b/lib/features/routines/providers/routines_notifier.g.dart index bd77065ea..81bf0f5f8 100644 --- a/lib/features/routines/providers/routines_notifier.g.dart +++ b/lib/features/routines/providers/routines_notifier.g.dart @@ -111,7 +111,7 @@ final class RoutinesRiverpodProvider RoutinesRiverpod create() => RoutinesRiverpod(); } -String _$routinesRiverpodHash() => r'd5dfa41474112d113731898dc0edfd5c9ff8538a'; +String _$routinesRiverpodHash() => r'3f627206b93257ff84e54e6029a1e3dab6a43418'; abstract class _$RoutinesRiverpod extends $StreamNotifier { Stream build(); diff --git a/test/features/routines/providers/routines_notifier_test.dart b/test/features/routines/providers/routines_notifier_test.dart index 2aa976d3c..8399cfe76 100644 --- a/test/features/routines/providers/routines_notifier_test.dart +++ b/test/features/routines/providers/routines_notifier_test.dart @@ -16,13 +16,14 @@ * along with this program. If not, see . */ +import 'dart:async'; + import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_riverpod/misc.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; import 'package:wger/features/account/models/user_profile.dart'; -import 'package:wger/features/account/providers/user_profile_notifier.dart'; import 'package:wger/features/exercises/models/exercise.dart'; import 'package:wger/features/exercises/providers/exercises_notifier.dart'; import 'package:wger/features/routines/models/day.dart'; @@ -424,10 +425,6 @@ void main() { ], ); - // fetchAndSetRoutineFull doesn't await the profile, so keep it alive and - // let its stream emit before hydration reads it (post-sync steady state). - container.listen(userProfileProvider, (_, _) {}); - await pumpEventQueue(); final notifier = container.read(routinesRiverpodProvider.notifier); final result = await notifier.fetchAndSetRoutineFull(101); @@ -437,6 +434,66 @@ void main() { final hydratedEntry = result.days[0].slots[0].entries[0]; expect(hydratedEntry.weightUnitObj, testWeightUnit2); }); + + test('waits for the profile before hydrating and re-hydrates when it changes', () async { + overrideStreams(mockExerciseRepo); + final setConfig = SetConfigData( + exerciseId: 1, + slotEntryId: 1, + exercise: getTestExercises()[0], + ); + final routine = Routine(id: 101, name: 'Test routine') + ..dayDataGym = [ + DayData( + iteration: 1, + date: DateTime(2024, 11, 1), + label: '', + day: Day(id: 1, routineId: 101, name: 'Test', order: 1), + slots: [ + SlotData(comment: '', isSuperset: false, exerciseIds: [1], setConfigs: [setConfig]), + ], + ), + ]; + when(mockRepo.fetchAndSetRoutineFullServer(101)).thenAnswer((_) async => routine); + + final profileController = StreamController(); + addTearDown(profileController.close); + final profileRepo = MockUserProfileRepository(); + when(profileRepo.watchDrift()).thenAnswer((_) => profileController.stream); + + final container = ProviderContainer.test( + overrides: [ + routinesRepositoryProvider.overrideWithValue(mockRepo), + ...routineFormAmbientOverrides( + exercise: mockExerciseRepo, + session: mockSessionRepo, + userProfile: profileRepo, + repetitionUnits: testRepetitionUnits, + weightUnits: testWeightUnits, + ), + ], + ); + container.listen(routinesRiverpodProvider, (_, _) {}); + + // The fetch must park on the profile instead of hydrating with the kg + // fallback while the profile row hasn't synced yet. Snapshot the unit + // the moment the fetch resolves: later re-hydration mutates the same + // routine instance and would mask a too-early completion. + final notifier = container.read(routinesRiverpodProvider.notifier); + final unitAtFetchCompletion = notifier + .fetchAndSetRoutineFull(101) + .then((r) => r.dayDataGym[0].slots[0].setConfigs[0].weightUnit); + await pumpEventQueue(); + profileController.add(UserProfile(id: 1, weightUnitStr: 'lb')); + expect(await unitAtFetchCompletion, testWeightUnit2); + + // A later profile change (settings switch to metric) re-hydrates in place. + profileController.add(UserProfile(id: 1, weightUnitStr: 'kg')); + await pumpEventQueue(); + final routines = container.read(routinesRiverpodProvider).value!.routines; + final rehydrated = routines.singleWhere((r) => r.id == 101); + expect(rehydrated.dayDataGym[0].slots[0].setConfigs[0].weightUnit, testWeightUnit1); + }); }); group('routineHydration family', () { diff --git a/test/features/routines/screens/gym_mode_test.dart b/test/features/routines/screens/gym_mode_test.dart index 4835b65af..ce4fe9e64 100644 --- a/test/features/routines/screens/gym_mode_test.dart +++ b/test/features/routines/screens/gym_mode_test.dart @@ -28,6 +28,7 @@ import 'package:shared_preferences_platform_interface/shared_preferences_async_p import 'package:wger/core/network/network_provider.dart'; import 'package:wger/core/shared_preferences.dart'; import 'package:wger/core/widgets/error.dart'; +import 'package:wger/features/account/providers/user_profile_repository.dart'; import 'package:wger/features/exercises/providers/exercise_repository.dart'; import 'package:wger/features/exercises/providers/exercises_notifier.dart'; import 'package:wger/features/routines/models/repetition_unit.dart'; @@ -61,6 +62,7 @@ import 'gym_mode_test.mocks.dart'; RoutinesRepository, TrophyRepository, WorkoutLogRepository, + UserProfileRepository, ]) void main() { installFakeConnectivity(); @@ -74,9 +76,11 @@ void main() { final mockExerciseRepo = MockExerciseRepository(); final mockRoutinesRepo = MockRoutinesRepository(); final mockLogRepo = MockWorkoutLogRepository(); + final mockUserProfileRepo = MockUserProfileRepository(); setUp(() { SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); + when(mockUserProfileRepo.watchDrift()).thenAnswer((_) => Stream.value(null)); when(mockSessionRepo.watchAllDrift()).thenAnswer( (_) => Stream>.multi((controller) { controller.add(testRoutine.sessions); @@ -123,6 +127,7 @@ void main() { exerciseRepositoryProvider.overrideWithValue(mockExerciseRepo), workoutSessionRepositoryProvider.overrideWithValue(mockSessionRepo), workoutLogRepositoryProvider.overrideWithValue(mockLogRepo), + userProfileRepositoryProvider.overrideWithValue(mockUserProfileRepo), ...extraOverrides, // The repetition + weight unit catalogues are tiny direct-Drift // stream providers, overriding them inline is the established diff --git a/test/features/routines/screens/gym_mode_test.mocks.dart b/test/features/routines/screens/gym_mode_test.mocks.dart index ff6f689b0..41a9750b1 100644 --- a/test/features/routines/screens/gym_mode_test.mocks.dart +++ b/test/features/routines/screens/gym_mode_test.mocks.dart @@ -10,6 +10,8 @@ import 'package:mockito/src/dummies.dart' as _i23; import 'package:wger/core/language.dart' as _i18; import 'package:wger/core/network/base_provider.dart' as _i8; import 'package:wger/core/search_options.dart' as _i12; +import 'package:wger/features/account/models/user_profile.dart' as _i30; +import 'package:wger/features/account/providers/user_profile_repository.dart' as _i29; import 'package:wger/features/exercises/models/category.dart' as _i14; import 'package:wger/features/exercises/models/equipment.dart' as _i16; import 'package:wger/features/exercises/models/exercise_filters.dart' as _i13; @@ -576,3 +578,29 @@ class MockWorkoutLogRepository extends _i1.Mock implements _i27.WorkoutLogReposi ) as _i10.Future); } + +/// A class which mocks [UserProfileRepository]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockUserProfileRepository extends _i1.Mock implements _i29.UserProfileRepository { + MockUserProfileRepository() { + _i1.throwOnMissingStub(this); + } + + @override + _i10.Stream<_i30.UserProfile?> watchDrift() => + (super.noSuchMethod( + Invocation.method(#watchDrift, []), + returnValue: _i10.Stream<_i30.UserProfile?>.empty(), + ) + as _i10.Stream<_i30.UserProfile?>); + + @override + _i10.Future editLocalDrift(_i30.UserProfile? profile) => + (super.noSuchMethod( + Invocation.method(#editLocalDrift, [profile]), + returnValue: _i10.Future.value(), + returnValueForMissingStub: _i10.Future.value(), + ) + as _i10.Future); +} From 211fefd37904ff3838b841591049891bb5e80958 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 00:54:40 +0000 Subject: [PATCH 07/22] Bump json_serializable from 6.14.0 to 6.14.1 Bumps [json_serializable](https://github.com/google/json_serializable.dart) from 6.14.0 to 6.14.1. - [Release notes](https://github.com/google/json_serializable.dart/releases) - [Commits](https://github.com/google/json_serializable.dart/compare/json_serializable-v6.14.0...json_serializable-v6.14.1) --- updated-dependencies: - dependency-name: json_serializable dependency-version: 6.14.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 2d3d2727e..65c85d121 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -896,10 +896,10 @@ packages: dependency: "direct dev" description: name: json_serializable - sha256: ffcd10cde35a93b2abbbcc26bd9971f4ca93763e8abe78d855e3c4177797e501 + sha256: e45aefa0324f08c683caafbb94b72837aa6193c61822799c916e45f4a263113d url: "https://pub.dev" source: hosted - version: "6.14.0" + version: "6.14.1" leak_tracker: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 9dae68fac..cf70a40bb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -91,7 +91,7 @@ dev_dependencies: flutter_lints: ^6.0.0 flutter_native_splash: ^2.4.8 freezed: ^3.2.0 - json_serializable: ^6.14.0 + json_serializable: ^6.14.1 mockito: ^5.6.4 network_image_mock: ^2.1.1 plugin_platform_interface: ^2.1.8 From d43660497d2a8b9d531cdfdf9d8f1431f8edf239 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 00:54:54 +0000 Subject: [PATCH 08/22] Bump extended_image from 10.0.1 to 10.1.0 Bumps [extended_image](https://github.com/fluttercandies/extended_image) from 10.0.1 to 10.1.0. - [Release notes](https://github.com/fluttercandies/extended_image/releases) - [Changelog](https://github.com/fluttercandies/extended_image/blob/master/CHANGELOG.md) - [Commits](https://github.com/fluttercandies/extended_image/commits) --- updated-dependencies: - dependency-name: extended_image dependency-version: 10.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 2d3d2727e..25a174c03 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -397,10 +397,10 @@ packages: dependency: "direct main" description: name: extended_image - sha256: f6cbb1d798f51262ed1a3d93b4f1f2aa0d76128df39af18ecb77fa740f88b2e0 + sha256: e81d801cd692921f152834e01f39bba8b3d6302c48ad420d499c6062a7e24737 url: "https://pub.dev" source: hosted - version: "10.0.1" + version: "10.1.0" extended_image_library: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 9dae68fac..29311c57f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -39,7 +39,7 @@ dependencies: cupertino_icons: ^1.0.9 drift: ^2.34.2 equatable: ^2.1.0 - extended_image: ^10.0.1 + extended_image: ^10.1.0 fl_chart: ^1.2.0 flex_color_scheme: ^8.4.0 flutter_html: ^3.0.0 From 50f726f771dfb77c9726c9f0d701fedccc27982c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 00:55:01 +0000 Subject: [PATCH 09/22] Bump powersync from 2.3.2 to 2.3.3 Bumps [powersync](https://github.com/powersync-ja/powersync.dart) from 2.3.2 to 2.3.3. - [Release notes](https://github.com/powersync-ja/powersync.dart/releases) - [Commits](https://github.com/powersync-ja/powersync.dart/compare/powersync-v2.3.2...powersync-v2.3.3) --- updated-dependencies: - dependency-name: powersync dependency-version: 2.3.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 2d3d2727e..56c11f6e3 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1184,10 +1184,10 @@ packages: dependency: "direct main" description: name: powersync - sha256: "11a43bd499ad9fe8b573e93a0f2702fe695f4f3c3d20c40306468c7d985a90ae" + sha256: "0cd58b2fb4b2eec9b2952647c25b05801ec36cdd3f6ea0763c8f76e53345c18b" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.3.3" powersync_flutter_libs: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 9dae68fac..97d8119c7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -72,7 +72,7 @@ dependencies: stream_transform: ^2.1.1 state_notifier: ^1.0.0 connectivity_plus: ^7.3.1 - powersync: ^2.3.2 + powersync: ^2.3.3 dev_dependencies: flutter_test: From d2dacb116d9ae1e06548ef5835654295014117f5 Mon Sep 17 00:00:00 2001 From: Praharsha2007 Date: Mon, 3 Aug 2026 21:15:00 +0530 Subject: [PATCH 10/22] feat : implemented dynamic colour support --- docs/archived/dynamic-colors-plan.md | 197 ++++++++++++++++++ lib/core/app_settings_notifier.dart | 20 ++ lib/core/app_settings_notifier.freezed.dart | 45 ++-- lib/core/app_settings_notifier.g.dart | 2 +- lib/core/consts.dart | 5 + .../account/widgets/settings/theme.dart | 63 +++--- lib/l10n/app_en.arb | 4 + lib/main.dart | 103 +++++---- lib/theme/theme.dart | 13 ++ linux/flutter/generated_plugin_registrant.cc | 4 + linux/flutter/generated_plugins.cmake | 1 + macos/Flutter/GeneratedPluginRegistrant.swift | 2 + pubspec.lock | 8 + pubspec.yaml | 1 + test/core/app_settings_notifier_test.dart | 37 ++++ .../account/widgets/settings_test.dart | 22 ++ test/theme/theme_test.dart | 57 +++++ .../flutter/generated_plugin_registrant.cc | 3 + windows/flutter/generated_plugins.cmake | 1 + 19 files changed, 501 insertions(+), 87 deletions(-) create mode 100644 docs/archived/dynamic-colors-plan.md create mode 100644 test/theme/theme_test.dart diff --git a/docs/archived/dynamic-colors-plan.md b/docs/archived/dynamic-colors-plan.md new file mode 100644 index 000000000..8b1ee9a37 --- /dev/null +++ b/docs/archived/dynamic-colors-plan.md @@ -0,0 +1,197 @@ +# Plan: Material You dynamic color support + +Status: **PLANNED - not implemented** + +Context: this plan was produced to be picked up in a fresh opencode session. +Read this file, follow the steps in order, then delete this file (or move it to +`docs/archived/`) once the implementation and tests are merged. + +--- + +## 1. Goal + +Let users opt in to Material You dynamic colors (Android 12+, API 31+) so the +app palette follows the system wallpaper instead of the fixed wger seed colors. +When the platform does not support dynamic color (or the user opts out), keep +the existing wger themes unchanged. + +## 2. Current state + +- Themes are built in `lib/theme/theme.dart` from fixed seeds via + `SeedColorScheme.fromSeeds` + `FlexThemeData.light/dark` (`wgerLightTheme`, + `wgerDarkTheme`, `wgerLightThemeHc`, `wgerDarkThemeHc`). +- `MaterialApp` in `lib/main.dart:204` wires `theme`, `darkTheme`, + `highContrastTheme`, `highContrastDarkTheme`, and `themeMode` (system/light/ + dark) from `AppSettings.themeMode`. +- The only theme setting UI is `lib/features/account/widgets/settings/theme.dart` + (a `ThemeMode` dropdown). +- `AppSettings` is a freezed class in `lib/core/app_settings_notifier.dart`; + persisted via `SharedPreferencesAsync` with keys in `lib/core/consts.dart`. +- No `dynamic_color` package, no `DynamicColorBuilder`, no dynamic scheme usage + anywhere. Grep confirmed zero matches for `dynamicColor`/`dynamicScheme`. + +## 3. Approach + +Use the official Flutter `dynamic_color` package. Its `DynamicColorBuilder` +widget provides `ColorScheme? light` and `ColorScheme? dark` (null when the +platform doesn't support dynamic color). When enabled and non-null, feed these +schemes into `FlexThemeData.light/dark(colorScheme: ...)` so all existing +sub-themes, app-bar style, and typography keep working. Otherwise fall back to +the existing seed themes. + +### Design decisions + +1. **Opt-in setting** (default off). Keep the existing seed themes the default + so existing users see no change. Expose a `useDynamicColor` boolean in + `AppSettings`. +2. **DynamicColorBuilder wraps MaterialApp** (not `themeBuilder`). The builder + gives both light and dark schemes in one place regardless of current + brightness, so we can build both `theme:` and `darkTheme:` and let + `ThemeMode` keep working as today. +3. **High contrast**: keep the existing seed HC themes as-is. Optionally map + Android 13+ HC dynamic variants later; not in scope now (note it in the + implementation as a TODO, do not build it). +4. **Fallback is automatic**: `dynamic_color` hands back null schemes on + unsupported platforms; we then just use the seed themes, so enabling the + setting is safe everywhere (Android < 12, iOS, desktop, web). + +## 4. Implementation steps + +### Step 1 - Dependency + +- Add `dynamic_color: ^1.7.0` (check latest on pub.dev) to `dependencies` in + `pubspec.yaml`. +- Run `dart pub get`. + +### Step 2 - Theme builders in `lib/theme/theme.dart` + +- Add a function that builds a `ThemeData` from a provided `ColorScheme`, + mirroring the existing `FlexThemeData.light/dark` config: + + ```dart + ThemeData wgerThemeFromScheme(ColorScheme scheme) { + final isDark = scheme.brightness == Brightness.dark; + return (isDark ? FlexThemeData.dark : FlexThemeData.light)( + colorScheme: scheme, + useMaterial3: true, + appBarStyle: isDark ? null : FlexAppBarStyle.primary, // keep parity with wgerLightTheme + subThemesData: wgerSubThemeData, + textTheme: wgerTextTheme, + ); + } + ``` + +- Refactor `wgerLightTheme`, `wgerDarkTheme`, `wgerLightThemeHc`, + `wgerDarkThemeHc` to use this helper (optional but keeps config in one + place). Existing final fields must keep their names and behavior. + +### Step 3 - Setting + persistence + +In `lib/core/app_settings_notifier.dart`: + +- Add `@Default(false) bool useDynamicColor` to the `AppSettings` freezed + factory. +- Add `_loadUseDynamicColor()` reading a new key, and `setUseDynamicColor(bool)` + following the exact pattern of `setKeepDataOnLogout` (update state via + `copyWith`, persist bool). +- In `build()`, load it and pass it into `AppSettings(...)`. +- Regenerate freezed code: `dart run build_runner build --delete-conflicting-outputs` + (this updates `app_settings_notifier.freezed.dart`). + +In `lib/core/consts.dart`: + +- Add `const PREFS_USE_DYNAMIC_COLOR = 'useDynamicColor';` + +### Step 4 - Wire in `lib/main.dart` + +- Wrap the `MaterialApp` returned in the `data:` branch with + `DynamicColorBuilder(builder: (lightScheme, darkScheme) { ... })`. + (`loading:`/`error:` branches can stay as-is or use the same wrapper - + keep them minimal.) +- Inside the builder, read `useDynamicColor` from + `appSettingsProvider` (add a `select` for it, like `themeMode`). + + ```dart + final useDynamic = ref.watch( + appSettingsProvider.select((s) => s.value?.useDynamicColor ?? false), + ); + final light = useDynamic && lightScheme != null + ? wgerThemeFromScheme(lightScheme) + : wgerLightTheme; + final dark = useDynamic && darkScheme != null + ? wgerThemeFromScheme(darkScheme) + : wgerDarkTheme; + ``` + +- Pass `theme: light`, `darkTheme: dark`; keep `themeMode`, `highContrastTheme`, + `highContrastDarkTheme`, locale, routes, etc. unchanged. + +### Step 5 - Settings UI + +In `lib/features/account/widgets/settings/theme.dart`: + +- Add a `SwitchListTile` (or `ListTile` + `Switch`) below the theme mode + dropdown: title = new i18n string, value = `useDynamicColor`, onChanged calls + `ref.read(appSettingsProvider.notifier).setUseDynamicColor(value)`. +- Give it a `ValueKey('useDynamicColorSwitch')` for tests (matches the + `ValueKey('themeModeDropdown')` convention). + +Localization: + +- Add the new key to `lib/l10n/app_en.arb` (e.g. `"useDynamicColor": "Use + dynamic color (system wallpaper)"` and maybe a description). The non-English + `app_*.arb` files are translated via Weblate; only edit `app_en.arb` + (see `lib/l10n/README.md`). +- Regenerate: `flutter gen-l10n` (l10n.yaml already configures output to + `lib/l10n/generated`). + +### Step 6 - Tests + +Update/add in `test/`: + +- `test/core/app_settings_notifier_test.dart`: follow the existing pattern + (e.g. keep-data-on-logout tests) to assert `useDynamicColor` defaults to + false, persists true/false, and is read back. +- `test/features/account/widgets/settings_test.dart`: toggle the new switch and + assert the notifier state changes. Update any snapshot/full-widget builders + that construct `AppSettings` directly (adding a field may break positional + or `copyWith` calls - fix compiler errors). +- Consider a small `test/theme/theme_test.dart` asserting `wgerThemeFromScheme` + returns a theme whose `colorScheme.primary` equals the passed scheme's primary + for both brightnesses. +- If `lib/main.dart` widget test exists that pumps `MaterialApp`, keep it + passing - `DynamicColorBuilder` renders child directly on non-Android. + +## 5. Verification + +- `dart run build_runner build --delete-conflicting-outputs` +- `dart format lib test` +- `dart analyze` +- `dart run flutter test` (or the repo's test command - check README / + `flutter test` is the standard here) +- Manual: run on an Android 12+ emulator, enable the setting, verify palette + follows wallpaper; disable and verify wger blue returns; run on desktop/web + and verify the setting is a harmless no-op. + +## 6. Out of scope / follow-ups + +- iOS 18+ and macOS 26 dynamic color (package supports it; wire later if wanted). +- Mapping Android high-contrast dynamic variants into `highContrastTheme`. +- Making dynamic color the default instead of opt-in. + +## 7. Files touched (summary) + +| File | Change | +| --- | --- | +| `pubspec.yaml` | add `dynamic_color` | +| `lib/theme/theme.dart` | add `wgerThemeFromScheme`, optionally refactor existing themes | +| `lib/core/app_settings_notifier.dart` | new `useDynamicColor` field + loader/setter | +| `lib/core/app_settings_notifier.freezed.dart` | regenerated | +| `lib/core/consts.dart` | new prefs key | +| `lib/main.dart` | `DynamicColorBuilder` + dynamic themes | +| `lib/features/account/widgets/settings/theme.dart` | new switch | +| `lib/l10n/app_en.arb` | new string | +| `lib/l10n/generated/*` | regenerated | +| `test/core/app_settings_notifier_test.dart` | new tests | +| `test/features/account/widgets/settings_test.dart` | new test | +| `test/theme/theme_test.dart` | new (optional) | diff --git a/lib/core/app_settings_notifier.dart b/lib/core/app_settings_notifier.dart index 358d9d0ba..699ee5397 100644 --- a/lib/core/app_settings_notifier.dart +++ b/lib/core/app_settings_notifier.dart @@ -87,6 +87,11 @@ sealed class AppSettings with _$AppSettings { /// When true, an invalid TLS certificate is accepted from the self-hosted /// server the app is configured for. Never applies to the official servers. @Default(ALLOW_SELF_SIGNED_CERTS_DEFAULT) bool allowSelfSignedCerts, + + /// When true, the app palette follows the platform dynamic colors + /// (system wallpaper on Android 12+) instead of the fixed wger seeds. + /// A no-op on platforms without dynamic color support. + @Default(false) bool useDynamicColor, }) = _AppSettings; } @@ -107,12 +112,14 @@ class AppSettingsNotifier extends _$AppSettingsNotifier { final items = await _loadDashboardItems(); final keepDataOnLogout = await _loadKeepDataOnLogout(); final allowSelfSignedCerts = await _loadAllowSelfSignedCerts(); + final useDynamicColor = await _loadUseDynamicColor(); return AppSettings( themeMode: themeMode, userLocale: userLocale, dashboardItems: items, keepDataOnLogout: keepDataOnLogout, allowSelfSignedCerts: allowSelfSignedCerts, + useDynamicColor: useDynamicColor, ); } @@ -218,6 +225,19 @@ class AppSettingsNotifier extends _$AppSettingsNotifier { await _prefs.setBool(PREFS_ALLOW_SELF_SIGNED_CERTS, value); } + // + // Use dynamic color + // + + Future _loadUseDynamicColor() async => + (await _prefs.getBool(PREFS_USE_DYNAMIC_COLOR)) ?? false; + + Future setUseDynamicColor(bool value) async { + final current = state.asData?.value ?? const AppSettings(); + state = AsyncData(current.copyWith(useDynamicColor: value)); + await _prefs.setBool(PREFS_USE_DYNAMIC_COLOR, value); + } + // // Dashboard config // diff --git a/lib/core/app_settings_notifier.freezed.dart b/lib/core/app_settings_notifier.freezed.dart index 7c18c83ce..5641ac4da 100644 --- a/lib/core/app_settings_notifier.freezed.dart +++ b/lib/core/app_settings_notifier.freezed.dart @@ -19,7 +19,10 @@ mixin _$AppSettings { /// of wiping it, so the same user signing back in resumes incrementally. bool get keepDataOnLogout;/// When true, an invalid TLS certificate is accepted from the self-hosted /// server the app is configured for. Never applies to the official servers. - bool get allowSelfSignedCerts; + bool get allowSelfSignedCerts;/// When true, the app palette follows the platform dynamic colors +/// (system wallpaper on Android 12+) instead of the fixed wger seeds. +/// A no-op on platforms without dynamic color support. + bool get useDynamicColor; /// Create a copy of AppSettings /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -30,16 +33,16 @@ $AppSettingsCopyWith get copyWith => _$AppSettingsCopyWithImpl Object.hash(runtimeType,themeMode,const DeepCollectionEquality().hash(dashboardItems),userLocale,keepDataOnLogout,allowSelfSignedCerts); +int get hashCode => Object.hash(runtimeType,themeMode,const DeepCollectionEquality().hash(dashboardItems),userLocale,keepDataOnLogout,allowSelfSignedCerts,useDynamicColor); @override String toString() { - return 'AppSettings(themeMode: $themeMode, dashboardItems: $dashboardItems, userLocale: $userLocale, keepDataOnLogout: $keepDataOnLogout, allowSelfSignedCerts: $allowSelfSignedCerts)'; + return 'AppSettings(themeMode: $themeMode, dashboardItems: $dashboardItems, userLocale: $userLocale, keepDataOnLogout: $keepDataOnLogout, allowSelfSignedCerts: $allowSelfSignedCerts, useDynamicColor: $useDynamicColor)'; } @@ -50,7 +53,7 @@ abstract mixin class $AppSettingsCopyWith<$Res> { factory $AppSettingsCopyWith(AppSettings value, $Res Function(AppSettings) _then) = _$AppSettingsCopyWithImpl; @useResult $Res call({ - ThemeMode themeMode, List dashboardItems, Locale? userLocale, bool keepDataOnLogout, bool allowSelfSignedCerts + ThemeMode themeMode, List dashboardItems, Locale? userLocale, bool keepDataOnLogout, bool allowSelfSignedCerts, bool useDynamicColor }); @@ -67,13 +70,14 @@ class _$AppSettingsCopyWithImpl<$Res> /// Create a copy of AppSettings /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? themeMode = null,Object? dashboardItems = null,Object? userLocale = freezed,Object? keepDataOnLogout = null,Object? allowSelfSignedCerts = null,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? themeMode = null,Object? dashboardItems = null,Object? userLocale = freezed,Object? keepDataOnLogout = null,Object? allowSelfSignedCerts = null,Object? useDynamicColor = null,}) { return _then(_self.copyWith( themeMode: null == themeMode ? _self.themeMode : themeMode // ignore: cast_nullable_to_non_nullable as ThemeMode,dashboardItems: null == dashboardItems ? _self.dashboardItems : dashboardItems // ignore: cast_nullable_to_non_nullable as List,userLocale: freezed == userLocale ? _self.userLocale : userLocale // ignore: cast_nullable_to_non_nullable as Locale?,keepDataOnLogout: null == keepDataOnLogout ? _self.keepDataOnLogout : keepDataOnLogout // ignore: cast_nullable_to_non_nullable as bool,allowSelfSignedCerts: null == allowSelfSignedCerts ? _self.allowSelfSignedCerts : allowSelfSignedCerts // ignore: cast_nullable_to_non_nullable +as bool,useDynamicColor: null == useDynamicColor ? _self.useDynamicColor : useDynamicColor // ignore: cast_nullable_to_non_nullable as bool, )); } @@ -156,10 +160,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( ThemeMode themeMode, List dashboardItems, Locale? userLocale, bool keepDataOnLogout, bool allowSelfSignedCerts)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( ThemeMode themeMode, List dashboardItems, Locale? userLocale, bool keepDataOnLogout, bool allowSelfSignedCerts, bool useDynamicColor)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _AppSettings() when $default != null: -return $default(_that.themeMode,_that.dashboardItems,_that.userLocale,_that.keepDataOnLogout,_that.allowSelfSignedCerts);case _: +return $default(_that.themeMode,_that.dashboardItems,_that.userLocale,_that.keepDataOnLogout,_that.allowSelfSignedCerts,_that.useDynamicColor);case _: return orElse(); } @@ -177,10 +181,10 @@ return $default(_that.themeMode,_that.dashboardItems,_that.userLocale,_that.keep /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( ThemeMode themeMode, List dashboardItems, Locale? userLocale, bool keepDataOnLogout, bool allowSelfSignedCerts) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( ThemeMode themeMode, List dashboardItems, Locale? userLocale, bool keepDataOnLogout, bool allowSelfSignedCerts, bool useDynamicColor) $default,) {final _that = this; switch (_that) { case _AppSettings(): -return $default(_that.themeMode,_that.dashboardItems,_that.userLocale,_that.keepDataOnLogout,_that.allowSelfSignedCerts);} +return $default(_that.themeMode,_that.dashboardItems,_that.userLocale,_that.keepDataOnLogout,_that.allowSelfSignedCerts,_that.useDynamicColor);} } /// A variant of `when` that fallback to returning `null` /// @@ -194,10 +198,10 @@ return $default(_that.themeMode,_that.dashboardItems,_that.userLocale,_that.keep /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( ThemeMode themeMode, List dashboardItems, Locale? userLocale, bool keepDataOnLogout, bool allowSelfSignedCerts)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( ThemeMode themeMode, List dashboardItems, Locale? userLocale, bool keepDataOnLogout, bool allowSelfSignedCerts, bool useDynamicColor)? $default,) {final _that = this; switch (_that) { case _AppSettings() when $default != null: -return $default(_that.themeMode,_that.dashboardItems,_that.userLocale,_that.keepDataOnLogout,_that.allowSelfSignedCerts);case _: +return $default(_that.themeMode,_that.dashboardItems,_that.userLocale,_that.keepDataOnLogout,_that.allowSelfSignedCerts,_that.useDynamicColor);case _: return null; } @@ -209,7 +213,7 @@ return $default(_that.themeMode,_that.dashboardItems,_that.userLocale,_that.keep class _AppSettings implements AppSettings { - const _AppSettings({this.themeMode = ThemeMode.system, final List dashboardItems = const [], this.userLocale, this.keepDataOnLogout = KEEP_DATA_ON_LOGOUT_DEFAULT, this.allowSelfSignedCerts = ALLOW_SELF_SIGNED_CERTS_DEFAULT}): _dashboardItems = dashboardItems; + const _AppSettings({this.themeMode = ThemeMode.system, final List dashboardItems = const [], this.userLocale, this.keepDataOnLogout = KEEP_DATA_ON_LOGOUT_DEFAULT, this.allowSelfSignedCerts = ALLOW_SELF_SIGNED_CERTS_DEFAULT, this.useDynamicColor = false}): _dashboardItems = dashboardItems; @override@JsonKey() final ThemeMode themeMode; @@ -228,6 +232,10 @@ class _AppSettings implements AppSettings { /// When true, an invalid TLS certificate is accepted from the self-hosted /// server the app is configured for. Never applies to the official servers. @override@JsonKey() final bool allowSelfSignedCerts; +/// When true, the app palette follows the platform dynamic colors +/// (system wallpaper on Android 12+) instead of the fixed wger seeds. +/// A no-op on platforms without dynamic color support. +@override@JsonKey() final bool useDynamicColor; /// Create a copy of AppSettings /// with the given fields replaced by the non-null parameter values. @@ -239,16 +247,16 @@ _$AppSettingsCopyWith<_AppSettings> get copyWith => __$AppSettingsCopyWithImpl<_ @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _AppSettings&&(identical(other.themeMode, themeMode) || other.themeMode == themeMode)&&const DeepCollectionEquality().equals(other._dashboardItems, _dashboardItems)&&(identical(other.userLocale, userLocale) || other.userLocale == userLocale)&&(identical(other.keepDataOnLogout, keepDataOnLogout) || other.keepDataOnLogout == keepDataOnLogout)&&(identical(other.allowSelfSignedCerts, allowSelfSignedCerts) || other.allowSelfSignedCerts == allowSelfSignedCerts)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AppSettings&&(identical(other.themeMode, themeMode) || other.themeMode == themeMode)&&const DeepCollectionEquality().equals(other._dashboardItems, _dashboardItems)&&(identical(other.userLocale, userLocale) || other.userLocale == userLocale)&&(identical(other.keepDataOnLogout, keepDataOnLogout) || other.keepDataOnLogout == keepDataOnLogout)&&(identical(other.allowSelfSignedCerts, allowSelfSignedCerts) || other.allowSelfSignedCerts == allowSelfSignedCerts)&&(identical(other.useDynamicColor, useDynamicColor) || other.useDynamicColor == useDynamicColor)); } @override -int get hashCode => Object.hash(runtimeType,themeMode,const DeepCollectionEquality().hash(_dashboardItems),userLocale,keepDataOnLogout,allowSelfSignedCerts); +int get hashCode => Object.hash(runtimeType,themeMode,const DeepCollectionEquality().hash(_dashboardItems),userLocale,keepDataOnLogout,allowSelfSignedCerts,useDynamicColor); @override String toString() { - return 'AppSettings(themeMode: $themeMode, dashboardItems: $dashboardItems, userLocale: $userLocale, keepDataOnLogout: $keepDataOnLogout, allowSelfSignedCerts: $allowSelfSignedCerts)'; + return 'AppSettings(themeMode: $themeMode, dashboardItems: $dashboardItems, userLocale: $userLocale, keepDataOnLogout: $keepDataOnLogout, allowSelfSignedCerts: $allowSelfSignedCerts, useDynamicColor: $useDynamicColor)'; } @@ -259,7 +267,7 @@ abstract mixin class _$AppSettingsCopyWith<$Res> implements $AppSettingsCopyWith factory _$AppSettingsCopyWith(_AppSettings value, $Res Function(_AppSettings) _then) = __$AppSettingsCopyWithImpl; @override @useResult $Res call({ - ThemeMode themeMode, List dashboardItems, Locale? userLocale, bool keepDataOnLogout, bool allowSelfSignedCerts + ThemeMode themeMode, List dashboardItems, Locale? userLocale, bool keepDataOnLogout, bool allowSelfSignedCerts, bool useDynamicColor }); @@ -276,13 +284,14 @@ class __$AppSettingsCopyWithImpl<$Res> /// Create a copy of AppSettings /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? themeMode = null,Object? dashboardItems = null,Object? userLocale = freezed,Object? keepDataOnLogout = null,Object? allowSelfSignedCerts = null,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? themeMode = null,Object? dashboardItems = null,Object? userLocale = freezed,Object? keepDataOnLogout = null,Object? allowSelfSignedCerts = null,Object? useDynamicColor = null,}) { return _then(_AppSettings( themeMode: null == themeMode ? _self.themeMode : themeMode // ignore: cast_nullable_to_non_nullable as ThemeMode,dashboardItems: null == dashboardItems ? _self._dashboardItems : dashboardItems // ignore: cast_nullable_to_non_nullable as List,userLocale: freezed == userLocale ? _self.userLocale : userLocale // ignore: cast_nullable_to_non_nullable as Locale?,keepDataOnLogout: null == keepDataOnLogout ? _self.keepDataOnLogout : keepDataOnLogout // ignore: cast_nullable_to_non_nullable as bool,allowSelfSignedCerts: null == allowSelfSignedCerts ? _self.allowSelfSignedCerts : allowSelfSignedCerts // ignore: cast_nullable_to_non_nullable +as bool,useDynamicColor: null == useDynamicColor ? _self.useDynamicColor : useDynamicColor // ignore: cast_nullable_to_non_nullable as bool, )); } diff --git a/lib/core/app_settings_notifier.g.dart b/lib/core/app_settings_notifier.g.dart index ead2c8f16..bdc2e545f 100644 --- a/lib/core/app_settings_notifier.g.dart +++ b/lib/core/app_settings_notifier.g.dart @@ -33,7 +33,7 @@ final class AppSettingsNotifierProvider AppSettingsNotifier create() => AppSettingsNotifier(); } -String _$appSettingsNotifierHash() => r'499323f5b84feb0c395538db14e4d0a7de831b7c'; +String _$appSettingsNotifierHash() => r'309dcb1604e5cc002be4cff2b844a978388c190c'; abstract class _$AppSettingsNotifier extends $AsyncNotifier { FutureOr build(); diff --git a/lib/core/consts.dart b/lib/core/consts.dart index ac324bd3a..157095a57 100644 --- a/lib/core/consts.dart +++ b/lib/core/consts.dart @@ -59,6 +59,11 @@ const PREFS_USER_DARK_THEME = 'userDarkMode'; const PREFS_USER_LOCALE = 'userLocale'; const PREFS_LAST_SERVER = 'lastServer'; +/// User preference: use Material You dynamic colors from the platform (Android +/// 12+, iOS 18+, macOS 26, Windows/Linux accents) instead of the fixed wger +/// seed palette. Off by default. +const PREFS_USE_DYNAMIC_COLOR = 'useDynamicColor'; + /// Headless JWT auth: SharedPreferences keys. /// /// Read in parallel with the legacy `PREFS_USER` blob during the migration diff --git a/lib/features/account/widgets/settings/theme.dart b/lib/features/account/widgets/settings/theme.dart index 2fc900b50..04bd94df1 100644 --- a/lib/features/account/widgets/settings/theme.dart +++ b/lib/features/account/widgets/settings/theme.dart @@ -12,32 +12,47 @@ class SettingsTheme extends ConsumerWidget { final currentMode = ref.watch( appSettingsProvider.select((s) => s.value?.themeMode ?? ThemeMode.system), ); + final useDynamicColor = ref.watch( + appSettingsProvider.select((s) => s.value?.useDynamicColor ?? false), + ); - return ListTile( - title: Text(i18n.themeMode), - trailing: DropdownButton( - key: const ValueKey('themeModeDropdown'), - value: currentMode, - onChanged: (ThemeMode? newValue) { - if (newValue != null) { - ref.read(appSettingsProvider.notifier).setThemeMode(newValue); - } - }, - items: ThemeMode.values.map>((ThemeMode value) { - final label = (() { - switch (value) { - case ThemeMode.system: - return i18n.systemMode; - case ThemeMode.light: - return i18n.lightMode; - case ThemeMode.dark: - return i18n.darkMode; - } - })(); + return Column( + children: [ + ListTile( + title: Text(i18n.themeMode), + trailing: DropdownButton( + key: const ValueKey('themeModeDropdown'), + value: currentMode, + onChanged: (ThemeMode? newValue) { + if (newValue != null) { + ref.read(appSettingsProvider.notifier).setThemeMode(newValue); + } + }, + items: ThemeMode.values.map>((ThemeMode value) { + final label = (() { + switch (value) { + case ThemeMode.system: + return i18n.systemMode; + case ThemeMode.light: + return i18n.lightMode; + case ThemeMode.dark: + return i18n.darkMode; + } + })(); - return DropdownMenuItem(value: value, child: Text(label)); - }).toList(), - ), + return DropdownMenuItem(value: value, child: Text(label)); + }).toList(), + ), + ), + SwitchListTile( + key: const ValueKey('useDynamicColorSwitch'), + title: Text(i18n.useDynamicColor), + value: useDynamicColor, + onChanged: (bool value) { + ref.read(appSettingsProvider.notifier).setUseDynamicColor(value); + }, + ), + ], ); } } diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 3aa58560d..ec3661532 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -1314,6 +1314,10 @@ "darkMode": "Always dark mode", "lightMode": "Always light mode", "systemMode": "System settings", + "useDynamicColor": "Use dynamic color", + "@useDynamicColor": { + "description": "Settings toggle to follow the system wallpaper colors (Material You) on supported platforms" + }, "youAreOffline": "You are offline", "appLanguage": "App language", "@appLanguage": { diff --git a/lib/main.dart b/lib/main.dart index ea966a53a..595e18f2c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -18,6 +18,7 @@ import 'dart:async'; +import 'package:dynamic_color/dynamic_color.dart'; import 'package:extended_image/extended_image.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; @@ -200,52 +201,66 @@ class MainApp extends ConsumerWidget { final userLocale = ref.watch( appSettingsProvider.select((s) => s.value?.userLocale), ); + final useDynamicColor = ref.watch( + appSettingsProvider.select((s) => s.value?.useDynamicColor ?? false), + ); - return MaterialApp( - title: 'wger', - navigatorKey: navigatorKey, - scaffoldMessengerKey: scaffoldMessengerKey, - theme: wgerLightTheme, - darkTheme: wgerDarkTheme, - highContrastTheme: wgerLightThemeHc, - highContrastDarkTheme: wgerDarkThemeHc, - themeMode: themeMode, - locale: userLocale, - home: _getHomeScreen(authState), - routes: { - DashboardScreen.routeName: (ctx) => const DashboardScreen(), - FormScreen.routeName: (ctx) => const FormScreen(), - GalleryScreen.routeName: (ctx) => const GalleryScreen(), - GymModeScreen.routeName: (ctx) => const GymModeScreen(), - HomeTabsScreen.routeName: (ctx) => const HomeTabsScreen(), - MeasurementCategoriesScreen.routeName: (ctx) => const MeasurementCategoriesScreen(), - MeasurementEntriesScreen.routeName: (ctx) => const MeasurementEntriesScreen(), - NutritionalPlansScreen.routeName: (ctx) => const NutritionalPlansScreen(), - NutritionalDiaryScreen.routeName: (ctx) => const NutritionalDiaryScreen(), - NutritionalPlanScreen.routeName: (ctx) => const NutritionalPlanScreen(), - IngredientDetailScreen.routeName: (ctx) => const IngredientDetailScreen(), - IngredientsScreen.routeName: (ctx) => const IngredientsScreen(), - LogMealsScreen.routeName: (ctx) => const LogMealsScreen(), - LogMealScreen.routeName: (ctx) => const LogMealScreen(), - WeightScreen.routeName: (ctx) => const WeightScreen(), - RoutineScreen.routeName: (ctx) => const RoutineScreen(), - RoutineEditScreen.routeName: (ctx) => const RoutineEditScreen(), - WorkoutLogsScreen.routeName: (ctx) => const WorkoutLogsScreen(), - RoutineListScreen.routeName: (ctx) => const RoutineListScreen(), - ExercisesScreen.routeName: (ctx) => const ExercisesScreen(), - ExerciseDetailScreen.routeName: (ctx) => const ExerciseDetailScreen(), - AddExerciseScreen.routeName: (ctx) => const AddExerciseScreen(), - AboutPage.routeName: (ctx) => const AboutPage(), - SettingsPage.routeName: (ctx) => const SettingsPage(), - LogOverviewPage.routeName: (ctx) => const LogOverviewPage(), - ConfigurePlatesScreen.routeName: (ctx) => const ConfigurePlatesScreen(), - ConfigureDashboardWidgetsScreen.routeName: (ctx) => - const ConfigureDashboardWidgetsScreen(), - TrophyScreen.routeName: (ctx) => const TrophyScreen(), + return DynamicColorBuilder( + builder: (lightDynamic, darkDynamic) { + final light = useDynamicColor && lightDynamic != null + ? wgerThemeFromScheme(lightDynamic) + : wgerLightTheme; + final dark = useDynamicColor && darkDynamic != null + ? wgerThemeFromScheme(darkDynamic) + : wgerDarkTheme; + + return MaterialApp( + title: 'wger', + navigatorKey: navigatorKey, + scaffoldMessengerKey: scaffoldMessengerKey, + theme: light, + darkTheme: dark, + highContrastTheme: wgerLightThemeHc, + highContrastDarkTheme: wgerDarkThemeHc, + themeMode: themeMode, + locale: userLocale, + home: _getHomeScreen(authState), + routes: { + DashboardScreen.routeName: (ctx) => const DashboardScreen(), + FormScreen.routeName: (ctx) => const FormScreen(), + GalleryScreen.routeName: (ctx) => const GalleryScreen(), + GymModeScreen.routeName: (ctx) => const GymModeScreen(), + HomeTabsScreen.routeName: (ctx) => const HomeTabsScreen(), + MeasurementCategoriesScreen.routeName: (ctx) => const MeasurementCategoriesScreen(), + MeasurementEntriesScreen.routeName: (ctx) => const MeasurementEntriesScreen(), + NutritionalPlansScreen.routeName: (ctx) => const NutritionalPlansScreen(), + NutritionalDiaryScreen.routeName: (ctx) => const NutritionalDiaryScreen(), + NutritionalPlanScreen.routeName: (ctx) => const NutritionalPlanScreen(), + IngredientDetailScreen.routeName: (ctx) => const IngredientDetailScreen(), + IngredientsScreen.routeName: (ctx) => const IngredientsScreen(), + LogMealsScreen.routeName: (ctx) => const LogMealsScreen(), + LogMealScreen.routeName: (ctx) => const LogMealScreen(), + WeightScreen.routeName: (ctx) => const WeightScreen(), + RoutineScreen.routeName: (ctx) => const RoutineScreen(), + RoutineEditScreen.routeName: (ctx) => const RoutineEditScreen(), + WorkoutLogsScreen.routeName: (ctx) => const WorkoutLogsScreen(), + RoutineListScreen.routeName: (ctx) => const RoutineListScreen(), + ExercisesScreen.routeName: (ctx) => const ExercisesScreen(), + ExerciseDetailScreen.routeName: (ctx) => const ExerciseDetailScreen(), + AddExerciseScreen.routeName: (ctx) => const AddExerciseScreen(), + AboutPage.routeName: (ctx) => const AboutPage(), + SettingsPage.routeName: (ctx) => const SettingsPage(), + LogOverviewPage.routeName: (ctx) => const LogOverviewPage(), + ConfigurePlatesScreen.routeName: (ctx) => const ConfigurePlatesScreen(), + ConfigureDashboardWidgetsScreen.routeName: (ctx) => + const ConfigureDashboardWidgetsScreen(), + TrophyScreen.routeName: (ctx) => const TrophyScreen(), + }, + localeListResolutionCallback: resolveLocale, + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + ); }, - localeListResolutionCallback: resolveLocale, - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, ); }, ); diff --git a/lib/theme/theme.dart b/lib/theme/theme.dart index 6a78e3bd7..ecdbe95d6 100644 --- a/lib/theme/theme.dart +++ b/lib/theme/theme.dart @@ -151,6 +151,19 @@ final wgerDarkThemeHc = FlexThemeData.dark( textTheme: wgerTextTheme, ); +/// Builds a wger theme (same sub-themes, app bar style and typography as the +/// seed themes) from a provided [scheme], e.g. a dynamic platform scheme. +ThemeData wgerThemeFromScheme(ColorScheme scheme) { + final isDark = scheme.brightness == Brightness.dark; + return (isDark ? FlexThemeData.dark : FlexThemeData.light)( + colorScheme: scheme, + useMaterial3: true, + appBarStyle: isDark ? null : FlexAppBarStyle.primary, + subThemesData: wgerSubThemeData, + textTheme: wgerTextTheme, + ); +} + CalendarStyle getWgerCalendarStyle(ThemeData theme) { return CalendarStyle( outsideDaysVisible: false, diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc index ea3bde613..af197928e 100644 --- a/linux/flutter/generated_plugin_registrant.cc +++ b/linux/flutter/generated_plugin_registrant.cc @@ -6,12 +6,16 @@ #include "generated_plugin_registrant.h" +#include #include #include #include #include void fl_register_plugins(FlPluginRegistry* registry) { + g_autoptr(FlPluginRegistrar) dynamic_color_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "DynamicColorPlugin"); + dynamic_color_plugin_register_with_registrar(dynamic_color_registrar); g_autoptr(FlPluginRegistrar) file_selector_linux_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin"); file_selector_plugin_register_with_registrar(file_selector_linux_registrar); diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake index ec652cd6c..7b3b66c18 100644 --- a/linux/flutter/generated_plugins.cmake +++ b/linux/flutter/generated_plugins.cmake @@ -3,6 +3,7 @@ # list(APPEND FLUTTER_PLUGIN_LIST + dynamic_color file_selector_linux flutter_secure_storage_linux gtk diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index 3a1b4aadc..eb9b91c91 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -7,6 +7,7 @@ import Foundation import app_links import connectivity_plus +import dynamic_color import file_selector_macos import flutter_secure_storage_darwin import package_info_plus @@ -17,6 +18,7 @@ import video_player_avfoundation func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { AppLinksMacosPlugin.register(with: registry.registrar(forPlugin: "AppLinksMacosPlugin")) ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin")) + DynamicColorPlugin.register(with: registry.registrar(forPlugin: "DynamicColorPlugin")) FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin")) FlutterSecureStorageDarwinPlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStorageDarwinPlugin")) FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) diff --git a/pubspec.lock b/pubspec.lock index 2d3d2727e..4b7c4ae1f 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -385,6 +385,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.3.1" + dynamic_color: + dependency: "direct main" + description: + name: dynamic_color + sha256: "43a5a6679649a7731ab860334a5812f2067c2d9ce6452cf069c5e0c25336c17c" + url: "https://pub.dev" + source: hosted + version: "1.8.1" equatable: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 9dae68fac..17e157937 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -38,6 +38,7 @@ dependencies: collection: ^1.19.1 cupertino_icons: ^1.0.9 drift: ^2.34.2 + dynamic_color: ^1.8.1 equatable: ^2.1.0 extended_image: ^10.0.1 fl_chart: ^1.2.0 diff --git a/test/core/app_settings_notifier_test.dart b/test/core/app_settings_notifier_test.dart index 606fafd2c..bf5f4cdc1 100644 --- a/test/core/app_settings_notifier_test.dart +++ b/test/core/app_settings_notifier_test.dart @@ -359,4 +359,41 @@ void main() { expect(await prefs.getBool(PREFS_ALLOW_SELF_SIGNED_CERTS), true); }); }); + + group('use dynamic color', () { + test('defaults to false', () async { + final settings = await container.read(appSettingsProvider.future); + expect(settings.useDynamicColor, false); + }); + + test('loads true from prefs', () async { + SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); + final prefs = SharedPreferencesAsync(); + await prefs.setBool(PREFS_USE_DYNAMIC_COLOR, true); + + container.dispose(); + container = ProviderContainer( + overrides: [appSettingsPrefsProvider.overrideWithValue(prefs)], + ); + + final settings = await container.read(appSettingsProvider.future); + expect(settings.useDynamicColor, true); + }); + + test('setUseDynamicColor persists the toggle', () async { + SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); + final prefs = SharedPreferencesAsync(); + + container.dispose(); + container = ProviderContainer( + overrides: [appSettingsPrefsProvider.overrideWithValue(prefs)], + ); + + await container.read(appSettingsProvider.future); + await container.read(appSettingsProvider.notifier).setUseDynamicColor(true); + + expect(container.read(appSettingsProvider).requireValue.useDynamicColor, true); + expect(await prefs.getBool(PREFS_USE_DYNAMIC_COLOR), true); + }); + }); } diff --git a/test/features/account/widgets/settings_test.dart b/test/features/account/widgets/settings_test.dart index 3271554ec..a5c57480b 100644 --- a/test/features/account/widgets/settings_test.dart +++ b/test/features/account/widgets/settings_test.dart @@ -74,6 +74,28 @@ void main() { verify(mockSharedPreferences.setBool(PREFS_USER_DARK_THEME, false)).called(1); }); + + testWidgets('toggling dynamic color persists the preference', (WidgetTester tester) async { + await tester.pumpWidget(createSettingsScreen()); + await tester.pumpAndSettle(); + + await tester.tap(find.byKey(const ValueKey('useDynamicColorSwitch'))); + await tester.pumpAndSettle(); + + verify(mockSharedPreferences.setBool(PREFS_USE_DYNAMIC_COLOR, true)).called(1); + }); + + testWidgets('dynamic color switch reflects a stored preference', (WidgetTester tester) async { + when(mockSharedPreferences.getBool(PREFS_USE_DYNAMIC_COLOR)).thenAnswer((_) async => true); + + await tester.pumpWidget(createSettingsScreen()); + await tester.pumpAndSettle(); + + final switchWidget = tester.widget( + find.byKey(const ValueKey('useDynamicColorSwitch')), + ); + expect(switchWidget.value, true); + }); }); group('Language switcher', () { diff --git a/test/theme/theme_test.dart b/test/theme/theme_test.dart new file mode 100644 index 000000000..5a564bb2c --- /dev/null +++ b/test/theme/theme_test.dart @@ -0,0 +1,57 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:wger/theme/theme.dart'; + +void main() { + group('wgerThemeFromScheme', () { + test('light scheme is preserved and applied to the light theme', () { + final scheme = ColorScheme.fromSeed( + seedColor: const Color(0xFF112233), + brightness: Brightness.light, + ); + final theme = wgerThemeFromScheme(scheme); + + expect(theme.brightness, Brightness.light); + expect(theme.colorScheme.primary, scheme.primary); + expect(theme.colorScheme.surface, scheme.surface); + }); + + test('dark scheme is preserved and applied to the dark theme', () { + final scheme = ColorScheme.fromSeed( + seedColor: const Color(0xFF112233), + brightness: Brightness.dark, + ); + final theme = wgerThemeFromScheme(scheme); + + expect(theme.brightness, Brightness.dark); + expect(theme.colorScheme.primary, scheme.primary); + expect(theme.colorScheme.surface, scheme.surface); + }); + + test('keeps the wger typography', () { + final theme = wgerThemeFromScheme( + ColorScheme.fromSeed(seedColor: const Color(0xFF112233)), + ); + + expect(theme.textTheme.headlineLarge?.fontFamily, wgerDisplayFont); + }); + }); +} diff --git a/windows/flutter/generated_plugin_registrant.cc b/windows/flutter/generated_plugin_registrant.cc index 64d6ea3a7..ddb906182 100644 --- a/windows/flutter/generated_plugin_registrant.cc +++ b/windows/flutter/generated_plugin_registrant.cc @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -17,6 +18,8 @@ void RegisterPlugins(flutter::PluginRegistry* registry) { registry->GetRegistrarForPlugin("AppLinksPluginCApi")); ConnectivityPlusWindowsPluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin")); + DynamicColorPluginCApiRegisterWithRegistrar( + registry->GetRegistrarForPlugin("DynamicColorPluginCApi")); FileSelectorWindowsRegisterWithRegistrar( registry->GetRegistrarForPlugin("FileSelectorWindows")); FlutterSecureStorageWindowsPluginRegisterWithRegistrar( diff --git a/windows/flutter/generated_plugins.cmake b/windows/flutter/generated_plugins.cmake index 74942c36e..023efb0cc 100644 --- a/windows/flutter/generated_plugins.cmake +++ b/windows/flutter/generated_plugins.cmake @@ -5,6 +5,7 @@ list(APPEND FLUTTER_PLUGIN_LIST app_links connectivity_plus + dynamic_color file_selector_windows flutter_secure_storage_windows url_launcher_windows From 86745ec3f60f668d733483b1da73d486f0fb7b3f Mon Sep 17 00:00:00 2001 From: Praharsha2007 Date: Mon, 3 Aug 2026 21:22:07 +0530 Subject: [PATCH 11/22] feat : implemented dynamic colour support --- docs/archived/dynamic-colors-plan.md | 197 --------------------------- 1 file changed, 197 deletions(-) delete mode 100644 docs/archived/dynamic-colors-plan.md diff --git a/docs/archived/dynamic-colors-plan.md b/docs/archived/dynamic-colors-plan.md deleted file mode 100644 index 8b1ee9a37..000000000 --- a/docs/archived/dynamic-colors-plan.md +++ /dev/null @@ -1,197 +0,0 @@ -# Plan: Material You dynamic color support - -Status: **PLANNED - not implemented** - -Context: this plan was produced to be picked up in a fresh opencode session. -Read this file, follow the steps in order, then delete this file (or move it to -`docs/archived/`) once the implementation and tests are merged. - ---- - -## 1. Goal - -Let users opt in to Material You dynamic colors (Android 12+, API 31+) so the -app palette follows the system wallpaper instead of the fixed wger seed colors. -When the platform does not support dynamic color (or the user opts out), keep -the existing wger themes unchanged. - -## 2. Current state - -- Themes are built in `lib/theme/theme.dart` from fixed seeds via - `SeedColorScheme.fromSeeds` + `FlexThemeData.light/dark` (`wgerLightTheme`, - `wgerDarkTheme`, `wgerLightThemeHc`, `wgerDarkThemeHc`). -- `MaterialApp` in `lib/main.dart:204` wires `theme`, `darkTheme`, - `highContrastTheme`, `highContrastDarkTheme`, and `themeMode` (system/light/ - dark) from `AppSettings.themeMode`. -- The only theme setting UI is `lib/features/account/widgets/settings/theme.dart` - (a `ThemeMode` dropdown). -- `AppSettings` is a freezed class in `lib/core/app_settings_notifier.dart`; - persisted via `SharedPreferencesAsync` with keys in `lib/core/consts.dart`. -- No `dynamic_color` package, no `DynamicColorBuilder`, no dynamic scheme usage - anywhere. Grep confirmed zero matches for `dynamicColor`/`dynamicScheme`. - -## 3. Approach - -Use the official Flutter `dynamic_color` package. Its `DynamicColorBuilder` -widget provides `ColorScheme? light` and `ColorScheme? dark` (null when the -platform doesn't support dynamic color). When enabled and non-null, feed these -schemes into `FlexThemeData.light/dark(colorScheme: ...)` so all existing -sub-themes, app-bar style, and typography keep working. Otherwise fall back to -the existing seed themes. - -### Design decisions - -1. **Opt-in setting** (default off). Keep the existing seed themes the default - so existing users see no change. Expose a `useDynamicColor` boolean in - `AppSettings`. -2. **DynamicColorBuilder wraps MaterialApp** (not `themeBuilder`). The builder - gives both light and dark schemes in one place regardless of current - brightness, so we can build both `theme:` and `darkTheme:` and let - `ThemeMode` keep working as today. -3. **High contrast**: keep the existing seed HC themes as-is. Optionally map - Android 13+ HC dynamic variants later; not in scope now (note it in the - implementation as a TODO, do not build it). -4. **Fallback is automatic**: `dynamic_color` hands back null schemes on - unsupported platforms; we then just use the seed themes, so enabling the - setting is safe everywhere (Android < 12, iOS, desktop, web). - -## 4. Implementation steps - -### Step 1 - Dependency - -- Add `dynamic_color: ^1.7.0` (check latest on pub.dev) to `dependencies` in - `pubspec.yaml`. -- Run `dart pub get`. - -### Step 2 - Theme builders in `lib/theme/theme.dart` - -- Add a function that builds a `ThemeData` from a provided `ColorScheme`, - mirroring the existing `FlexThemeData.light/dark` config: - - ```dart - ThemeData wgerThemeFromScheme(ColorScheme scheme) { - final isDark = scheme.brightness == Brightness.dark; - return (isDark ? FlexThemeData.dark : FlexThemeData.light)( - colorScheme: scheme, - useMaterial3: true, - appBarStyle: isDark ? null : FlexAppBarStyle.primary, // keep parity with wgerLightTheme - subThemesData: wgerSubThemeData, - textTheme: wgerTextTheme, - ); - } - ``` - -- Refactor `wgerLightTheme`, `wgerDarkTheme`, `wgerLightThemeHc`, - `wgerDarkThemeHc` to use this helper (optional but keeps config in one - place). Existing final fields must keep their names and behavior. - -### Step 3 - Setting + persistence - -In `lib/core/app_settings_notifier.dart`: - -- Add `@Default(false) bool useDynamicColor` to the `AppSettings` freezed - factory. -- Add `_loadUseDynamicColor()` reading a new key, and `setUseDynamicColor(bool)` - following the exact pattern of `setKeepDataOnLogout` (update state via - `copyWith`, persist bool). -- In `build()`, load it and pass it into `AppSettings(...)`. -- Regenerate freezed code: `dart run build_runner build --delete-conflicting-outputs` - (this updates `app_settings_notifier.freezed.dart`). - -In `lib/core/consts.dart`: - -- Add `const PREFS_USE_DYNAMIC_COLOR = 'useDynamicColor';` - -### Step 4 - Wire in `lib/main.dart` - -- Wrap the `MaterialApp` returned in the `data:` branch with - `DynamicColorBuilder(builder: (lightScheme, darkScheme) { ... })`. - (`loading:`/`error:` branches can stay as-is or use the same wrapper - - keep them minimal.) -- Inside the builder, read `useDynamicColor` from - `appSettingsProvider` (add a `select` for it, like `themeMode`). - - ```dart - final useDynamic = ref.watch( - appSettingsProvider.select((s) => s.value?.useDynamicColor ?? false), - ); - final light = useDynamic && lightScheme != null - ? wgerThemeFromScheme(lightScheme) - : wgerLightTheme; - final dark = useDynamic && darkScheme != null - ? wgerThemeFromScheme(darkScheme) - : wgerDarkTheme; - ``` - -- Pass `theme: light`, `darkTheme: dark`; keep `themeMode`, `highContrastTheme`, - `highContrastDarkTheme`, locale, routes, etc. unchanged. - -### Step 5 - Settings UI - -In `lib/features/account/widgets/settings/theme.dart`: - -- Add a `SwitchListTile` (or `ListTile` + `Switch`) below the theme mode - dropdown: title = new i18n string, value = `useDynamicColor`, onChanged calls - `ref.read(appSettingsProvider.notifier).setUseDynamicColor(value)`. -- Give it a `ValueKey('useDynamicColorSwitch')` for tests (matches the - `ValueKey('themeModeDropdown')` convention). - -Localization: - -- Add the new key to `lib/l10n/app_en.arb` (e.g. `"useDynamicColor": "Use - dynamic color (system wallpaper)"` and maybe a description). The non-English - `app_*.arb` files are translated via Weblate; only edit `app_en.arb` - (see `lib/l10n/README.md`). -- Regenerate: `flutter gen-l10n` (l10n.yaml already configures output to - `lib/l10n/generated`). - -### Step 6 - Tests - -Update/add in `test/`: - -- `test/core/app_settings_notifier_test.dart`: follow the existing pattern - (e.g. keep-data-on-logout tests) to assert `useDynamicColor` defaults to - false, persists true/false, and is read back. -- `test/features/account/widgets/settings_test.dart`: toggle the new switch and - assert the notifier state changes. Update any snapshot/full-widget builders - that construct `AppSettings` directly (adding a field may break positional - or `copyWith` calls - fix compiler errors). -- Consider a small `test/theme/theme_test.dart` asserting `wgerThemeFromScheme` - returns a theme whose `colorScheme.primary` equals the passed scheme's primary - for both brightnesses. -- If `lib/main.dart` widget test exists that pumps `MaterialApp`, keep it - passing - `DynamicColorBuilder` renders child directly on non-Android. - -## 5. Verification - -- `dart run build_runner build --delete-conflicting-outputs` -- `dart format lib test` -- `dart analyze` -- `dart run flutter test` (or the repo's test command - check README / - `flutter test` is the standard here) -- Manual: run on an Android 12+ emulator, enable the setting, verify palette - follows wallpaper; disable and verify wger blue returns; run on desktop/web - and verify the setting is a harmless no-op. - -## 6. Out of scope / follow-ups - -- iOS 18+ and macOS 26 dynamic color (package supports it; wire later if wanted). -- Mapping Android high-contrast dynamic variants into `highContrastTheme`. -- Making dynamic color the default instead of opt-in. - -## 7. Files touched (summary) - -| File | Change | -| --- | --- | -| `pubspec.yaml` | add `dynamic_color` | -| `lib/theme/theme.dart` | add `wgerThemeFromScheme`, optionally refactor existing themes | -| `lib/core/app_settings_notifier.dart` | new `useDynamicColor` field + loader/setter | -| `lib/core/app_settings_notifier.freezed.dart` | regenerated | -| `lib/core/consts.dart` | new prefs key | -| `lib/main.dart` | `DynamicColorBuilder` + dynamic themes | -| `lib/features/account/widgets/settings/theme.dart` | new switch | -| `lib/l10n/app_en.arb` | new string | -| `lib/l10n/generated/*` | regenerated | -| `test/core/app_settings_notifier_test.dart` | new tests | -| `test/features/account/widgets/settings_test.dart` | new test | -| `test/theme/theme_test.dart` | new (optional) | From f3b5ccc481a7487f906bf069019464dd91467c3f Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Mon, 3 Aug 2026 23:49:34 +0200 Subject: [PATCH 12/22] Re-seed the dynamic palette instead of using it verbatim --- lib/main.dart | 11 +++++--- lib/theme/theme.dart | 19 ++++++++----- test/theme/theme_test.dart | 56 +++++++++++++++++++++++--------------- 3 files changed, 53 insertions(+), 33 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 595e18f2c..25e84c4e1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -207,11 +207,14 @@ class MainApp extends ConsumerWidget { return DynamicColorBuilder( builder: (lightDynamic, darkDynamic) { - final light = useDynamicColor && lightDynamic != null - ? wgerThemeFromScheme(lightDynamic) + // One seed drives both themes: re-tonalising normalises the hue, + // so it doesn't matter which of the two schemes it comes from. + final seed = (lightDynamic ?? darkDynamic)?.primary; + final light = useDynamicColor && seed != null + ? wgerThemeFromSeed(seed, Brightness.light) : wgerLightTheme; - final dark = useDynamicColor && darkDynamic != null - ? wgerThemeFromScheme(darkDynamic) + final dark = useDynamicColor && seed != null + ? wgerThemeFromSeed(seed, Brightness.dark) : wgerDarkTheme; return MaterialApp( diff --git a/lib/theme/theme.dart b/lib/theme/theme.dart index ecdbe95d6..e2948012c 100644 --- a/lib/theme/theme.dart +++ b/lib/theme/theme.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -151,12 +151,17 @@ final wgerDarkThemeHc = FlexThemeData.dark( textTheme: wgerTextTheme, ); -/// Builds a wger theme (same sub-themes, app bar style and typography as the -/// seed themes) from a provided [scheme], e.g. a dynamic platform scheme. -ThemeData wgerThemeFromScheme(ColorScheme scheme) { - final isDark = scheme.brightness == Brightness.dark; +/// Builds a wger theme for [brightness] with the palette generated from [seed], +/// e.g. the platform's dynamic color. Sub-themes, app bar style and typography +/// match the fixed themes, so only the hues change. +ThemeData wgerThemeFromSeed(Color seed, Brightness brightness) { + final isDark = brightness == Brightness.dark; return (isDark ? FlexThemeData.dark : FlexThemeData.light)( - colorScheme: scheme, + colorScheme: SeedColorScheme.fromSeeds( + primaryKey: seed, + brightness: brightness, + tones: FlexTones.vivid(brightness), + ), useMaterial3: true, appBarStyle: isDark ? null : FlexAppBarStyle.primary, subThemesData: wgerSubThemeData, diff --git a/test/theme/theme_test.dart b/test/theme/theme_test.dart index 5a564bb2c..b310a8bf8 100644 --- a/test/theme/theme_test.dart +++ b/test/theme/theme_test.dart @@ -16,40 +16,52 @@ * along with this program. If not, see . */ +import 'package:flex_color_scheme/flex_color_scheme.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:wger/theme/theme.dart'; void main() { - group('wgerThemeFromScheme', () { - test('light scheme is preserved and applied to the light theme', () { - final scheme = ColorScheme.fromSeed( - seedColor: const Color(0xFF112233), - brightness: Brightness.light, - ); - final theme = wgerThemeFromScheme(scheme); + group('wgerThemeFromSeed', () { + const seed = Color(0xFF6750A4); - expect(theme.brightness, Brightness.light); - expect(theme.colorScheme.primary, scheme.primary); - expect(theme.colorScheme.surface, scheme.surface); + test('applies the requested brightness', () { + expect(wgerThemeFromSeed(seed, Brightness.light).brightness, Brightness.light); + expect(wgerThemeFromSeed(seed, Brightness.dark).brightness, Brightness.dark); }); - test('dark scheme is preserved and applied to the dark theme', () { - final scheme = ColorScheme.fromSeed( - seedColor: const Color(0xFF112233), - brightness: Brightness.dark, - ); - final theme = wgerThemeFromScheme(scheme); + test('derives the palette from the seed hue', () { + final scheme = wgerThemeFromSeed(seed, Brightness.light).colorScheme; - expect(theme.brightness, Brightness.dark); - expect(theme.colorScheme.primary, scheme.primary); - expect(theme.colorScheme.surface, scheme.surface); + expect( + Hct.fromInt(scheme.primary.toARGB32()).hue, + closeTo(Hct.fromInt(seed.toARGB32()).hue, 5), + ); + }); + + test('generates a distinct surface container ramp', () { + // A platform scheme used as-is leaves these unset, which flattens every + // elevated surface onto the scaffold color. + for (final brightness in Brightness.values) { + final scheme = wgerThemeFromSeed(seed, brightness).colorScheme; + + expect( + { + scheme.surface, + scheme.surfaceContainerLowest, + scheme.surfaceContainerLow, + scheme.surfaceContainer, + scheme.surfaceContainerHigh, + scheme.surfaceContainerHighest, + }, + hasLength(6), + reason: 'surface tones collapsed in $brightness', + ); + } }); test('keeps the wger typography', () { - final theme = wgerThemeFromScheme( - ColorScheme.fromSeed(seedColor: const Color(0xFF112233)), - ); + final theme = wgerThemeFromSeed(seed, Brightness.light); expect(theme.textTheme.headlineLarge?.fontFamily, wgerDisplayFont); }); From ec20dd45de1882f50747ae1a4b32d6f35dd99196 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Tue, 4 Aug 2026 00:01:39 +0200 Subject: [PATCH 13/22] Use theme colors instead of fixed ones --- .../dashboard/widgets/nothing_found.dart | 4 +-- .../widgets/dashboard/widgets/routines.dart | 3 +- lib/features/account/widgets/forms.dart | 7 ++--- lib/features/auth/screens/auth_screen.dart | 16 +++++++--- .../routines/widgets/gym_mode/navigation.dart | 2 -- .../routines/widgets/gym_mode/timer.dart | 9 ++++-- lib/theme/theme.dart | 31 ++++++++++--------- 7 files changed, 40 insertions(+), 32 deletions(-) diff --git a/lib/core/widgets/dashboard/widgets/nothing_found.dart b/lib/core/widgets/dashboard/widgets/nothing_found.dart index 06189d197..bc2cb0221 100644 --- a/lib/core/widgets/dashboard/widgets/nothing_found.dart +++ b/lib/core/widgets/dashboard/widgets/nothing_found.dart @@ -18,7 +18,6 @@ import 'package:flutter/material.dart'; import 'package:wger/core/form_screen.dart'; -import 'package:wger/theme/theme.dart'; class NothingFound extends StatelessWidget { final String _title; @@ -38,7 +37,8 @@ class NothingFound extends StatelessWidget { if (_titleForm != null && _form != null) IconButton( iconSize: 30, - icon: const Icon(Icons.add_box, color: wgerPrimaryButtonColor), + color: Theme.of(context).colorScheme.primary, + icon: const Icon(Icons.add_box), onPressed: () { Navigator.pushNamed( context, diff --git a/lib/core/widgets/dashboard/widgets/routines.dart b/lib/core/widgets/dashboard/widgets/routines.dart index 73926efce..c326fdd61 100644 --- a/lib/core/widgets/dashboard/widgets/routines.dart +++ b/lib/core/widgets/dashboard/widgets/routines.dart @@ -32,7 +32,6 @@ import 'package:wger/features/routines/screens/gym_mode.dart'; import 'package:wger/features/routines/screens/routine_screen.dart'; import 'package:wger/features/routines/widgets/forms/routine.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/theme/theme.dart'; class DashboardRoutineWidget extends ConsumerStatefulWidget { const DashboardRoutineWidget(); @@ -247,7 +246,7 @@ class DetailContentWidget extends StatelessWidget { else IconButton( icon: const Icon(Icons.play_arrow), - color: wgerPrimaryButtonColor, + color: Theme.of(context).colorScheme.primary, onPressed: () { Navigator.of(context).pushNamed( GymModeScreen.routeName, diff --git a/lib/features/account/widgets/forms.dart b/lib/features/account/widgets/forms.dart index b79f6d852..d040e4cf8 100644 --- a/lib/features/account/widgets/forms.dart +++ b/lib/features/account/widgets/forms.dart @@ -28,7 +28,6 @@ import 'package:wger/features/account/models/user_profile.dart'; import 'package:wger/features/account/providers/account_notifier.dart'; import 'package:wger/features/account/providers/user_profile_notifier.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/theme/theme.dart'; /// Shows the user's account data and lets them edit the profile preferences. /// @@ -83,7 +82,7 @@ class _UserProfileFormState extends ConsumerState { child: Column( children: [ ListTile( - leading: const Icon(Icons.person, color: wgerPrimaryColor), + leading: Icon(Icons.person, color: Theme.of(context).colorScheme.primary), title: Text(i18n.username), subtitle: Text(account.username), ), @@ -99,7 +98,7 @@ class _UserProfileFormState extends ConsumerState { dense: true, ), ListTile( - leading: const Icon(Icons.email_rounded, color: wgerPrimaryColor), + leading: Icon(Icons.email_rounded, color: Theme.of(context).colorScheme.primary), title: TextFormField( decoration: InputDecoration( labelText: account.emailVerified ? i18n.verifiedEmail : i18n.unVerifiedEmail, @@ -135,7 +134,7 @@ class _UserProfileFormState extends ConsumerState { const Divider(height: 32), ListTile( key: const Key('manageAccountOnWebTile'), - leading: const Icon(Icons.open_in_new, color: wgerPrimaryColor), + leading: Icon(Icons.open_in_new, color: Theme.of(context).colorScheme.primary), title: Text(i18n.manageAccountOnWeb), subtitle: Text(i18n.manageAccountOnWebSubtitle), enabled: isOnline, diff --git a/lib/features/auth/screens/auth_screen.dart b/lib/features/auth/screens/auth_screen.dart index b1f20ba36..461f80ca2 100644 --- a/lib/features/auth/screens/auth_screen.dart +++ b/lib/features/auth/screens/auth_screen.dart @@ -18,7 +18,6 @@ import 'package:flutter/material.dart'; import 'package:wger/features/auth/widgets/auth_card.dart'; -import 'package:wger/theme/theme.dart'; class AuthScreen extends StatelessWidget { const AuthScreen(); @@ -28,8 +27,15 @@ class AuthScreen extends StatelessWidget { @override Widget build(BuildContext context) { final deviceSize = MediaQuery.sizeOf(context); + final scheme = Theme.of(context).colorScheme; + // The banner carries the white logo, so it has to stay dark in both modes. + // primary is the dark tone in light mode, primaryContainer in dark mode. + final isDark = scheme.brightness == Brightness.dark; + final bannerColor = isDark ? scheme.primaryContainer : scheme.primary; + final onBannerColor = isDark ? scheme.onPrimaryContainer : scheme.onPrimary; + return Scaffold( - backgroundColor: Theme.of(context).colorScheme.surface, + backgroundColor: scheme.surface, body: Stack( children: [ Positioned( @@ -38,7 +44,7 @@ class AuthScreen extends StatelessWidget { left: 0, child: Container( height: 0.55 * deviceSize.height, - color: wgerPrimaryColor, + color: bannerColor, ), ), SingleChildScrollView( @@ -61,10 +67,10 @@ class AuthScreen extends StatelessWidget { vertical: 8.0, horizontal: 94.0, ), - child: const Text( + child: Text( 'wger', style: TextStyle( - color: Colors.white70, + color: onBannerColor.withValues(alpha: 0.7), fontSize: 30, fontWeight: FontWeight.bold, ), diff --git a/lib/features/routines/widgets/gym_mode/navigation.dart b/lib/features/routines/widgets/gym_mode/navigation.dart index 9025edd86..2fc9b9b6e 100644 --- a/lib/features/routines/widgets/gym_mode/navigation.dart +++ b/lib/features/routines/widgets/gym_mode/navigation.dart @@ -22,7 +22,6 @@ import 'package:wger/core/consts.dart'; import 'package:wger/features/routines/providers/gym_state_notifier.dart'; import 'package:wger/features/routines/widgets/gym_mode/elapsed_time.dart'; import 'package:wger/features/routines/widgets/gym_mode/workout_menu.dart'; -import 'package:wger/theme/theme.dart'; class NavigationHeader extends StatelessWidget { final PageController _controller; @@ -116,7 +115,6 @@ class NavigationFooter extends ConsumerWidget { child: LinearProgressIndicator( minHeight: 3, value: gymState.ratioCompleted, - valueColor: const AlwaysStoppedAnimation(wgerPrimaryColor), ), ), ), diff --git a/lib/features/routines/widgets/gym_mode/timer.dart b/lib/features/routines/widgets/gym_mode/timer.dart index b6b7ead28..efe21e26f 100644 --- a/lib/features/routines/widgets/gym_mode/timer.dart +++ b/lib/features/routines/widgets/gym_mode/timer.dart @@ -24,7 +24,6 @@ import 'package:intl/intl.dart'; import 'package:wger/features/routines/providers/gym_state_notifier.dart'; import 'package:wger/features/routines/widgets/gym_mode/navigation.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/theme/theme.dart'; class TimerWidget extends StatefulWidget { final PageController _controller; @@ -75,7 +74,9 @@ class _TimerWidgetState extends State { child: Center( child: Text( DateFormat('m:ss').format(displayTime), - style: Theme.of(context).textTheme.displayLarge!.copyWith(color: wgerPrimaryColor), + style: Theme.of( + context, + ).textTheme.displayLarge!.copyWith(color: Theme.of(context).colorScheme.primary), ), ), ), @@ -155,7 +156,9 @@ class _TimerCountdownWidgetState extends ConsumerState { children: [ Text( DateFormat('m:ss').format(displayTime), - style: Theme.of(context).textTheme.displayLarge!.copyWith(color: wgerPrimaryColor), + style: Theme.of( + context, + ).textTheme.displayLarge!.copyWith(color: Theme.of(context).colorScheme.primary), ), const SizedBox(height: 16), ], diff --git a/lib/theme/theme.dart b/lib/theme/theme.dart index e2948012c..66cf6311f 100644 --- a/lib/theme/theme.dart +++ b/lib/theme/theme.dart @@ -170,6 +170,15 @@ ThemeData wgerThemeFromSeed(Color seed, Brightness brightness) { } CalendarStyle getWgerCalendarStyle(ThemeData theme) { + final scheme = theme.colorScheme; + final selectedDecoration = BoxDecoration( + color: scheme.secondary, + shape: BoxShape.circle, + ); + // table_calendar defaults these to a near-white that only works on a dark + // circle, and secondary is light in dark mode. + final selectedTextStyle = TextStyle(color: scheme.onSecondary, fontSize: 16); + return CalendarStyle( outsideDaysVisible: false, todayDecoration: const BoxDecoration( @@ -180,19 +189,13 @@ CalendarStyle getWgerCalendarStyle(ThemeData theme) { color: theme.textTheme.headlineLarge?.color, shape: BoxShape.circle, ), - selectedDecoration: const BoxDecoration( - color: wgerSecondaryColor, - shape: BoxShape.circle, - ), - rangeStartDecoration: const BoxDecoration( - color: wgerSecondaryColor, - shape: BoxShape.circle, - ), - rangeEndDecoration: const BoxDecoration( - color: wgerSecondaryColor, - shape: BoxShape.circle, - ), - rangeHighlightColor: wgerSecondaryColorLight, - weekendTextStyle: const TextStyle(color: wgerSecondaryColor), + selectedDecoration: selectedDecoration, + selectedTextStyle: selectedTextStyle, + rangeStartDecoration: selectedDecoration, + rangeStartTextStyle: selectedTextStyle, + rangeEndDecoration: selectedDecoration, + rangeEndTextStyle: selectedTextStyle, + rangeHighlightColor: scheme.secondaryContainer, + weekendTextStyle: TextStyle(color: scheme.secondary), ); } From 33750a19b117b97de38905677d54306b2c589907 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Tue, 4 Aug 2026 00:20:21 +0200 Subject: [PATCH 14/22] Paint the macro gauges in the theme's primary color --- lib/features/nutrition/widgets/charts.dart | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lib/features/nutrition/widgets/charts.dart b/lib/features/nutrition/widgets/charts.dart index 39baac08e..ba50f7a1e 100644 --- a/lib/features/nutrition/widgets/charts.dart +++ b/lib/features/nutrition/widgets/charts.dart @@ -53,6 +53,10 @@ class FlNutritionalPlanGoalWidget extends StatelessWidget { double? plan, double val, ) { + // Four gauges of the same measure, not four categories, so they share the + // theme's primary rather than pulling from the chart palette. + final barColor = Theme.of(context).colorScheme.primary; + Container segment(double width, Color color) { return Container( height: 16, @@ -66,7 +70,7 @@ class FlNutritionalPlanGoalWidget extends StatelessWidget { // paint a simple bar if (plan == null || val == plan) { - return segment(normWidth, LIST_OF_COLORS8[0]); + return segment(normWidth, barColor); } // paint a surplus @@ -74,7 +78,7 @@ class FlNutritionalPlanGoalWidget extends StatelessWidget { return Stack( children: [ segment(normWidth * val / plan, COLOR_SURPLUS), - segment(normWidth, LIST_OF_COLORS8[0]), + segment(normWidth, barColor), ], ); } @@ -83,7 +87,7 @@ class FlNutritionalPlanGoalWidget extends StatelessWidget { return Stack( children: [ segment(normWidth, Theme.of(context).colorScheme.surface), - segment(normWidth * val / plan, LIST_OF_COLORS8[0]), + segment(normWidth * val / plan, barColor), ], ); } @@ -586,7 +590,7 @@ class MealDiaryBarChartWidgetState extends State { barRods: [ BarChartRodData( toY: _safePercent(widget._logged.energy, widget._planned.energy), - color: LIST_OF_COLORS3.first, + color: Theme.of(context).colorScheme.primary, width: barsWidth, ), ], @@ -597,7 +601,7 @@ class MealDiaryBarChartWidgetState extends State { barRods: [ BarChartRodData( toY: _safePercent(widget._logged.protein, widget._planned.protein), - color: LIST_OF_COLORS3.first, + color: Theme.of(context).colorScheme.primary, width: barsWidth, ), ], @@ -611,7 +615,7 @@ class MealDiaryBarChartWidgetState extends State { widget._logged.carbohydrates, widget._planned.carbohydrates, ), - color: LIST_OF_COLORS3.first, + color: Theme.of(context).colorScheme.primary, width: barsWidth, ), ], @@ -622,7 +626,7 @@ class MealDiaryBarChartWidgetState extends State { barRods: [ BarChartRodData( toY: _safePercent(widget._logged.fat, widget._planned.fat), - color: LIST_OF_COLORS3.first, + color: Theme.of(context).colorScheme.primary, width: barsWidth, ), ], From 07aa325ec5ba3922c2c2dbe15e5985b55d10f2d4 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Tue, 4 Aug 2026 11:18:59 +0200 Subject: [PATCH 15/22] Generate chart colors from the scheme instead of a fixed palette --- lib/core/colors.dart | 96 +++++---- lib/features/nutrition/widgets/charts.dart | 22 ++- .../widgets/nutritional_diary_table.dart | 7 +- lib/features/routines/widgets/charts.dart | 5 +- .../widgets/logs/exercise_log_chart.dart | 7 +- .../routines/widgets/logs/muscle_groups.dart | 30 +-- test/core/colors_test.dart | 182 +++++++++++------- 7 files changed, 205 insertions(+), 144 deletions(-) diff --git a/lib/core/colors.dart b/lib/core/colors.dart index 1ed1cf2c1..aa99dc60f 100644 --- a/lib/core/colors.dart +++ b/lib/core/colors.dart @@ -1,49 +1,67 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flex_color_scheme/flex_color_scheme.dart'; import 'package:flutter/material.dart'; -const LIST_OF_COLORS8 = [ - Color(0xFF2A4C7D), - Color(0xFF5B5291), - Color(0xFF8E5298), - Color(0xFFBF5092), - Color(0xFFE7537E), - Color(0xFFFF6461), - Color(0xFFFF813D), - Color(0xFFFFA600), -]; - -const LIST_OF_COLORS5 = [ - Color(0xFF2A4C7D), - Color(0xFF825298), - Color(0xFFD45089), - Color(0xFFFF6A59), - Color(0xFFFFA600), -]; - -const LIST_OF_COLORS3 = [ - Color(0xFF2A4C7D), - Color(0xFFD45089), - Color(0xFFFFA600), -]; - const COLOR_SURPLUS = Color.fromARGB(255, 231, 71, 71); -Iterable generateChartColors(int nrOfItems) sync* { - final List colors; +const _CHART_CHROMA = 60.0; +const _CHART_TONE_LIGHT = (from: 32.0, to: 75.0); +const _CHART_TONE_DARK = (from: 58.0, to: 80.0); - if (nrOfItems <= 3) { - colors = LIST_OF_COLORS3; - } else if (nrOfItems <= 5) { - colors = LIST_OF_COLORS5; - } else { - colors = LIST_OF_COLORS8; - } +/// [nrOfItems] chart colors derived from the scheme's primary hue. +/// +/// Hue is spread evenly around the wheel and tone ramps across the palette, so +/// neighbouring series differ in both. The lightness difference is what carries +/// in greyscale and with a color vision deficiency. The tones follow the +/// scheme's brightness, and the first color always matches the theme. +List chartColorPalette(int nrOfItems, ColorScheme scheme) { + final count = nrOfItems < 1 ? 1 : nrOfItems; + final baseHue = Hct.fromInt(scheme.primary.toARGB32()).hue; + final tones = scheme.brightness == Brightness.dark ? _CHART_TONE_DARK : _CHART_TONE_LIGHT; - for (final color in colors) { - yield color; - } + return List.generate(count, (i) { + final hue = (baseHue + 360 / count * i) % 360; + final tone = count == 1 ? tones.from : tones.from + (tones.to - tones.from) * i / (count - 1); + + return Color(Hct.from(hue, _CHART_CHROMA, tone).toInt()); + }); +} + +/// Black or white, whichever contrasts more with [background]. +/// +/// For labels drawn directly on a data color, which has no matching `on` role +/// the way a scheme surface does. +Color onChartColor(Color background) { + final luminance = background.computeLuminance(); + final contrastWithBlack = (luminance + 0.05) / 0.05; + final contrastWithWhite = 1.05 / (luminance + 0.05); + + return contrastWithBlack >= contrastWithWhite ? Colors.black : Colors.white; +} + +/// The palette from [chartColorPalette], repeating once exhausted so a caller +/// pulling more colors than it asked for can never run out. +Iterable generateChartColors(int nrOfItems, ColorScheme scheme) sync* { + final colors = chartColorPalette(nrOfItems, scheme); - // Always return black after generating nrOfItems colors while (true) { - yield Colors.black; + yield* colors; } } diff --git a/lib/features/nutrition/widgets/charts.dart b/lib/features/nutrition/widgets/charts.dart index ba50f7a1e..659043d44 100644 --- a/lib/features/nutrition/widgets/charts.dart +++ b/lib/features/nutrition/widgets/charts.dart @@ -216,6 +216,9 @@ class FlNutritionalPlanPieChartWidget extends StatefulWidget { class FlNutritionalPlanPieChartState extends State { int touchedIndex = -1; + /// Shared by the sections and the legend so both stay in sync. + List get _macroColors => chartColorPalette(3, Theme.of(context).colorScheme); + @override Widget build(BuildContext context) { return Row( @@ -252,9 +255,9 @@ class FlNutritionalPlanPieChartState extends State Padding( @@ -271,9 +274,9 @@ class FlNutritionalPlanPieChartState extends State showingSections() { return [ - (0, LIST_OF_COLORS3[1], widget.nutritionalValues.protein), - (1, LIST_OF_COLORS3[0], widget.nutritionalValues.carbohydrates), - (2, LIST_OF_COLORS3[2], widget.nutritionalValues.fat), + (0, _macroColors[1], widget.nutritionalValues.protein), + (1, _macroColors[0], widget.nutritionalValues.carbohydrates), + (2, _macroColors[2], widget.nutritionalValues.fat), ].map((e) { final isTouched = e.$1 == touchedIndex; final radius = isTouched ? 92.0 : 80.0; @@ -282,6 +285,8 @@ class FlNutritionalPlanPieChartState extends State { } LineChartData mainData() { - final colors = generateChartColors(widget._data.keys.length).iterator; + final colors = generateChartColors( + widget._data.keys.length, + Theme.of(context).colorScheme, + ).iterator; return LineChartData( lineTouchData: tooltipData(), diff --git a/lib/features/routines/widgets/logs/exercise_log_chart.dart b/lib/features/routines/widgets/logs/exercise_log_chart.dart index 1f9df2739..e570040e5 100644 --- a/lib/features/routines/widgets/logs/exercise_log_chart.dart +++ b/lib/features/routines/widgets/logs/exercise_log_chart.dart @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -import 'package:flutter/widgets.dart'; +import 'package:flutter/material.dart'; import 'package:wger/core/colors.dart'; import 'package:wger/core/misc.dart'; import 'package:wger/features/measurements/widgets/charts.dart'; @@ -30,7 +30,10 @@ class ExerciseLogChart extends StatelessWidget { @override Widget build(BuildContext context) { - final colors = generateChartColors(_logs.keys.length).iterator; + final colors = generateChartColors( + _logs.keys.length, + Theme.of(context).colorScheme, + ).iterator; return Column( mainAxisSize: MainAxisSize.max, diff --git a/lib/features/routines/widgets/logs/muscle_groups.dart b/lib/features/routines/widgets/logs/muscle_groups.dart index 93af98dfd..939be0c11 100644 --- a/lib/features/routines/widgets/logs/muscle_groups.dart +++ b/lib/features/routines/widgets/logs/muscle_groups.dart @@ -19,6 +19,7 @@ import 'package:collection/collection.dart'; import 'package:fl_chart/fl_chart.dart'; import 'package:flutter/material.dart'; +import 'package:wger/core/colors.dart'; import 'package:wger/features/routines/models/log.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; @@ -44,31 +45,12 @@ class MuscleGroupsCard extends StatelessWidget { } final muscleCounts = allMuscles.groupListsBy((muscle) => muscle.nameTranslated(context)); final total = allMuscles.length; + final colors = chartColorPalette(muscleCounts.length, Theme.of(context).colorScheme); - int colorIndex = 0; - final colors = [ - Colors.blue, - Colors.green, - Colors.orange, - Colors.purple, - Colors.red, - Colors.teal, - Colors.deepOrange, - Colors.indigo, - Colors.pink, - Colors.brown, - Colors.cyan, - Colors.lime, - Colors.amber, - Colors.lightGreen, - Colors.deepPurple, - ]; - - return muscleCounts.entries.map((entry) { + return muscleCounts.entries.mapIndexed((index, entry) { final percentage = (entry.value.length / total) * 100; - final color = colors[colorIndex % colors.length]; - colorIndex++; - return MuscleGroup(entry.key, percentage, color); + + return MuscleGroup(entry.key, percentage, colors[index]); }).toList(); } @@ -102,7 +84,7 @@ class MuscleGroupsCard extends StatelessWidget { titleStyle: TextStyle( fontSize: 16, fontWeight: FontWeight.bold, - color: theme.colorScheme.onPrimary, + color: onChartColor(muscle.color), ), ); }).toList(), diff --git a/test/core/colors_test.dart b/test/core/colors_test.dart index f0deb8bc3..9fa861dc2 100644 --- a/test/core/colors_test.dart +++ b/test/core/colors_test.dart @@ -16,91 +16,139 @@ * along with this program. If not, see . */ +import 'package:flex_color_scheme/flex_color_scheme.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:wger/core/colors.dart'; +import 'package:wger/theme/theme.dart'; void main() { + final light = wgerLightTheme.colorScheme; + final dark = wgerDarkTheme.colorScheme; + + double hueOf(Color c) => Hct.fromInt(c.toARGB32()).hue; + double toneOf(Color c) => Hct.fromInt(c.toARGB32()).tone; + + group('chartColorPalette', () { + test('returns as many colors as requested', () { + for (final count in [1, 3, 5, 8, 15]) { + expect(chartColorPalette(count, light), hasLength(count)); + } + }); + + test('falls back to a single color for zero or negative counts', () { + expect(chartColorPalette(0, light), hasLength(1)); + expect(chartColorPalette(-5, light), hasLength(1)); + }); + + test('starts at the scheme primary hue', () { + expect( + hueOf(chartColorPalette(5, light).first), + closeTo(hueOf(light.primary), 1), + ); + }); + + test('spreads the hues evenly around the wheel', () { + for (final count in [3, 6]) { + final hues = chartColorPalette(count, light).map(hueOf).toList(); + + for (var i = 1; i < count; i++) { + final delta = (hues[i] - hues[i - 1] + 360) % 360; + expect(delta, closeTo(360 / count, 2), reason: 'uneven step at n=$count'); + } + } + }); + + test('yields distinct colors', () { + expect(chartColorPalette(8, light).toSet(), hasLength(8)); + }); + + test('ramps the tone across the palette', () { + for (final scheme in [light, dark]) { + final tones = chartColorPalette(5, scheme).map(toneOf).toList(); + + for (var i = 1; i < tones.length; i++) { + expect(tones[i], greaterThan(tones[i - 1])); + } + } + }); + + test('keeps the dark palette light enough for a dark surface', () { + // The old fixed palette was tuned for light backgrounds only. + expect(chartColorPalette(6, dark).every((c) => toneOf(c) >= 55), isTrue); + }); + }); + + group('onChartColor', () { + double contrast(Color a, Color b) { + final values = [a.computeLuminance(), b.computeLuminance()]..sort(); + + return (values.last + 0.05) / (values.first + 0.05); + } + + test('switches between white and black along the tone ramp', () { + expect( + chartColorPalette(6, light).map(onChartColor).toSet(), + containsAll([Colors.white, Colors.black]), + ); + }); + + test('always picks the higher-contrast option', () { + final colors = [ + ...chartColorPalette(8, light), + ...chartColorPalette(8, dark), + COLOR_SURPLUS, + Colors.white, + Colors.black, + ]; + + for (final color in colors) { + final picked = onChartColor(color); + final other = picked == Colors.black ? Colors.white : Colors.black; + expect( + contrast(color, picked), + greaterThanOrEqualTo(contrast(color, other)), + reason: 'wrong pick for $color', + ); + } + }); + + test('clears 4.5:1 on the generated palette', () { + for (final scheme in [light, dark]) { + for (final color in chartColorPalette(8, scheme)) { + expect(contrast(color, onChartColor(color)), greaterThan(4.5)); + } + } + }); + }); + group('generateChartColors', () { - test('should generate 3 colors for 3 items', () { - final iterator = generateChartColors(3).iterator; - final expectedColors = LIST_OF_COLORS3.iterator; + test('yields the palette in order', () { + final palette = chartColorPalette(5, light); + final iterator = generateChartColors(5, light).iterator; - while (expectedColors.moveNext()) { + for (final expected in palette) { expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(expectedColors.current)); - } - - expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(Colors.black)); - }); - - test('should generate 5 colors for 5 items', () { - final iterator = generateChartColors(5).iterator; - final expectedColors = LIST_OF_COLORS5.iterator; - - while (expectedColors.moveNext()) { - expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(expectedColors.current)); - } - - expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(Colors.black)); - }); - - test('should generate 8 colors for 8 items', () { - final iterator = generateChartColors(8).iterator; - final expectedColors = LIST_OF_COLORS8.iterator; - - while (expectedColors.moveNext()) { - expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(expectedColors.current)); - } - - expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(Colors.black)); - }); - - test('should generate surplus color for more than 8 items', () { - final iterator = generateChartColors(10).iterator; - final expectedColors = LIST_OF_COLORS8.iterator; - - while (expectedColors.moveNext()) { - expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(expectedColors.current)); - } - - // After exhausting the 8 colors, it should always return black - for (int i = 0; i < 12; i++) { - expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(Colors.black)); + expect(iterator.current, equals(expected)); } }); - test('should generate 3 colors for 0 items', () { - final iterator = generateChartColors(0).iterator; - final expectedColors = LIST_OF_COLORS3.iterator; + test('repeats instead of running out or falling back to black', () { + final palette = chartColorPalette(3, light); + final iterator = generateChartColors(3, light).iterator; - while (expectedColors.moveNext()) { + for (var i = 0; i < 12; i++) { expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(expectedColors.current)); + expect(iterator.current, equals(palette[i % palette.length])); + expect(iterator.current, isNot(equals(Colors.black))); } - - expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(Colors.black)); }); - test('should generate 3 colors for negative number of items', () { - final iterator = generateChartColors(-5).iterator; - final expectedColors = LIST_OF_COLORS3.iterator; - - while (expectedColors.moveNext()) { - expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(expectedColors.current)); - } + test('keeps yielding for zero items', () { + final iterator = generateChartColors(0, light).iterator; expect(iterator.moveNext(), isTrue); - expect(iterator.current, equals(Colors.black)); + expect(iterator.moveNext(), isTrue); }); }); } From 2c63aa0e21517df3a8b082f8831a634788e11ddf Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Tue, 4 Aug 2026 11:35:32 +0200 Subject: [PATCH 16/22] Replace more hard coded colors with theme generated ones --- lib/features/measurements/widgets/charts.dart | 6 +++--- lib/features/nutrition/widgets/charts.dart | 12 ++++++------ lib/features/routines/widgets/charts.dart | 14 +++++++++----- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/lib/features/measurements/widgets/charts.dart b/lib/features/measurements/widgets/charts.dart index 4ab64ef3c..f12762f01 100644 --- a/lib/features/measurements/widgets/charts.dart +++ b/lib/features/measurements/widgets/charts.dart @@ -114,10 +114,10 @@ class _MeasurementChartWidgetFlState extends State { // horizontalInterval: 1, // verticalInterval: 1, getDrawingHorizontalLine: (value) { - return FlLine(color: Theme.of(context).colorScheme.primaryContainer, strokeWidth: 1); + return FlLine(color: Theme.of(context).colorScheme.outlineVariant, strokeWidth: 1); }, getDrawingVerticalLine: (value) { - return FlLine(color: Theme.of(context).colorScheme.primaryContainer, strokeWidth: 1); + return FlLine(color: Theme.of(context).colorScheme.outlineVariant, strokeWidth: 1); }, ), titlesData: FlTitlesData( @@ -177,7 +177,7 @@ class _MeasurementChartWidgetFlState extends State { ), borderData: FlBorderData( show: true, - border: Border.all(color: Theme.of(context).colorScheme.primaryContainer), + border: Border.all(color: Theme.of(context).colorScheme.outlineVariant), ), lineBarsData: [ LineChartBarData( diff --git a/lib/features/nutrition/widgets/charts.dart b/lib/features/nutrition/widgets/charts.dart index 659043d44..348344738 100644 --- a/lib/features/nutrition/widgets/charts.dart +++ b/lib/features/nutrition/widgets/charts.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -436,8 +436,8 @@ class NutritionalDiaryChartWidgetFlState extends State value % 10 == 0, - getDrawingHorizontalLine: (value) => const FlLine( - color: Colors.black, + getDrawingHorizontalLine: (value) => FlLine( + color: Theme.of(context).colorScheme.outlineVariant, strokeWidth: 1, ), drawVerticalLine: false, @@ -582,8 +582,8 @@ class MealDiaryBarChartWidgetState extends State { ), gridData: FlGridData( show: true, - getDrawingHorizontalLine: (value) => const FlLine( - color: Colors.black, + getDrawingHorizontalLine: (value) => FlLine( + color: Theme.of(context).colorScheme.outlineVariant, strokeWidth: 1, ), drawVerticalLine: false, diff --git a/lib/features/routines/widgets/charts.dart b/lib/features/routines/widgets/charts.dart index d69bfa9e2..311c8a871 100644 --- a/lib/features/routines/widgets/charts.dart +++ b/lib/features/routines/widgets/charts.dart @@ -84,10 +84,10 @@ class _LogChartWidgetFlState extends State { show: true, drawVerticalLine: true, getDrawingHorizontalLine: (value) { - return const FlLine(color: Colors.grey, strokeWidth: 1); + return FlLine(color: Theme.of(context).colorScheme.outlineVariant, strokeWidth: 1); }, getDrawingVerticalLine: (value) { - return const FlLine(color: Colors.grey, strokeWidth: 1); + return FlLine(color: Theme.of(context).colorScheme.outlineVariant, strokeWidth: 1); }, ), titlesData: FlTitlesData( @@ -139,11 +139,15 @@ class _LogChartWidgetFlState extends State { ), borderData: FlBorderData( show: true, - border: Border.all(color: const Color(0xff37434d)), + border: Border.all(color: Theme.of(context).colorScheme.outlineVariant), ), lineBarsData: [ ...widget._data.keys.map((reps) { colors.moveNext(); + // Captured: getDotPainter runs while painting, when the shared + // iterator has already moved on to the last series. + final color = colors.current; + return LineChartBarData( spots: [ ...widget._data[reps]!.map( @@ -154,14 +158,14 @@ class _LogChartWidgetFlState extends State { ), ], isCurved: true, - color: colors.current, + color: color, barWidth: 2, isStrokeCapRound: true, dotData: FlDotData( show: true, getDotPainter: (p0, p1, p2, p3) => FlDotCirclePainter( radius: 2, - color: Colors.black, + color: color, strokeWidth: 0, ), ), From 1af9471ef43664d811e9f7094360fe34d9b5c5f7 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Tue, 4 Aug 2026 11:41:17 +0200 Subject: [PATCH 17/22] Replace more hard coded colors with theme generated ones --- lib/core/error_dialogs.dart | 10 ++++++++-- lib/core/widgets/core.dart | 9 +++++---- lib/core/widgets/progress_indicator.dart | 8 ++++---- lib/features/exercises/widgets/exercises.dart | 4 +++- lib/features/exercises/widgets/filter_row.dart | 3 --- .../nutrition/widgets/ingredient_filter_row.dart | 3 --- .../nutrition/widgets/nutritional_diary_table.dart | 2 +- 7 files changed, 21 insertions(+), 18 deletions(-) diff --git a/lib/core/error_dialogs.dart b/lib/core/error_dialogs.dart index 2a6869e6a..b95eaded3 100644 --- a/lib/core/error_dialogs.dart +++ b/lib/core/error_dialogs.dart @@ -179,7 +179,10 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext child: SingleChildScrollView( child: Text( fullStackTrace, - style: TextStyle(fontSize: 12.0, color: Colors.grey[700]), + style: TextStyle( + fontSize: 12.0, + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), ), ), ), @@ -201,7 +204,10 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext ...applicationLogs.map( (entry) => Text( entry, - style: TextStyle(fontSize: 12.0, color: Colors.grey[700]), + style: TextStyle( + fontSize: 12.0, + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), ), ), ], diff --git a/lib/core/widgets/core.dart b/lib/core/widgets/core.dart index 5a45407e1..c40585ea1 100644 --- a/lib/core/widgets/core.dart +++ b/lib/core/widgets/core.dart @@ -51,7 +51,7 @@ class Pill extends StatelessWidget { padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 7), decoration: BoxDecoration( color: Theme.of(context).primaryColorLight.withValues(alpha: 0.15), - border: Border.all(color: Colors.grey[300]!), + border: Border.all(color: Theme.of(context).colorScheme.outlineVariant), borderRadius: BorderRadius.circular(5), ), child: Text(title), @@ -63,14 +63,15 @@ class CircleIconAvatar extends StatelessWidget { final double radius; final Icon _icon; - final Color color; + /// Defaults to the theme's highest container tone. + final Color? color; - const CircleIconAvatar(this._icon, {this.radius = 20, this.color = Colors.black12}); + const CircleIconAvatar(this._icon, {this.radius = 20, this.color}); @override Widget build(BuildContext context) { return CircleAvatar( - backgroundColor: color, + backgroundColor: color ?? Theme.of(context).colorScheme.surfaceContainerHighest, radius: radius, child: ClipRRect( borderRadius: BorderRadius.circular(50.0), diff --git a/lib/core/widgets/progress_indicator.dart b/lib/core/widgets/progress_indicator.dart index 69f7bab50..6c0c79026 100644 --- a/lib/core/widgets/progress_indicator.dart +++ b/lib/core/widgets/progress_indicator.dart @@ -44,12 +44,12 @@ class FormProgressIndicator extends StatelessWidget { @override Widget build(BuildContext context) { - return const SizedBox( + return SizedBox( height: 20, width: 20, - child: CircularProgressIndicator( - valueColor: AlwaysStoppedAnimation(Colors.white), - ), + // Takes the surrounding foreground: the label color inside a button, the + // leading icon color inside a ListTile. + child: CircularProgressIndicator(color: IconTheme.of(context).color), ); } } diff --git a/lib/features/exercises/widgets/exercises.dart b/lib/features/exercises/widgets/exercises.dart index 547c1d118..6352afb2b 100644 --- a/lib/features/exercises/widgets/exercises.dart +++ b/lib/features/exercises/widgets/exercises.dart @@ -206,7 +206,9 @@ class _CarouselImagesState extends State { height: 8, width: 8, decoration: BoxDecoration( - color: pageIndex == index ? Colors.black : Colors.black26, + color: pageIndex == index + ? Theme.of(context).colorScheme.primary + : Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.26), shape: BoxShape.circle, ), ), diff --git a/lib/features/exercises/widgets/filter_row.dart b/lib/features/exercises/widgets/filter_row.dart index f185b472c..1b7d10aaa 100644 --- a/lib/features/exercises/widgets/filter_row.dart +++ b/lib/features/exercises/widgets/filter_row.dart @@ -69,9 +69,6 @@ class _FilterRowState extends ConsumerState { decoration: InputDecoration( hintText: '${AppLocalizations.of(context).exerciseName}...', contentPadding: const EdgeInsets.symmetric(horizontal: 10), - border: const OutlineInputBorder( - borderSide: BorderSide(color: Colors.black), - ), ), ), ), diff --git a/lib/features/nutrition/widgets/ingredient_filter_row.dart b/lib/features/nutrition/widgets/ingredient_filter_row.dart index 2e4330673..f114db26f 100644 --- a/lib/features/nutrition/widgets/ingredient_filter_row.dart +++ b/lib/features/nutrition/widgets/ingredient_filter_row.dart @@ -68,9 +68,6 @@ class _IngredientFilterRowState extends ConsumerState { hintText: '${i18n.searchIngredient}...', prefixIcon: const Icon(Icons.search), contentPadding: const EdgeInsets.symmetric(horizontal: 10), - border: const OutlineInputBorder( - borderSide: BorderSide(color: Colors.black), - ), suffixIcon: _ClearSearchTermButton(controller: _ingredientNameController), ), ), diff --git a/lib/features/nutrition/widgets/nutritional_diary_table.dart b/lib/features/nutrition/widgets/nutritional_diary_table.dart index 5a1b541d7..71e7d3a5b 100644 --- a/lib/features/nutrition/widgets/nutritional_diary_table.dart +++ b/lib/features/nutrition/widgets/nutritional_diary_table.dart @@ -79,7 +79,7 @@ class NutritionalDiaryTable extends StatelessWidget { ) { return TableRow( decoration: BoxDecoration( - border: Border(top: BorderSide(color: Colors.grey[300]!)), + border: Border(top: BorderSide(color: Theme.of(context).colorScheme.outlineVariant)), ), children: [ From a1f4844f6c3e4b46da566b4ccf30bad734acfa2d Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Tue, 4 Aug 2026 11:45:54 +0200 Subject: [PATCH 18/22] Replace more hard coded colors with theme generated ones --- lib/core/widgets/error.dart | 6 +++++- .../add_exercise_multiselect_button.dart | 21 +++++++++---------- .../add_exercise/image_details_form.dart | 8 +++---- .../add_exercise/steps/step_5_images.dart | 18 +++++++++------- .../routines/widgets/plate_calculator.dart | 6 ++++-- 5 files changed, 34 insertions(+), 25 deletions(-) diff --git a/lib/core/widgets/error.dart b/lib/core/widgets/error.dart index 7009551de..21695c022 100644 --- a/lib/core/widgets/error.dart +++ b/lib/core/widgets/error.dart @@ -154,7 +154,11 @@ class _PlainErrorBody extends StatelessWidget { const SizedBox(height: 8), SelectableText( stacktrace.toString(), - style: const TextStyle(fontFamily: 'monospace', fontSize: 11, color: Colors.grey), + style: TextStyle( + fontFamily: 'monospace', + fontSize: 11, + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), ), ], ], diff --git a/lib/features/exercises/widgets/add_exercise/add_exercise_multiselect_button.dart b/lib/features/exercises/widgets/add_exercise/add_exercise_multiselect_button.dart index ae854471f..91fbabe48 100644 --- a/lib/features/exercises/widgets/add_exercise/add_exercise_multiselect_button.dart +++ b/lib/features/exercises/widgets/add_exercise/add_exercise_multiselect_button.dart @@ -28,6 +28,11 @@ class _AddExerciseMultiselectButtonState extends State extends State { widget.onAdd(widget.submissionImage); }, style: ElevatedButton.styleFrom( - backgroundColor: Theme.of(context).primaryColor, - foregroundColor: Colors.white, + backgroundColor: Theme.of(context).colorScheme.primary, + foregroundColor: Theme.of(context).colorScheme.onPrimary, padding: const EdgeInsets.symmetric(horizontal: 32, vertical: 12), ), child: Text( AppLocalizations.of(context).add, - style: const TextStyle(fontWeight: FontWeight.bold, color: Colors.white), + style: const TextStyle(fontWeight: FontWeight.bold), ), ), ], @@ -181,7 +181,7 @@ class ImagePreview extends StatelessWidget { constraints: const BoxConstraints(maxWidth: 300, maxHeight: 200), decoration: BoxDecoration( borderRadius: BorderRadius.circular(8), - border: Border.all(color: Colors.grey.shade300), + border: Border.all(color: Theme.of(context).colorScheme.outlineVariant), ), child: ClipRRect( borderRadius: BorderRadius.circular(8), diff --git a/lib/features/exercises/widgets/add_exercise/steps/step_5_images.dart b/lib/features/exercises/widgets/add_exercise/steps/step_5_images.dart index c5c5f4c7c..8ac1f2cb0 100644 --- a/lib/features/exercises/widgets/add_exercise/steps/step_5_images.dart +++ b/lib/features/exercises/widgets/add_exercise/steps/step_5_images.dart @@ -203,13 +203,17 @@ class _Step5ImagesState extends ConsumerState with ExerciseImagePic return Column( children: [ const SizedBox(height: 20), - Icon(Icons.add_photo_alternate, size: 80, color: Colors.grey.shade400), + Icon( + Icons.add_photo_alternate, + size: 80, + color: Theme.of(context).colorScheme.outline, + ), const SizedBox(height: 16), Text( 'No images selected', - style: Theme.of( - context, - ).textTheme.titleMedium?.copyWith(color: Colors.grey.shade600), + style: Theme.of(context).textTheme.titleMedium?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), ), const SizedBox(height: 24), // Camera and Gallery buttons @@ -240,9 +244,9 @@ class _Step5ImagesState extends ConsumerState with ExerciseImagePic padding: const EdgeInsets.symmetric(horizontal: 16.0), child: Text( 'Only JPEG, PNG and WEBP files below 20 MB are supported', - style: Theme.of( - context, - ).textTheme.bodySmall?.copyWith(color: Colors.grey.shade600), + style: Theme.of(context).textTheme.bodySmall?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), textAlign: TextAlign.center, ), ), diff --git a/lib/features/routines/widgets/plate_calculator.dart b/lib/features/routines/widgets/plate_calculator.dart index c6a9cc4f9..d3baa1418 100644 --- a/lib/features/routines/widgets/plate_calculator.dart +++ b/lib/features/routines/widgets/plate_calculator.dart @@ -34,7 +34,9 @@ class PlateWeight extends StatelessWidget { alignment: Alignment.center, margin: EdgeInsets.all(margin), decoration: BoxDecoration( - color: isSelected ? color : Colors.black12, + // Selected shows the real plate color, so its rim and label stay + // black whatever the theme. Unselected sits on the surface instead. + color: isSelected ? color : Theme.of(context).colorScheme.surfaceContainerHighest, shape: BoxShape.circle, border: Border.all(color: Colors.black, width: isSelected ? 2 : 0), ), @@ -44,7 +46,7 @@ class PlateWeight extends StatelessWidget { value.toString(), textAlign: TextAlign.center, style: TextStyle( - color: isSelected ? Colors.black : Colors.black87, + color: isSelected ? Colors.black : Theme.of(context).colorScheme.onSurfaceVariant, fontWeight: isSelected ? FontWeight.bold : FontWeight.normal, ), ), From 762b679eac80eade3d57ebec833885675f422bcc Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Tue, 4 Aug 2026 12:10:34 +0200 Subject: [PATCH 19/22] Only offer dynamic color where the platform supports it --- lib/core/consts.dart | 10 ++- .../account/widgets/settings/theme.dart | 21 +++--- lib/main.dart | 69 +++++++++++-------- lib/theme/dynamic_color.dart | 39 +++++++++++ .../account/widgets/settings_test.dart | 16 ++++- 5 files changed, 115 insertions(+), 40 deletions(-) create mode 100644 lib/theme/dynamic_color.dart diff --git a/lib/core/consts.dart b/lib/core/consts.dart index 157095a57..d7627dfde 100644 --- a/lib/core/consts.dart +++ b/lib/core/consts.dart @@ -59,9 +59,13 @@ const PREFS_USER_DARK_THEME = 'userDarkMode'; const PREFS_USER_LOCALE = 'userLocale'; const PREFS_LAST_SERVER = 'lastServer'; -/// User preference: use Material You dynamic colors from the platform (Android -/// 12+, iOS 18+, macOS 26, Windows/Linux accents) instead of the fixed wger -/// seed palette. Off by default. +/// User preference: use Material You dynamic colors from the platform instead +/// of the fixed wger seed palette. Off by default. +/// +/// Android 12+ supplies a wallpaper palette, macOS (10.14+), Windows and +/// GTK-based Linux a system accent color. iOS and the web have no +/// implementation, so the setting is only offered where dynamicColorAvailable +/// reports true. const PREFS_USE_DYNAMIC_COLOR = 'useDynamicColor'; /// Headless JWT auth: SharedPreferences keys. diff --git a/lib/features/account/widgets/settings/theme.dart b/lib/features/account/widgets/settings/theme.dart index 04bd94df1..6655f6017 100644 --- a/lib/features/account/widgets/settings/theme.dart +++ b/lib/features/account/widgets/settings/theme.dart @@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:wger/core/app_settings_notifier.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/theme/dynamic_color.dart'; class SettingsTheme extends ConsumerWidget { const SettingsTheme({super.key}); @@ -15,6 +16,9 @@ class SettingsTheme extends ConsumerWidget { final useDynamicColor = ref.watch( appSettingsProvider.select((s) => s.value?.useDynamicColor ?? false), ); + // Hidden while the probe is still running and where it comes back negative: + // the toggle does nothing on a platform without a dynamic palette. + final showDynamicColor = ref.watch(dynamicColorAvailableProvider).value ?? false; return Column( children: [ @@ -44,14 +48,15 @@ class SettingsTheme extends ConsumerWidget { }).toList(), ), ), - SwitchListTile( - key: const ValueKey('useDynamicColorSwitch'), - title: Text(i18n.useDynamicColor), - value: useDynamicColor, - onChanged: (bool value) { - ref.read(appSettingsProvider.notifier).setUseDynamicColor(value); - }, - ), + if (showDynamicColor) + SwitchListTile( + key: const ValueKey('useDynamicColorSwitch'), + title: Text(i18n.useDynamicColor), + value: useDynamicColor, + onChanged: (bool value) { + ref.read(appSettingsProvider.notifier).setUseDynamicColor(value); + }, + ), ], ); } diff --git a/lib/main.dart b/lib/main.dart index 25e84c4e1..04daee70e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -187,36 +187,49 @@ class MainApp extends ConsumerWidget { // incoming deep links as a side effect of being read. ref.watch(appLinkRouterProvider); - return authAsync.when( - loading: () => const MaterialApp(home: SplashScreen()), - error: (error, stack) => MaterialApp( - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, - home: AutoLoginErrorScreen(error: error), - ), - data: (authState) { - final themeMode = ref.watch( - appSettingsProvider.select((s) => s.value?.themeMode ?? ThemeMode.system), - ); - final userLocale = ref.watch( - appSettingsProvider.select((s) => s.value?.userLocale), - ); - final useDynamicColor = ref.watch( - appSettingsProvider.select((s) => s.value?.useDynamicColor ?? false), - ); + // Read before the builder below: its callback runs during the child's + // build, where ref.watch would be out of phase. + final themeMode = ref.watch( + appSettingsProvider.select((s) => s.value?.themeMode ?? ThemeMode.system), + ); + final userLocale = ref.watch( + appSettingsProvider.select((s) => s.value?.userLocale), + ); + final useDynamicColor = ref.watch( + appSettingsProvider.select((s) => s.value?.useDynamicColor ?? false), + ); - return DynamicColorBuilder( - builder: (lightDynamic, darkDynamic) { - // One seed drives both themes: re-tonalising normalises the hue, - // so it doesn't matter which of the two schemes it comes from. - final seed = (lightDynamic ?? darkDynamic)?.primary; - final light = useDynamicColor && seed != null - ? wgerThemeFromSeed(seed, Brightness.light) - : wgerLightTheme; - final dark = useDynamicColor && seed != null - ? wgerThemeFromSeed(seed, Brightness.dark) - : wgerDarkTheme; + // Above the auth switch so the platform call is already in flight while the + // splash screen is up. Below it, the first frame after login renders the + // fixed palette and then repaints. + return DynamicColorBuilder( + builder: (lightDynamic, darkDynamic) { + // One seed drives both themes: re-tonalising normalises the hue, so it + // doesn't matter which of the two schemes it comes from. + final seed = (lightDynamic ?? darkDynamic)?.primary; + final light = useDynamicColor && seed != null + ? wgerThemeFromSeed(seed, Brightness.light) + : wgerLightTheme; + final dark = useDynamicColor && seed != null + ? wgerThemeFromSeed(seed, Brightness.dark) + : wgerDarkTheme; + return authAsync.when( + loading: () => MaterialApp( + theme: light, + darkTheme: dark, + themeMode: themeMode, + home: const SplashScreen(), + ), + error: (error, stack) => MaterialApp( + theme: light, + darkTheme: dark, + themeMode: themeMode, + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + home: AutoLoginErrorScreen(error: error), + ), + data: (authState) { return MaterialApp( title: 'wger', navigatorKey: navigatorKey, diff --git a/lib/theme/dynamic_color.dart b/lib/theme/dynamic_color.dart new file mode 100644 index 000000000..8d730c823 --- /dev/null +++ b/lib/theme/dynamic_color.dart @@ -0,0 +1,39 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:dynamic_color/dynamic_color.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; + +/// Whether the platform can supply a dynamic color palette. +/// +/// True on Android 12+, which exposes a wallpaper palette, and on macOS, +/// Windows and GTK-based Linux, which expose a system accent color. False +/// everywhere else, including iOS, the web and Android below 12, where the +/// dynamic color setting would be a silent no-op. +final dynamicColorAvailableProvider = FutureProvider((ref) async { + try { + if (await DynamicColorPlugin.getCorePalette() != null) { + return true; + } + + return await DynamicColorPlugin.getAccentColor() != null; + } on PlatformException { + return false; + } +}); diff --git a/test/features/account/widgets/settings_test.dart b/test/features/account/widgets/settings_test.dart index a5c57480b..c3d1ae6d9 100644 --- a/test/features/account/widgets/settings_test.dart +++ b/test/features/account/widgets/settings_test.dart @@ -26,6 +26,7 @@ import 'package:wger/core/app_settings_notifier.dart'; import 'package:wger/core/consts.dart'; import 'package:wger/features/account/widgets/settings.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/theme/dynamic_color.dart'; import 'settings_test.mocks.dart'; @@ -49,10 +50,13 @@ void main() { ).thenAnswer((_) async {}); }); - Widget createSettingsScreen({locale = 'en'}) { + Widget createSettingsScreen({locale = 'en', bool dynamicColorAvailable = true}) { return riverpod.ProviderScope( overrides: [ appSettingsPrefsProvider.overrideWithValue(mockSharedPreferences), + // The plugin has no test implementation and would report the toggle as + // unsupported, which hides it. + dynamicColorAvailableProvider.overrideWith((ref) async => dynamicColorAvailable), ], child: MaterialApp( locale: Locale(locale), @@ -96,6 +100,16 @@ void main() { ); expect(switchWidget.value, true); }); + + testWidgets('dynamic color switch is hidden where the platform has none', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(createSettingsScreen(dynamicColorAvailable: false)); + await tester.pumpAndSettle(); + + expect(find.byKey(const ValueKey('useDynamicColorSwitch')), findsNothing); + expect(find.byKey(const ValueKey('themeModeDropdown')), findsOneWidget); + }); }); group('Language switcher', () { From 5c77a99bfca624659bd82566cd09a8f7238df757 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Tue, 4 Aug 2026 12:19:52 +0200 Subject: [PATCH 20/22] Apply dynamic color to the high contrast themes too --- lib/core/app_settings_notifier.dart | 4 +- lib/core/app_settings_notifier.freezed.dart | 2 +- lib/core/app_settings_notifier.g.dart | 2 +- lib/core/consts.dart | 3 +- .../account/widgets/settings/theme.dart | 3 +- lib/main.dart | 31 ++++++---- lib/theme/dynamic_color.dart | 18 ++++++ lib/theme/theme.dart | 11 +++- test/theme/dynamic_color_test.dart | 59 +++++++++++++++++++ test/theme/theme_test.dart | 19 ++++++ 10 files changed, 132 insertions(+), 20 deletions(-) create mode 100644 test/theme/dynamic_color_test.dart diff --git a/lib/core/app_settings_notifier.dart b/lib/core/app_settings_notifier.dart index 699ee5397..7d49bb390 100644 --- a/lib/core/app_settings_notifier.dart +++ b/lib/core/app_settings_notifier.dart @@ -91,7 +91,7 @@ sealed class AppSettings with _$AppSettings { /// When true, the app palette follows the platform dynamic colors /// (system wallpaper on Android 12+) instead of the fixed wger seeds. /// A no-op on platforms without dynamic color support. - @Default(false) bool useDynamicColor, + @Default(USE_DYNAMIC_COLOR_DEFAULT) bool useDynamicColor, }) = _AppSettings; } @@ -230,7 +230,7 @@ class AppSettingsNotifier extends _$AppSettingsNotifier { // Future _loadUseDynamicColor() async => - (await _prefs.getBool(PREFS_USE_DYNAMIC_COLOR)) ?? false; + (await _prefs.getBool(PREFS_USE_DYNAMIC_COLOR)) ?? USE_DYNAMIC_COLOR_DEFAULT; Future setUseDynamicColor(bool value) async { final current = state.asData?.value ?? const AppSettings(); diff --git a/lib/core/app_settings_notifier.freezed.dart b/lib/core/app_settings_notifier.freezed.dart index 5641ac4da..484255ad0 100644 --- a/lib/core/app_settings_notifier.freezed.dart +++ b/lib/core/app_settings_notifier.freezed.dart @@ -213,7 +213,7 @@ return $default(_that.themeMode,_that.dashboardItems,_that.userLocale,_that.keep class _AppSettings implements AppSettings { - const _AppSettings({this.themeMode = ThemeMode.system, final List dashboardItems = const [], this.userLocale, this.keepDataOnLogout = KEEP_DATA_ON_LOGOUT_DEFAULT, this.allowSelfSignedCerts = ALLOW_SELF_SIGNED_CERTS_DEFAULT, this.useDynamicColor = false}): _dashboardItems = dashboardItems; + const _AppSettings({this.themeMode = ThemeMode.system, final List dashboardItems = const [], this.userLocale, this.keepDataOnLogout = KEEP_DATA_ON_LOGOUT_DEFAULT, this.allowSelfSignedCerts = ALLOW_SELF_SIGNED_CERTS_DEFAULT, this.useDynamicColor = USE_DYNAMIC_COLOR_DEFAULT}): _dashboardItems = dashboardItems; @override@JsonKey() final ThemeMode themeMode; diff --git a/lib/core/app_settings_notifier.g.dart b/lib/core/app_settings_notifier.g.dart index bdc2e545f..976e1ad22 100644 --- a/lib/core/app_settings_notifier.g.dart +++ b/lib/core/app_settings_notifier.g.dart @@ -33,7 +33,7 @@ final class AppSettingsNotifierProvider AppSettingsNotifier create() => AppSettingsNotifier(); } -String _$appSettingsNotifierHash() => r'309dcb1604e5cc002be4cff2b844a978388c190c'; +String _$appSettingsNotifierHash() => r'71c64280cc0755452c9610247852a982be21a157'; abstract class _$AppSettingsNotifier extends $AsyncNotifier { FutureOr build(); diff --git a/lib/core/consts.dart b/lib/core/consts.dart index d7627dfde..e5d41312c 100644 --- a/lib/core/consts.dart +++ b/lib/core/consts.dart @@ -60,13 +60,14 @@ const PREFS_USER_LOCALE = 'userLocale'; const PREFS_LAST_SERVER = 'lastServer'; /// User preference: use Material You dynamic colors from the platform instead -/// of the fixed wger seed palette. Off by default. +/// of the fixed wger seed palette. Defaults to [USE_DYNAMIC_COLOR_DEFAULT]. /// /// Android 12+ supplies a wallpaper palette, macOS (10.14+), Windows and /// GTK-based Linux a system accent color. iOS and the web have no /// implementation, so the setting is only offered where dynamicColorAvailable /// reports true. const PREFS_USE_DYNAMIC_COLOR = 'useDynamicColor'; +const USE_DYNAMIC_COLOR_DEFAULT = false; /// Headless JWT auth: SharedPreferences keys. /// diff --git a/lib/features/account/widgets/settings/theme.dart b/lib/features/account/widgets/settings/theme.dart index 6655f6017..a500fdcac 100644 --- a/lib/features/account/widgets/settings/theme.dart +++ b/lib/features/account/widgets/settings/theme.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:wger/core/app_settings_notifier.dart'; +import 'package:wger/core/consts.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/theme/dynamic_color.dart'; @@ -14,7 +15,7 @@ class SettingsTheme extends ConsumerWidget { appSettingsProvider.select((s) => s.value?.themeMode ?? ThemeMode.system), ); final useDynamicColor = ref.watch( - appSettingsProvider.select((s) => s.value?.useDynamicColor ?? false), + appSettingsProvider.select((s) => s.value?.useDynamicColor ?? USE_DYNAMIC_COLOR_DEFAULT), ); // Hidden while the probe is still running and where it comes back negative: // the toggle does nothing on a platform without a dynamic palette. diff --git a/lib/main.dart b/lib/main.dart index 04daee70e..d65f1fd3a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -71,6 +71,7 @@ import 'package:wger/features/routines/screens/settings_plates_screen.dart'; import 'package:wger/features/trophies/screens/trophy_screen.dart'; import 'package:wger/features/weight/screens/weight_screen.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/theme/dynamic_color.dart'; import 'package:wger/theme/theme.dart'; void _setupLogging() { @@ -196,7 +197,7 @@ class MainApp extends ConsumerWidget { appSettingsProvider.select((s) => s.value?.userLocale), ); final useDynamicColor = ref.watch( - appSettingsProvider.select((s) => s.value?.useDynamicColor ?? false), + appSettingsProvider.select((s) => s.value?.useDynamicColor ?? USE_DYNAMIC_COLOR_DEFAULT), ); // Above the auth switch so the platform call is already in flight while the @@ -204,15 +205,21 @@ class MainApp extends ConsumerWidget { // fixed palette and then repaints. return DynamicColorBuilder( builder: (lightDynamic, darkDynamic) { - // One seed drives both themes: re-tonalising normalises the hue, so it - // doesn't matter which of the two schemes it comes from. - final seed = (lightDynamic ?? darkDynamic)?.primary; - final light = useDynamicColor && seed != null - ? wgerThemeFromSeed(seed, Brightness.light) - : wgerLightTheme; - final dark = useDynamicColor && seed != null - ? wgerThemeFromSeed(seed, Brightness.dark) - : wgerDarkTheme; + final seed = appThemeSeed( + useDynamicColor: useDynamicColor, + lightDynamic: lightDynamic, + darkDynamic: darkDynamic, + ); + final light = seed == null ? wgerLightTheme : wgerThemeFromSeed(seed, Brightness.light); + final dark = seed == null ? wgerDarkTheme : wgerThemeFromSeed(seed, Brightness.dark); + // The OS accessibility setting swaps to these, so they follow the seed + // too rather than dropping back to the fixed palette. + final lightHc = seed == null + ? wgerLightThemeHc + : wgerThemeFromSeed(seed, Brightness.light, highContrast: true); + final darkHc = seed == null + ? wgerDarkThemeHc + : wgerThemeFromSeed(seed, Brightness.dark, highContrast: true); return authAsync.when( loading: () => MaterialApp( @@ -236,8 +243,8 @@ class MainApp extends ConsumerWidget { scaffoldMessengerKey: scaffoldMessengerKey, theme: light, darkTheme: dark, - highContrastTheme: wgerLightThemeHc, - highContrastDarkTheme: wgerDarkThemeHc, + highContrastTheme: lightHc, + highContrastDarkTheme: darkHc, themeMode: themeMode, locale: userLocale, home: _getHomeScreen(authState), diff --git a/lib/theme/dynamic_color.dart b/lib/theme/dynamic_color.dart index 8d730c823..e28065775 100644 --- a/lib/theme/dynamic_color.dart +++ b/lib/theme/dynamic_color.dart @@ -17,6 +17,7 @@ */ import 'package:dynamic_color/dynamic_color.dart'; +import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; @@ -37,3 +38,20 @@ final dynamicColorAvailableProvider = FutureProvider((ref) async { return false; } }); + +/// The color to seed the app themes from, or null to keep the fixed palette. +/// +/// Null whenever the setting is off or the platform returned nothing. A single +/// seed drives both brightnesses: re-tonalising normalises the hue, so it does +/// not matter which of the two platform schemes it is taken from. +Color? appThemeSeed({ + required bool useDynamicColor, + required ColorScheme? lightDynamic, + required ColorScheme? darkDynamic, +}) { + if (!useDynamicColor) { + return null; + } + + return (lightDynamic ?? darkDynamic)?.primary; +} diff --git a/lib/theme/theme.dart b/lib/theme/theme.dart index 66cf6311f..e5d131393 100644 --- a/lib/theme/theme.dart +++ b/lib/theme/theme.dart @@ -154,13 +154,20 @@ final wgerDarkThemeHc = FlexThemeData.dark( /// Builds a wger theme for [brightness] with the palette generated from [seed], /// e.g. the platform's dynamic color. Sub-themes, app bar style and typography /// match the fixed themes, so only the hues change. -ThemeData wgerThemeFromSeed(Color seed, Brightness brightness) { +/// +/// With [highContrast] the palette is spread over a wider tonal range, matching +/// the fixed high contrast themes the OS accessibility setting switches to. +ThemeData wgerThemeFromSeed( + Color seed, + Brightness brightness, { + bool highContrast = false, +}) { final isDark = brightness == Brightness.dark; return (isDark ? FlexThemeData.dark : FlexThemeData.light)( colorScheme: SeedColorScheme.fromSeeds( primaryKey: seed, brightness: brightness, - tones: FlexTones.vivid(brightness), + tones: highContrast ? FlexTones.ultraContrast(brightness) : FlexTones.vivid(brightness), ), useMaterial3: true, appBarStyle: isDark ? null : FlexAppBarStyle.primary, diff --git a/test/theme/dynamic_color_test.dart b/test/theme/dynamic_color_test.dart new file mode 100644 index 000000000..57976d416 --- /dev/null +++ b/test/theme/dynamic_color_test.dart @@ -0,0 +1,59 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:wger/theme/dynamic_color.dart'; + +void main() { + final light = ColorScheme.fromSeed(seedColor: const Color(0xFF6750A4)); + final dark = ColorScheme.fromSeed( + seedColor: const Color(0xFFB3261E), + brightness: Brightness.dark, + ); + + group('appThemeSeed', () { + test('is null while the setting is off, whatever the platform offers', () { + expect( + appThemeSeed(useDynamicColor: false, lightDynamic: light, darkDynamic: dark), + isNull, + ); + }); + + test('is null when the platform offers nothing', () { + expect( + appThemeSeed(useDynamicColor: true, lightDynamic: null, darkDynamic: null), + isNull, + ); + }); + + test('prefers the light scheme when both are present', () { + expect( + appThemeSeed(useDynamicColor: true, lightDynamic: light, darkDynamic: dark), + light.primary, + ); + }); + + test('falls back to the dark scheme on its own', () { + expect( + appThemeSeed(useDynamicColor: true, lightDynamic: null, darkDynamic: dark), + dark.primary, + ); + }); + }); +} diff --git a/test/theme/theme_test.dart b/test/theme/theme_test.dart index b310a8bf8..3e1b30bf8 100644 --- a/test/theme/theme_test.dart +++ b/test/theme/theme_test.dart @@ -60,6 +60,25 @@ void main() { } }); + test('high contrast spreads the palette further apart', () { + double contrast(Color a, Color b) { + final values = [a.computeLuminance(), b.computeLuminance()]..sort(); + + return (values.last + 0.05) / (values.first + 0.05); + } + + for (final brightness in Brightness.values) { + final normal = wgerThemeFromSeed(seed, brightness).colorScheme; + final hc = wgerThemeFromSeed(seed, brightness, highContrast: true).colorScheme; + + expect( + contrast(hc.onSurface, hc.surface), + greaterThan(contrast(normal.onSurface, normal.surface)), + reason: 'no extra contrast in $brightness', + ); + } + }); + test('keeps the wger typography', () { final theme = wgerThemeFromSeed(seed, Brightness.light); From 9f8e27b2f2c3350f9467c71d828a293b5064ae0a Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Tue, 4 Aug 2026 13:01:36 +0200 Subject: [PATCH 21/22] Updated goldens --- .../nutritional_plan_1_default_view.png | Bin 20991 -> 20959 bytes ...ional_plan_2_one_meal_with_ingredients.png | Bin 19705 -> 19449 bytes ...nal_plan_3_both_meals_with_ingredients.png | Bin 20986 -> 20831 bytes .../goldens/routine_logs_screen_detail.png | Bin 15521 -> 15741 bytes 4 files changed, 0 insertions(+), 0 deletions(-) diff --git a/test/features/nutrition/screens/goldens/nutritional_plan_1_default_view.png b/test/features/nutrition/screens/goldens/nutritional_plan_1_default_view.png index 5d6a6d9ce06005e0dcafeaa3cc911ad8501538d1..38cf4bfa390b4d6c1444d3845ffef76e63c40f43 100644 GIT binary patch literal 20959 zcmeFZbzD^KyDz+G3`!IfDUlEm5NTluk(TZnP^6n7hZICgLZqanJER+>q`PCJyN71r zUE}jRd++yr_TK0B?6c4N{&V;PKEt}#z3%(U@AbW}H9<-WQUo_CZUO*6AS3-s1pqLR z0D!fIj|=|iiT-VI@DDcZrHmRr_~U{9E)e{T0aKBB2^95Ft^)uqAoEI0%{6gr*4#tw zX!iR0@Imo8uH}sy}5P&EH9_EHW&_e^L=U$};M!F+z54 zl7%+JXW{3HLfZE)qFUm2e$u~N@orfrij#T1`Sq-4(=FRG?kxH26W2;K%w&Z!HhXCE z9smTI-%ua|SK=GHgaqbSWMOd3>3Y1DGX3PLy#==r`FZ%9A(s0Z0NfWHzyO~4q+$Vv zfEXUo4EPcPJ{Z_k;1=;;001trBLLi{{SOB|YM9c=DJpNh=MMl!_L;H{p4Zn6>XAZ( zeRptBMnwNI%?D(}#r!42ia4(YTpfRB?v+0qIO&JikxMVmL+3#}{#?2>?DgTi>vNwB#xsm7~wsPvaXa$q0Jzl6K2G7?Z0eS`Tsg1H^X# zpS9Rmr5i0x)PSg?+~t+(R#C=dk;$;fUqzM(fk3evBG^LnIo>fWovdy|sJ+JX@P$hh zj0AjExjln-ljhC^uE zg9eWU0KzWJIW9XOhpjY(*?dUV?HhO5`e=lKX8RifN&AH>B}5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mg!w|eA^R{%bi33hfr5fLjl&=+h@~N92B{VLE*qe+OWD;c4-kCy`!|Yex zKFl9<$Qn%-+tcNr5&zn(p>m<*mP=(&eF$)$uf%fuY8juHs6Wj-3)Sh|H4Kxuc`=9< z2>a`OnnjUML>_P|CG72!Z?_G~_M3;#4XGb>P7V99#Y==7FXL~1UU3#Vu~<%f&X4gaTRA2UK zmM|X&yZ;!oi&%HiTixzzZ=3?5d`t36C)HyQPAzeUlT@!HM99c$+$&5SOO4YnzA3l; z)7$(zt3SIqC4Fph28VbvCZ58E-m->Lfx_xdIp=U)KU7&e?c#drqAgy3#mThiGSmPZ z8f#85jH$Y3vYN)qT`PteHZu)jFXjd!=mrcm+mxfEf`>oTU#(QLBGEYIk+)%d7l6%NO`P;|RZ3a*c5e1E5}QL-^*jO91Kh-j6)Hru-LHLO0!?Vr zfE>@~XZNVp-hGjI0-haF=F_krA5pv+acuzumM2&p0ExSd!(Z|DKR?4dqrYMHf3z?j zTUhlK>AZzk+mIaM|F0m;)Ypmew7TsehsE-540q%v)bw<2Xf@jV&dhkaF+7c+zUA2H zwA?pe?>0l_2&p`4VjG;%Xgb%AIXNo_c_ldOIVnd-l_czRJ_h^~Q-HjTvUKs|SN{JW D-;8ND diff --git a/test/features/nutrition/screens/goldens/nutritional_plan_2_one_meal_with_ingredients.png b/test/features/nutrition/screens/goldens/nutritional_plan_2_one_meal_with_ingredients.png index 962bf3bd937835b55a6bae8ce8292717a8123d51..87adf150bd72b576d63d204b8dc7fbd02cb2cb2d 100644 GIT binary patch literal 19449 zcmc({2UL^Ywk{kjpdug^K&py}f`Et+YEV&7K@kDzL5UQphTemsfV8Nn^e(;kPDDyX zdM|+l2)%_C0x9Hw@jLt5caMGUIp5yr{`WElBap1M-c{zB^Ld^*;r-)BYAnaNkAXlS zmizbaJOP0iwm_hR^G6tgcP^V8R{>rQIo-ama|HPEKJp?6_?^M&iP~*Yekbn&2y_l~ z|IRHP_qgS8kI%;D@jH_aE}r*$$6tT=@Z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O_+%G;@woJ$b@KX8+)=y9CAZWZK z8#?j$k-R<2NlEPNS^scSb!+SIYO3@1(=S}$a_q90U-XC_cR$Kkk8{KsU-yHE^Dzz< z_#Bs#hY>PEmdsYAXy+z%0!|kim>_1kRWuT;=5>1x?MzMaf2MrVAY^a;=Hho^;M0TX zXUd#MzEdj*%tT)GaGR%5)3`>bF2;=`^P6WvG#Yd!uupk^Z=2j$ft*CWeytpipEjjjyM@SVl2D?Wt+{Oxi!Tk@y! z+G7qF1O=(}-s$UBEmj6zEZ)aVyIH(GQ{SBX_ z`uBc)Y8YF&9Pxb(ldWkJFddmV5hO?(%9OaI(<~6^4U46}Dcw3jJ z?(%}iI-_ji%lwR-km!)M3XT)Wv3V)9OaD;DQ8CRZBk~U&?pUaV%{S1@3BsdRL9EEO zoP_>Gudn$b6w&k^{#p*iVQ0e^NBvD)uOYKuh7G diff --git a/test/features/nutrition/screens/goldens/nutritional_plan_3_both_meals_with_ingredients.png b/test/features/nutrition/screens/goldens/nutritional_plan_3_both_meals_with_ingredients.png index c1fc1f34d32f6baaf6c3d3e0d22fb84a27eed21e..4608111f6dfc52833852dd32430b34e8f6c1ba5f 100644 GIT binary patch literal 20831 zcmd43cUV-*mN&c+0Y!oef|4bOWD_|n83D;iRwU;v8Q~xxLMu7voSK}I1Y2@!asz_I zhDKsb6Z+llnVEa%&Y77z^L*d)zULoK@2Xw3_R4G3uMB^oDo;vGLks`_siK061_0n4 z0s#KT6+-aIeIt@*;GfH`PZhPUfdBbkc@qZy#&gw>e+rZj(QN_%6QC#~t@So_8{wI% zb<~R8Lk|oM9fySQP;T-td)&Bo|E2+D+;q%+(~s&D29({j&3}XiCjPK&3?BuK3)R)N zq&{Q@DOJmuOD9)!jJ@&)kS)tF_gj^F{-C6$GO)Cb;qei)&9TbJp9Pm^RHy>lNz*JBGQ z+yJTBIl(Rbi(isAU@gYh84^v~Gm83;ci85BzdX&pRkGFwePLvzW!v>7v&x`mL{ac; zp$_*Z;QwN*HuTZ#(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P>j0#84Xim7tj-?9_bAh(^~zdJ_0_QS@!{a?$LE?=%* zWfAD@?|)sE``rb1`I?-{vwup0_SSix`uaTc#e~hjzPcLEE67&4l<&^WaOCQ}+Ul== ztelF{r5}E*n36o9$ diff --git a/test/features/routines/screens/goldens/routine_logs_screen_detail.png b/test/features/routines/screens/goldens/routine_logs_screen_detail.png index 16dd8465d0aa30bbdcf823131adfbf6ba582d941..9a6a765de798f3d7e4c756044d56fb18f222cba6 100644 GIT binary patch literal 15741 zcmdUWcT|&Ew|5*AR8&MoI;g0Cv_S+E2#BDJA|N8tVFW1}iqy~ojE>TY1?dn31(7Bo zEf7#Ck={d3l$Jnf0YX9u$#-zxnft!$e($|AbJzXW`uvCWJUQn)`|R@DzrD{f@`j<_ z{=GtbArQ#^t3T=9gg|zzK_DEY-JIZ!l+8XJ@Mov@rK`7ggMY!h??!;<9o{$fE=cC@I`(geTy#|AshEtJy?miF$~lp5`h3%kf~DDM#$3>Re!!-% zmK~$ai=qCM)o|b+%Yc8E`pV;dEe8}72Y=t4u=C$7IKRCKHm9;U}=&Y^Q z+jeZ$CF$Y+7czeFE%$>vLw7>D)&E6Tf7R-LRuyN;G&W+!;nJ<18Hm7p#&H}UKgM4| z&j0RXU)G*)>Q4tHXPGDJ;lI?U!40iLrui^x&4YE!fvT@rOKU3vc9Goj==WyW^VBJm zz%9%X^7%@0W z3sQf;=9v5xF4i7oquW?+W@pxo4wfsj6R}g@%nvBm-*E2jA3Ktp=I4bc2d-lH(Cbks z8$pTtdPjUZgGD#LIqbDGBhhY?P$k@*n}+Qv7i5-vAJf|tHEp`l$x2RFw#ujh#pJ{FI(q3OiiIJ zYii2Get?if)&Cqw{aJ;dDHDT)^;Smx~DX>crb0#v%Lqq z)^gp#%GyqR>B7Wv?O=M~inQnAFme0ss#1WjdS{YtH=3_YUWOq%Jz>|WE-7EX5>-1m z9=OU(QucP*R;#{zwd_$@{}W5T1bQ>kAvZmT3TD?##sy8N)>o@6`HF9RDe)Y-6Ta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_8ZqtXwuag#?Mj5>r-faxeiPp&H%7i*^EjL-oP>Bc zxb9w`IVy%9D!n0kwjF9mivnu9WPsthj!qV6$+(e2w3;h&m+J+enL^sA2Gox2AC~my z#-~Y7vZ?VZ2TRgevX%$e@V;3N;&>YUR5-1X%~l|4JoadD9$u(gi$6yhd( zbl{j=kk#oq;Ln-A@6kzl&K)@f8ej=4HVWP9BdZaSj3 zeS;)6%Y5xO7;DRTYA*+^`PS!mDqu~%#pL!DLtI=Qvc3^wOOo?<0JtEZ>eHu94lp}W zk!i-B(7sIc?u3bScXG|SZQ-VyC%9QYH&o;cdX$t;QVzLxQ?5yk-}knPVzGkhD^X7l z?gn}bALj93+;98#04Sr?3&7Om1@fVR@BFUh5NNPfly$SaOzd!L?Ty`g;CFV%Bot(G zZ(5#|9kHC57WL0Q&c%fdD0S$ZEPS8*eO9E!=W)n{a)|axtl){GXQNY(K(N$hz>~Nj zW7M(=omHWVhGsrf1~eR7_FlU=2;Pt?r`>nr%63)$(h-UL(D1+F@z zecL}J3zLz|Rj-7*N_y(>j2vliI8x+V;InNxk_^iQotL=$(lql(9={Hf;rXgAP|I_2 zulH0sohGc|AKQieCOwO4C@bOP#bQm?>7whUurIC^=K{ae874Roo}I0 zG$cAjDx?n}$AYx7M#Ze*N(q9|O$EoccS-?Y8}n-UJFc=Jxx%s&iDbYo^XU)4sY6|-3)!sb`&wR>cvZy@u zvT6@C`cHhEZ0NSYRpYGFseFOAQ%a(Y9av=OGPt6eQGz=7nrT5He+~o(zxu4(e`1IQ z#lqTu6hUMMK{;x8>Sf#8QX{vcosRoj_?Mk97bYhuqID+cGBj=h(q2!-(G!YYMu zJTWc;g5tMSfo`e{BSv?*8Xpy=&?ckzr0=(N_72P`M7~ Date: Tue, 4 Aug 2026 11:10:50 +0000 Subject: [PATCH 22/22] Bump drift from 2.34.2 to 2.34.3 Bumps [drift](https://github.com/simolus3/drift) from 2.34.2 to 2.34.3. - [Release notes](https://github.com/simolus3/drift/releases) - [Commits](https://github.com/simolus3/drift/compare/drift-2.34.2...drift-2.34.3) --- updated-dependencies: - dependency-name: drift dependency-version: 2.34.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 62d636a51..23f60b9b5 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -365,10 +365,10 @@ packages: dependency: "direct main" description: name: drift - sha256: "84688491040b0ceb26575709a84d701c84ad4df4d8aff020adf6d85f155fb0dd" + sha256: "3a3f1f6f905037d7426e4c445854139fd6a3d592135f7c96d7931682b73d16f4" url: "https://pub.dev" source: hosted - version: "2.34.2" + version: "2.34.3" drift_dev: dependency: "direct dev" description: diff --git a/pubspec.yaml b/pubspec.yaml index 6ee01e1a1..73f950cb3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -37,7 +37,7 @@ dependencies: clock: ^1.1.2 collection: ^1.19.1 cupertino_icons: ^1.0.9 - drift: ^2.34.2 + drift: ^2.34.3 dynamic_color: ^1.8.1 equatable: ^2.1.0 extended_image: ^10.1.0