Skip to content

Commit

Permalink
execute melos format
Browse files Browse the repository at this point in the history
  • Loading branch information
YumNumm committed Nov 29, 2024
1 parent a8a93ac commit 6bdaa54
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 33 deletions.
2 changes: 1 addition & 1 deletion app/lib/core/component/chip/depth_filter_chip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class _DepthFilterModal extends HookWidget {
this.currentMin = initialMin,
this.currentMax = initialMax,
});

final int? currentMin;
final int? currentMax;

Expand Down
2 changes: 1 addition & 1 deletion app/lib/core/component/chip/intensity_filter_chip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class _IntensityFilterModal extends HookWidget {
this.currentMin = initialMin,
this.currentMax = initialMax,
});

final JmaIntensity? currentMin;
final JmaIntensity? currentMax;

Expand Down
2 changes: 1 addition & 1 deletion app/lib/core/component/chip/magnitude_filter_chip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class _MagnitudeFilterModal extends HookWidget {
this.currentMin = MagnitudeFilterChip.initialMin,
this.currentMax = MagnitudeFilterChip.initialMax,
});

final double? currentMin;
final double? currentMax;

Expand Down
2 changes: 1 addition & 1 deletion app/lib/core/component/container/bordered_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class BorderedContainer extends StatelessWidget {
this.onPressed,
super.key,
});

final Widget child;
final Color? accentColor;
final EdgeInsetsGeometry padding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class JmaForecastIntensityIcon extends ConsumerWidget {
this.size = 50,
this.showSuffix = true,
});

final JmaForecastIntensity intensity;
final IntensityIconType type;
final double size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class JmaForecastLgIntensityWidget extends ConsumerWidget {
super.key,
this.size = 50,
});

final JmaForecastLgIntensity intensity;
final IntensityIconType type;
final double size;
Expand Down
3 changes: 1 addition & 2 deletions app/lib/core/provider/application_documents_directory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'application_documents_directory.g.dart';

@Riverpod(keepAlive: true)
Directory applicationDocumentsDirectory(Ref ref) =>
throw UnimplementedError();
Directory applicationDocumentsDirectory(Ref ref) => throw UnimplementedError();
3 changes: 1 addition & 2 deletions app/lib/core/provider/device_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'device_info.g.dart';

@Riverpod(keepAlive: true)
AndroidDeviceInfo androidDeviceInfo(Ref ref) =>
throw UnimplementedError();
AndroidDeviceInfo androidDeviceInfo(Ref ref) => throw UnimplementedError();

@Riverpod(keepAlive: true)
IosDeviceInfo iosDeviceInfo(Ref ref) => throw UnimplementedError();
3 changes: 1 addition & 2 deletions app/lib/core/provider/firebase/firebase_messaging.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'firebase_messaging.g.dart';

@Riverpod(keepAlive: true)
FirebaseMessaging firebaseMessaging(Ref ref) =>
FirebaseMessaging.instance;
FirebaseMessaging firebaseMessaging(Ref ref) => FirebaseMessaging.instance;
3 changes: 1 addition & 2 deletions app/lib/core/provider/secure_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'secure_storage.g.dart';

@Riverpod(keepAlive: true)
FlutterSecureStorage secureStorage(Ref ref) =>
const FlutterSecureStorage(
FlutterSecureStorage secureStorage(Ref ref) => const FlutterSecureStorage(
aOptions: AndroidOptions(
resetOnError: true,
),
Expand Down
3 changes: 1 addition & 2 deletions app/lib/core/provider/shared_preferences.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ import 'package:shared_preferences/shared_preferences.dart';
part 'shared_preferences.g.dart';

@Riverpod(keepAlive: true)
SharedPreferences sharedPreferences(Ref ref) =>
throw UnimplementedError();
SharedPreferences sharedPreferences(Ref ref) => throw UnimplementedError();
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'travel_time_data_source.g.dart';

@Riverpod(keepAlive: true)
TravelTimeDataSource travelTimeDataSource(Ref ref) =>
TravelTimeDataSource();
TravelTimeDataSource travelTimeDataSource(Ref ref) => TravelTimeDataSource();

class TravelTimeDataSource {
Future<List<TravelTimeTable>> loadTables() async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'kmoni_data_source.g.dart';

@Riverpod(keepAlive: true)
KmoniDataSource kmoniDataSource(Ref ref) =>
KmoniDataSource(Dio());
KmoniDataSource kmoniDataSource(Ref ref) => KmoniDataSource(Dio());

class KmoniDataSource {
KmoniDataSource(this.dio);

final Dio dio;

final _urlGenerator = KmoniWebApiUrlGenerator();
Expand Down
12 changes: 0 additions & 12 deletions tools/formatter/format.sh

This file was deleted.

0 comments on commit 6bdaa54

Please sign in to comment.