mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 16:00:41 +00:00
EV100 -> Ev100
This commit is contained in:
parent
f6609d3072
commit
cbb2e87237
3 changed files with 4 additions and 4 deletions
|
@ -207,7 +207,7 @@ class _UserPreferencesProviderState extends State<UserPreferencesProvider> with
|
|||
widget.userPreferencesService.primaryColor = primaryColor;
|
||||
}
|
||||
|
||||
void toggleShowEV100() {
|
||||
void toggleShowEv100() {
|
||||
setState(() {
|
||||
_showEv100 = !_showEv100;
|
||||
});
|
||||
|
|
|
@ -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),
|
||||
),
|
||||
);
|
||||
|
|
|
@ -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)}'),
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue