chore: Add App Store screenshots

Refs:
This commit is contained in:
Janez T
2026-05-27 10:45:51 +02:00
parent c176ed0775
commit 0406b59d3b
34 changed files with 430 additions and 92 deletions

View File

@@ -38,6 +38,9 @@ class ContactsTab extends StatefulWidget {
}
class _ContactsTabState extends State<ContactsTab> {
static const bool _isScreenshotRun = bool.fromEnvironment(
'MESHCORE_SCREENSHOTS',
);
Position? _currentPosition;
final Map<ContactSection, String> _sectionFilters = {
ContactSection.teamMembers: '',
@@ -62,7 +65,9 @@ class _ContactsTabState extends State<ContactsTab> {
for (final section in ContactSection.values)
section: TextEditingController(text: _sectionFilters[section] ?? ''),
};
_getCurrentLocation();
if (!_isScreenshotRun) {
_getCurrentLocation();
}
// Mark all contacts as viewed when tab is opened
WidgetsBinding.instance.addPostFrameCallback((_) {
context.read<ContactsProvider>().markAllAsViewed();