mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 00:40:39 +00:00
fixed trailing commas
This commit is contained in:
parent
3c47da5218
commit
7ba54a4405
15 changed files with 16 additions and 16 deletions
|
@ -27,7 +27,7 @@ class MockIAPProductsProviderState extends State<MockIAPProductsProvider> {
|
||||||
IAPProduct(
|
IAPProduct(
|
||||||
storeId: IAPProductType.paidFeatures.storeId,
|
storeId: IAPProductType.paidFeatures.storeId,
|
||||||
status: _purchased ? IAPProductStatus.purchased : IAPProductStatus.purchasable,
|
status: _purchased ? IAPProductStatus.purchased : IAPProductStatus.purchasable,
|
||||||
)
|
),
|
||||||
]),
|
]),
|
||||||
child: widget.child,
|
child: widget.child,
|
||||||
);
|
);
|
||||||
|
|
|
@ -23,7 +23,7 @@ extension MeteringScreenLayoutConfigJson on MeteringScreenLayoutConfig {
|
||||||
|
|
||||||
return <MeteringScreenLayoutFeature, bool>{
|
return <MeteringScreenLayoutFeature, bool>{
|
||||||
for (final f in MeteringScreenLayoutFeature.values)
|
for (final f in MeteringScreenLayoutFeature.values)
|
||||||
f: (data[migratedIndex(f).toString()] ?? data[f.name]) as bool? ?? true
|
f: (data[migratedIndex(f).toString()] ?? data[f.name]) as bool? ?? true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ class _CameraPreviewBuilderState extends State<_CameraPreviewBuilder> {
|
||||||
context,
|
context,
|
||||||
CameraFeature.spotMetering,
|
CameraFeature.spotMetering,
|
||||||
))
|
))
|
||||||
CameraSpotDetector(onSpotTap: widget.onSpotTap)
|
CameraSpotDetector(onSpotTap: widget.onSpotTap),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
@ -97,7 +97,7 @@ class CameraContainer extends StatelessWidget {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ class MeteringTopBar extends StatelessWidget {
|
||||||
child: preview,
|
child: preview,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -92,7 +92,7 @@ class _ReadingValueBuilder extends StatelessWidget {
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
),
|
),
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,7 +120,7 @@ class _CalibrationUnit extends StatelessWidget {
|
||||||
tooltip: S.of(context).tooltipResetToZero,
|
tooltip: S.of(context).tooltipResetToZero,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ class _EquipmentProfilesScreenState extends State<EquipmentProfilesScreen> {
|
||||||
SliverFillRemaining(
|
SliverFillRemaining(
|
||||||
hasScrollBody: false,
|
hasScrollBody: false,
|
||||||
child: _EquipmentProfilesListPlaceholder(onTap: _addProfile),
|
child: _EquipmentProfilesListPlaceholder(onTap: _addProfile),
|
||||||
)
|
),
|
||||||
]
|
]
|
||||||
: [
|
: [
|
||||||
SliverList(
|
SliverList(
|
||||||
|
|
|
@ -135,7 +135,7 @@ class _DialogFilterState<T> extends State<DialogFilter<T>> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -51,7 +51,7 @@ class _DialogSwitchState<T> extends State<DialogSwitch<T>> {
|
||||||
padding: const EdgeInsets.symmetric(horizontal: Dimens.paddingL),
|
padding: const EdgeInsets.symmetric(horizontal: Dimens.paddingL),
|
||||||
child: Text(widget.description!),
|
child: Text(widget.description!),
|
||||||
),
|
),
|
||||||
const SizedBox(height: Dimens.grid16)
|
const SizedBox(height: Dimens.grid16),
|
||||||
],
|
],
|
||||||
ListView(
|
ListView(
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
|
|
|
@ -26,7 +26,7 @@ void main() {
|
||||||
IAPProduct(
|
IAPProduct(
|
||||||
storeId: IAPProductType.paidFeatures.storeId,
|
storeId: IAPProductType.paidFeatures.storeId,
|
||||||
status: productStatus,
|
status: productStatus,
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
child: FilmsProvider(
|
child: FilmsProvider(
|
||||||
storageService: mockIAPStorageService,
|
storageService: mockIAPStorageService,
|
||||||
|
|
|
@ -317,7 +317,7 @@ void main() {
|
||||||
onPressed: () => UserPreferencesProvider.of(context).setThemeType(ThemeType.dark),
|
onPressed: () => UserPreferencesProvider.of(context).setThemeType(ThemeType.dark),
|
||||||
child: Text('${UserPreferencesProvider.themeTypeOf(context)}'),
|
child: Text('${UserPreferencesProvider.themeTypeOf(context)}'),
|
||||||
),
|
),
|
||||||
Text('${Theme.of(context).colorScheme.brightness}')
|
Text('${Theme.of(context).colorScheme.brightness}'),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -344,7 +344,7 @@ void main() {
|
||||||
onPressed: () => UserPreferencesProvider.of(context).setThemeType(ThemeType.systemDefault),
|
onPressed: () => UserPreferencesProvider.of(context).setThemeType(ThemeType.systemDefault),
|
||||||
child: Text('${UserPreferencesProvider.themeTypeOf(context)}'),
|
child: Text('${UserPreferencesProvider.themeTypeOf(context)}'),
|
||||||
),
|
),
|
||||||
Text('${Theme.of(context).colorScheme.brightness}')
|
Text('${Theme.of(context).colorScheme.brightness}'),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -28,7 +28,7 @@ void main() {
|
||||||
IAPProduct(
|
IAPProduct(
|
||||||
storeId: IAPProductType.paidFeatures.storeId,
|
storeId: IAPProductType.paidFeatures.storeId,
|
||||||
status: IAPProductStatus.purchased,
|
status: IAPProductStatus.purchased,
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
child: EquipmentProfileProvider(
|
child: EquipmentProfileProvider(
|
||||||
storageService: mockIAPStorageService,
|
storageService: mockIAPStorageService,
|
||||||
|
|
|
@ -27,7 +27,7 @@ void main() {
|
||||||
IAPProduct(
|
IAPProduct(
|
||||||
storeId: IAPProductType.paidFeatures.storeId,
|
storeId: IAPProductType.paidFeatures.storeId,
|
||||||
status: IAPProductStatus.purchased,
|
status: IAPProductStatus.purchased,
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
child: FilmsProvider(
|
child: FilmsProvider(
|
||||||
storageService: mockIAPStorageService,
|
storageService: mockIAPStorageService,
|
||||||
|
|
|
@ -26,7 +26,7 @@ Future<void> grantCameraPermission() async {
|
||||||
'pm',
|
'pm',
|
||||||
'grant',
|
'grant',
|
||||||
'com.vodemn.lightmeter.dev',
|
'com.vodemn.lightmeter.dev',
|
||||||
'android.permission.CAMERA'
|
'android.permission.CAMERA',
|
||||||
]);
|
]);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('Error occured: $e');
|
log('Error occured: $e');
|
||||||
|
|
Loading…
Reference in a new issue