Skip to content

Commit

Permalink
chore(digital-guide): fix linter complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolaj-jalocha committed Jan 23, 2025
1 parent d80a9df commit 6c302e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class DigitalGuideTranslationsDressingRoom
}) = _DigitalGuideTranslationsDressingRoom;

factory DigitalGuideTranslationsDressingRoom.fromJson(
Map<String, dynamic> json,) =>
Map<String, dynamic> json,
) =>
_$DigitalGuideTranslationsDressingRoomFromJson(json);
}

Expand All @@ -37,6 +38,7 @@ class DigitalGuideTranslationDressingRoom
required String comment,
}) = _DigitalGuideTranslationDressingRoom;
factory DigitalGuideTranslationDressingRoom.fromJson(
Map<String, dynamic> json,) =>
Map<String, dynamic> json,
) =>
_$DigitalGuideTranslationDressingRoomFromJson(json);
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import "../data/repository/dressing_rooms_repository.dart";

class DigitalGuideDressingRoomsExpansionTileContent extends ConsumerWidget {
const DigitalGuideDressingRoomsExpansionTileContent(
this.digitalGuideResponse,);
this.digitalGuideResponse,
);

final DigitalGuideResponse digitalGuideResponse;

Expand All @@ -23,7 +24,8 @@ class DigitalGuideDressingRoomsExpansionTileContent extends ConsumerWidget {
ref.watch(dressingRoomsRepositoryProvider(digitalGuideResponse));
return dressingRoomsResponse.when(
data: (data) => _DigitalGuideDressingRoomsExpansionTileContent(
dressingRoom: data.firstOrNull,),
dressingRoom: data.firstOrNull,
),
error: (error, _) => MyErrorWidget(error),
loading: () => const Center(
child: CircularProgressIndicator(),
Expand All @@ -43,7 +45,8 @@ class _DigitalGuideDressingRoomsExpansionTileContent extends StatelessWidget {
Widget build(BuildContext context) {
if (dressingRoom == null) {
return Center(
child: Text(context.localize.no_dressing_room_in_the_building),);
child: Text(context.localize.no_dressing_room_in_the_building),
);
}
final lodgeInformation = dressingRoom!.translations.pl;
return Padding(
Expand Down

0 comments on commit 6c302e7

Please sign in to comment.