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( 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,
); );

View file

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

View file

@ -117,7 +117,7 @@ class _CameraPreviewBuilderState extends State<_CameraPreviewBuilder> {
context, context,
CameraFeature.spotMetering, 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, child: preview,
), ),
), ),
] ],
], ],
), ),
), ),

View file

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

View file

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

View file

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

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

View file

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

View file

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

View file

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

View file

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

View file

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