Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
fix goldens
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams committed Aug 22, 2023
1 parent 1c7f941 commit 089dbc4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
22 changes: 13 additions & 9 deletions lib/studies/reply/mail_card_preview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -253,19 +253,23 @@ class _MailPreview extends StatelessWidget {
}
}

bool _shouldShrinkImage() {
switch (defaultTargetPlatform) {
case TargetPlatform.iOS:
case TargetPlatform.android:
return true;
default:
return false;
}
}

class _PicturePreview extends StatelessWidget {
const _PicturePreview();

bool _shouldShrinkImage() {
if (kDebugMode) {
return false;
}
switch (defaultTargetPlatform) {
case TargetPlatform.iOS:
case TargetPlatform.android:
return true;
default:
return false;
}
}

@override
Widget build(BuildContext context) {
return SizedBox(
Expand Down
22 changes: 13 additions & 9 deletions lib/studies/reply/mail_view_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,23 @@ class _MailViewBody extends StatelessWidget {
}
}

bool _shouldShrinkImage() {
switch (defaultTargetPlatform) {
case TargetPlatform.iOS:
case TargetPlatform.android:
return true;
default:
return false;
}
}

class _PictureGrid extends StatelessWidget {
const _PictureGrid();

bool _shouldShrinkImage() {
if (kDebugMode) {
return false;
}
switch (defaultTargetPlatform) {
case TargetPlatform.iOS:
case TargetPlatform.android:
return true;
default:
return false;
}
}

@override
Widget build(BuildContext context) {
return GridView.builder(
Expand Down

0 comments on commit 089dbc4

Please sign in to comment.