fixed trailing commas

This commit is contained in:
Vadim 2024-04-03 17:10:08 +02:00
parent 3c47da5218
commit 7ba54a4405
15 changed files with 16 additions and 16 deletions

View file

@ -27,7 +27,7 @@ class MockIAPProductsProviderState extends State<MockIAPProductsProvider> {
IAPProduct(
storeId: IAPProductType.paidFeatures.storeId,
status: _purchased ? IAPProductStatus.purchased : IAPProductStatus.purchasable,
)
),
]),
child: widget.child,
);

View file

@ -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,
};
}

View file

@ -117,7 +117,7 @@ class _CameraPreviewBuilderState extends State<_CameraPreviewBuilder> {
context,
CameraFeature.spotMetering,
))
CameraSpotDetector(onSpotTap: widget.onSpotTap)
CameraSpotDetector(onSpotTap: widget.onSpotTap),
],
],
)

View file

@ -97,7 +97,7 @@ class CameraContainer extends StatelessWidget {
),
],
),
)
),
],
);
}

View file

@ -42,7 +42,7 @@ class MeteringTopBar extends StatelessWidget {
child: preview,
),
),
]
],
],
),
),

View file

@ -92,7 +92,7 @@ class _ReadingValueBuilder extends StatelessWidget {
overflow: TextOverflow.ellipsis,
softWrap: false,
),
)
),
],
);
}

View file

@ -120,7 +120,7 @@ class _CalibrationUnit extends StatelessWidget {
tooltip: S.of(context).tooltipResetToZero,
),
],
)
),
],
);
}

View file

@ -41,7 +41,7 @@ class _EquipmentProfilesScreenState extends State<EquipmentProfilesScreen> {
SliverFillRemaining(
hasScrollBody: false,
child: _EquipmentProfilesListPlaceholder(onTap: _addProfile),
)
),
]
: [
SliverList(

View file

@ -135,7 +135,7 @@ class _DialogFilterState<T> extends State<DialogFilter<T>> {
),
],
),
)
),
],
),
),

View file

@ -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,

View file

@ -26,7 +26,7 @@ void main() {
IAPProduct(
storeId: IAPProductType.paidFeatures.storeId,
status: productStatus,
)
),
],
child: FilmsProvider(
storageService: mockIAPStorageService,

View file

@ -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}'),
],
),
);

View file

@ -28,7 +28,7 @@ void main() {
IAPProduct(
storeId: IAPProductType.paidFeatures.storeId,
status: IAPProductStatus.purchased,
)
),
],
child: EquipmentProfileProvider(
storageService: mockIAPStorageService,

View file

@ -27,7 +27,7 @@ void main() {
IAPProduct(
storeId: IAPProductType.paidFeatures.storeId,
status: IAPProductStatus.purchased,
)
),
],
child: FilmsProvider(
storageService: mockIAPStorageService,

View file

@ -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');