Skip to content

Commit

Permalink
chore(digital-guide): round images in adapted toilets (#526)
Browse files Browse the repository at this point in the history
* refactor: round images in adapted toilet and disable zoomable in digital guide view

* fix(digital-guide): remove zoomable = false

---------

Co-authored-by: Szymon Kowaliński <szymon@kowalinski.dev>
  • Loading branch information
24bartixx and simon-the-shark authored Jan 13, 2025
1 parent 07a0ef9 commit 5cbf734
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "package:fast_immutable_collections/fast_immutable_collections.dart";
import "package:flutter/material.dart";
import "package:freezed_annotation/freezed_annotation.dart";

Expand All @@ -19,8 +20,8 @@ class AdaptedToilet with _$AdaptedToilet {
@JsonKey(name: "is_entrance_graphically_marked", fromJson: _stringToBool)
required bool isEntranceGraphicallyMarked,
@JsonKey(name: "is_marked", fromJson: _stringToBool) required bool isMarked,
@JsonKey(name: "images") required List<int> imagesIndices,
@JsonKey(name: "doors") required List<int> doorsIndices,
@JsonKey(name: "images") required IList<int> imagesIndices,
@JsonKey(name: "doors") required IList<int> doorsIndices,
}) = _AdaptedToilet;

factory AdaptedToilet.fromJson(Map<String, dynamic> json) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,13 @@ class AdaptedToiletDetailView extends ConsumerWidget {
return Padding(
padding:
const EdgeInsets.all(DigitalGuideConfig.heightMedium),
child: DigitalGuideImage(
id: adaptedToilet.imagesIndices[index],
child: ClipRRect(
borderRadius: BorderRadius.circular(
DigitalGuideConfig.borderRadiusSmall,
),
child: DigitalGuideImage(
id: adaptedToilet.imagesIndices[index],
),
),
);
},
Expand Down
2 changes: 1 addition & 1 deletion lib/features/home_view/widgets/nav_actions_section.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class NavActionsSection extends ConsumerWidget {
color: context.colorTheme.whiteSoap,
size: 32,
),
() => unawaited(ref.navigateDigitalGuide(303)),
() => unawaited(ref.navigateDigitalGuide(421)),
),
],
),
Expand Down

0 comments on commit 5cbf734

Please sign in to comment.