EV100 -> Ev100

This commit is contained in:
Vadim 2024-01-15 20:19:57 +01:00
parent f6609d3072
commit cbb2e87237
3 changed files with 4 additions and 4 deletions

View file

@ -207,7 +207,7 @@ class _UserPreferencesProviderState extends State<UserPreferencesProvider> with
widget.userPreferencesService.primaryColor = primaryColor; widget.userPreferencesService.primaryColor = primaryColor;
} }
void toggleShowEV100() { void toggleShowEv100() {
setState(() { setState(() {
_showEv100 = !_showEv100; _showEv100 = !_showEv100;
}); });

View file

@ -16,7 +16,7 @@ class ShowEv100ListTile extends StatelessWidget {
secondary: const Icon(Icons.adjust), secondary: const Icon(Icons.adjust),
title: Text(S.of(context).showEv100), title: Text(S.of(context).showEv100),
value: context.isPro && UserPreferencesProvider.showEv100Of(context), value: context.isPro && UserPreferencesProvider.showEv100Of(context),
onChanged: (_) => UserPreferencesProvider.of(context).toggleShowEV100(), onChanged: (_) => UserPreferencesProvider.of(context).toggleShowEv100(),
contentPadding: const EdgeInsets.symmetric(horizontal: Dimens.paddingM), contentPadding: const EdgeInsets.symmetric(horizontal: Dimens.paddingM),
), ),
); );

View file

@ -166,13 +166,13 @@ void main() {
); );
testWidgets( testWidgets(
'Toggle EV100', 'Toggle Ev100',
(tester) async { (tester) async {
when(() => mockUserPreferencesService.showEv100).thenReturn(false); when(() => mockUserPreferencesService.showEv100).thenReturn(false);
await pumpTestWidget( await pumpTestWidget(
tester, tester,
builder: (context) => ElevatedButton( builder: (context) => ElevatedButton(
onPressed: () => UserPreferencesProvider.of(context).toggleShowEV100(), onPressed: () => UserPreferencesProvider.of(context).toggleShowEv100(),
child: Text('${UserPreferencesProvider.showEv100Of(context)}'), child: Text('${UserPreferencesProvider.showEv100Of(context)}'),
), ),
); );