LunchPick(오늘 뭐 먹Z?) Flutter 앱의 초기 구현입니다. 주요 기능: - 네이버 지도 연동 맛집 추가 - 랜덤 메뉴 추천 시스템 - 날씨 기반 거리 조정 - 방문 기록 관리 - Bluetooth 맛집 공유 - 다크모드 지원 기술 스택: - Flutter 3.8.1+ - Riverpod 상태 관리 - Hive 로컬 DB - Clean Architecture 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
695 B
Dart
19 lines
695 B
Dart
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import '../../core/services/notification_service.dart';
|
|
|
|
/// NotificationService 싱글톤 Provider
|
|
final notificationServiceProvider = Provider<NotificationService>((ref) {
|
|
return NotificationService();
|
|
});
|
|
|
|
/// 알림 권한 상태 Provider
|
|
final notificationPermissionProvider = FutureProvider<bool>((ref) async {
|
|
final service = ref.watch(notificationServiceProvider);
|
|
return await service.checkPermission();
|
|
});
|
|
|
|
/// 예약된 알림 목록 Provider
|
|
final pendingNotificationsProvider = FutureProvider((ref) async {
|
|
final service = ref.watch(notificationServiceProvider);
|
|
return await service.getPendingNotifications();
|
|
}); |