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;
}
void toggleShowEV100() {
void toggleShowEv100() {
setState(() {
_showEv100 = !_showEv100;
});

View file

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

View file

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