mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +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(
|
||||
storeId: IAPProductType.paidFeatures.storeId,
|
||||
status: _purchased ? IAPProductStatus.purchased : IAPProductStatus.purchasable,
|
||||
)
|
||||
),
|
||||
]),
|
||||
child: widget.child,
|
||||
);
|
||||
|
|
|
@ -23,7 +23,7 @@ extension MeteringScreenLayoutConfigJson on MeteringScreenLayoutConfig {
|
|||
|
||||
return <MeteringScreenLayoutFeature, bool>{
|
||||
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,
|
||||
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,
|
||||
),
|
||||
),
|
||||
]
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
@ -92,7 +92,7 @@ class _ReadingValueBuilder extends StatelessWidget {
|
|||
overflow: TextOverflow.ellipsis,
|
||||
softWrap: false,
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ class _CalibrationUnit extends StatelessWidget {
|
|||
tooltip: S.of(context).tooltipResetToZero,
|
||||
),
|
||||
],
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ class _EquipmentProfilesScreenState extends State<EquipmentProfilesScreen> {
|
|||
SliverFillRemaining(
|
||||
hasScrollBody: false,
|
||||
child: _EquipmentProfilesListPlaceholder(onTap: _addProfile),
|
||||
)
|
||||
),
|
||||
]
|
||||
: [
|
||||
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),
|
||||
child: Text(widget.description!),
|
||||
),
|
||||
const SizedBox(height: Dimens.grid16)
|
||||
const SizedBox(height: Dimens.grid16),
|
||||
],
|
||||
ListView(
|
||||
shrinkWrap: true,
|
||||
|
|
|
@ -26,7 +26,7 @@ void main() {
|
|||
IAPProduct(
|
||||
storeId: IAPProductType.paidFeatures.storeId,
|
||||
status: productStatus,
|
||||
)
|
||||
),
|
||||
],
|
||||
child: FilmsProvider(
|
||||
storageService: mockIAPStorageService,
|
||||
|
|
|
@ -317,7 +317,7 @@ void main() {
|
|||
onPressed: () => UserPreferencesProvider.of(context).setThemeType(ThemeType.dark),
|
||||
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),
|
||||
child: Text('${UserPreferencesProvider.themeTypeOf(context)}'),
|
||||
),
|
||||
Text('${Theme.of(context).colorScheme.brightness}')
|
||||
Text('${Theme.of(context).colorScheme.brightness}'),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
|
@ -28,7 +28,7 @@ void main() {
|
|||
IAPProduct(
|
||||
storeId: IAPProductType.paidFeatures.storeId,
|
||||
status: IAPProductStatus.purchased,
|
||||
)
|
||||
),
|
||||
],
|
||||
child: EquipmentProfileProvider(
|
||||
storageService: mockIAPStorageService,
|
||||
|
|
|
@ -27,7 +27,7 @@ void main() {
|
|||
IAPProduct(
|
||||
storeId: IAPProductType.paidFeatures.storeId,
|
||||
status: IAPProductStatus.purchased,
|
||||
)
|
||||
),
|
||||
],
|
||||
child: FilmsProvider(
|
||||
storageService: mockIAPStorageService,
|
||||
|
|
|
@ -26,7 +26,7 @@ Future<void> grantCameraPermission() async {
|
|||
'pm',
|
||||
'grant',
|
||||
'com.vodemn.lightmeter.dev',
|
||||
'android.permission.CAMERA'
|
||||
'android.permission.CAMERA',
|
||||
]);
|
||||
} catch (e) {
|
||||
log('Error occured: $e');
|
||||
|
|
Loading…
Reference in a new issue