Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mobile): Refactors exif bottom sheet to use widgets and fixes slow sliding up exif bottom sheet #7671

Merged
merged 7 commits into from
Mar 7, 2024

Conversation

martyfuhry
Copy link
Contributor

Simple if / else statement to replace the problem line:

assetWithExif.when(
  data: (data) => DescriptionInput(asset: data),
  error: (error, stackTrace) => Icon(
    Icons.image_not_supported_outlined,
    color: context.primaryColor,
  ),
  loading: () => const SizedBox(
    width: 75,
    height: 75,
    child: CircularProgressIndicator.adaptive(),
  ),
),

Otherwise, the functionality should be left entirely intact. Alls I did was replace the buildFoo functions with Stateless Widgets to hopefully take more advantage of widget cache.

Copy link

cloudflare-workers-and-pages bot commented Mar 6, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: ac1ef5c
Status:⚡️  Build in progress...

View logs

Copy link
Contributor

@alextran1502 alextran1502 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing refactor! Thank you so much

@alextran1502 alextran1502 enabled auto-merge (squash) March 7, 2024 03:22
@alextran1502 alextran1502 merged commit 4323d18 into main Mar 7, 2024
24 of 25 checks passed
@alextran1502 alextran1502 deleted the fix/slide-up-slowdown branch March 7, 2024 03:27
aviv926 pushed a commit to aviv926/immich that referenced this pull request Mar 7, 2024
…w sliding up exif bottom sheet (immich-app#7671)

* Refactors exif bottom sheet to use widgets and fixes slow sliding up experience

format

* Refactors exif bottom sheet to use widgets and fixes slow sliding up experience

format

* Fixes people

* removes wrong exif bottom sheet

format

format

* Moved more widgets out of exit bottom sheet

format

* small styling

---------

Co-authored-by: Marty Fuhry <marty@fuhry.farm>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
@waclaw66
Copy link
Contributor

waclaw66 commented Mar 19, 2024

Could you please show only non-hidden people as it is in the web client? Thanks.

Fixed... #8072

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants