feat: 초기 프로젝트 설정 및 LunchPick 앱 구현
LunchPick(오늘 뭐 먹Z?) Flutter 앱의 초기 구현입니다. 주요 기능: - 네이버 지도 연동 맛집 추가 - 랜덤 메뉴 추천 시스템 - 날씨 기반 거리 조정 - 방문 기록 관리 - Bluetooth 맛집 공유 - 다크모드 지원 기술 스택: - Flutter 3.8.1+ - Riverpod 상태 관리 - Hive 로컬 DB - Clean Architecture 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
19
lib/presentation/providers/notification_provider.dart
Normal file
19
lib/presentation/providers/notification_provider.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
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();
|
||||
});
|
||||
Reference in New Issue
Block a user