Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions firebase_ai_logic_showcase/lib/demos/chat/chat_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import '../../shared/ui/app_frame.dart';
import '../../shared/ui/app_spacing.dart';
import './ui_components/ui_components.dart';
import './firebaseai_chat_service.dart';
import 'ui_components/model_picker.dart';

import './models/models.dart';

class ChatDemo extends ConsumerStatefulWidget {
Expand Down Expand Up @@ -189,14 +189,14 @@ class _ChatDemoState extends ConsumerState<ChatDemo> {
),
),
),
MessageInputBar(
textController: _userTextInputController,
loading: _loading,
sendMessage: sendMessage,
onPickImagePressed: _pickImage,
),
],
),
bottomNavigationBar: MessageInputBar(
textController: _userTextInputController,
loading: _loading,
sendMessage: sendMessage,
onPickImagePressed: _pickImage,
),
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ class ChatDemoNanoState extends ConsumerState<ChatDemoNano> {
),
),
),
MessageInputBar(
textController: _userTextInputController,
loading: _loading,
sendMessage: sendMessage,
onPickImagePressed: _pickImage,
),
],
),
bottomNavigationBar: MessageInputBar(
textController: _userTextInputController,
loading: _loading,
sendMessage: sendMessage,
onPickImagePressed: _pickImage,
),
);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:firebase_ai/firebase_ai.dart';
import '../../../shared/function_calling/tools.dart';

var geminiModels = GeminiModelsNano();

Expand Down
95 changes: 0 additions & 95 deletions firebase_ai_logic_showcase/lib/demos/imagen/imagen_demo.dart

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 4 additions & 6 deletions firebase_ai_logic_showcase/lib/demos/live_api/live_api_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ class _LiveAPIDemoState extends ConsumerState<LiveAPIDemo> {
backgroundColor: Theme.of(context).colorScheme.surface,
body: Column(
children: [
const SizedBox(height: 24.0),
Expanded(
child: LiveApiBody(
cameraIsActive: _cameraIsActive,
Expand All @@ -274,7 +273,9 @@ class _LiveAPIDemoState extends ConsumerState<LiveAPIDemo> {
: null,
),
VideoButton(
isActive: _cameraIsActive, onPressed: toggleVideoStream),
isActive: _cameraIsActive,
onPressed: toggleVideoStream,
),
AudioVisualizer(
audioStreamIsActive: _isCallActive,
amplitudeStream: audioInput.amplitudeStream,
Expand All @@ -283,10 +284,7 @@ class _LiveAPIDemoState extends ConsumerState<LiveAPIDemo> {
isMuted: audioInput.isPaused,
onPressed: _isCallActive ? toggleMuteInput : null,
),
CallButton(
isActive: _isCallActive,
onPressed: toggleCall,
),
CallButton(isActive: _isCallActive, onPressed: toggleCall),
],
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ class _MultimodalDemoState extends State<MultimodalDemo> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const SizedBox(height: 24.0),
const SizedBox.square(dimension: AppSpacing.s16),
FilePromptInput(
promptController: promptController,
Expand Down
Loading