Skip to content

Commit 19c5571

Browse files
committed
Keeping step 2 alive
1 parent d4f93ef commit 19c5571

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

colorist/step_02/lib/providers/gemini.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import '../firebase_options.dart';
1212

1313
part 'gemini.g.dart';
1414

15-
@riverpod
15+
@Riverpod(keepAlive: true)
1616
Future<FirebaseApp> firebaseApp(Ref ref) =>
1717
Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
1818

19-
@riverpod
19+
@Riverpod(keepAlive: true)
2020
Future<GenerativeModel> geminiModel(Ref ref) async {
2121
await ref.watch(firebaseAppProvider.future);
2222

colorist/step_02/lib/providers/gemini.g.dart

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

colorist/step_02/lib/services/gemini_chat_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ class GeminiChatService {
4545
}
4646
}
4747

48-
@riverpod
48+
@Riverpod(keepAlive: true)
4949
GeminiChatService geminiChatService(Ref ref) => GeminiChatService(ref);

colorist/step_02/lib/services/gemini_chat_service.g.dart

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)