monorepo/dialer/lib/presentation/features/contacts/contact_page.dart
AlexisDanlos f89c5440fc
All checks were successful
/ mirror (push) Successful in 5s
/ build (push) Successful in 9m57s
/ build-stealth (push) Successful in 9m58s
refactor: introduce LoadingIndicatorWidget and streamline contact page structure
2025-04-04 14:55:21 +02:00

30 lines
899 B
Dart

import 'package:flutter/material.dart';
import '../contacts/contact_state.dart';
import '../contacts/widgets/alphabet_scroll_page.dart';
import '../../common/widgets/loading_indicator.dart';
import '../../../domain/services/obfuscate_service.dart';
class ContactPage extends StatefulWidget {
const ContactPage({super.key});
@override
_ContactPageState createState() => _ContactPageState();
}
class _ContactPageState extends State<ContactPage> {
final ObfuscateService _obfuscateService = ObfuscateService();
@override
Widget build(BuildContext context) {
final contactState = ContactState.of(context);
return Scaffold(
body: contactState.loading
? const Center(child: CircularProgressIndicator())
: AlphabetScrollPage(
scrollOffset: contactState.scrollOffset,
contacts: contactState.contacts,
),
);
}
}