Skip to content

Optimize app performance, iOS setup#47

Open
aikenahac wants to merge 1 commit intolebaaar:mainfrom
aikenahac:main
Open

Optimize app performance, iOS setup#47
aikenahac wants to merge 1 commit intolebaaar:mainfrom
aikenahac:main

Conversation

@aikenahac
Copy link
Copy Markdown

Optimized app & animation performance by:

  • Creating GoRouter once in initState instead of rebuilding it on every app build.
  • Moving SystemChrome.setPreferredOrientations to main() so it runs once.
  • Replacing async restore redirects with explicit /restore navigation when shared files are received.
  • Switching main tabs to IndexedStack so tab pages stay mounted and avoid full rebuilds during tab changes.
  • Adding stable page/storage keys for main tabs and the home scroll view.
  • Adding a RepaintBoundary around the home calendar.
  • Precomputing calendar day lookup maps in HomePage so calendar builders no longer scan all periods for every visible day.
  • Updating PeriodProvider read methods to sort copied lists instead of mutating _periods during builds.
  • Removing unused TickerProviderStateMixin from HomePage.
  • Updating the widget smoke test to match the real app startup flow.

Note: Requires Android testing, since my testing Android device is not with me at the moment

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant