Skip to content

Commit

Permalink
refactor: Update ChatInputField widget with continuous mode functiona…
Browse files Browse the repository at this point in the history
…lity and view model

```
  • Loading branch information
clinicaimpacta committed Jul 31, 2024
1 parent 722ec23 commit c838f85
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/test/chat_input_field_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:auto_gpt_flutter_client/views/chat/chat_input_field.dart';
// Comment out the import statement for the non-existent file
// import 'package:auto_gpt_flutter_client/view_models/chat_view_model.dart'; // Import the library that defines ChatViewModel

void main() {
// Test if the ChatInputField widget renders correctly
Expand All @@ -9,7 +13,9 @@ void main() {
MaterialApp(
home: Scaffold(
body: ChatInputField(
onSendPressed: () {},
onContinuousModePressed: () {},
viewModel: ChatViewModel(),
onSendPressed: (String input) {},
),
),
),
Expand Down

0 comments on commit c838f85

Please sign in to comment.