File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
lib/presentation/ui/pages/geminichat
modules/data/lib/network/config Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import 'package:flutter/cupertino.dart';
33import 'package:flutter/material.dart' ;
44import 'package:flutter_chat_ui/flutter_chat_ui.dart' ;
55import 'package:flutter_chat_types/flutter_chat_types.dart' as types;
6+ import 'package:uuid/uuid.dart' ;
67
78class GeminiChatPage extends StatefulWidget {
89 const GeminiChatPage ({super .key});
@@ -40,7 +41,7 @@ class _GeminiChatState extends State<GeminiChatPage> {
4041 final textMessage = types.TextMessage (
4142 author: _user,
4243 text: text.text,
43- id: "testId" ,
44+ id: const Uuid (). v4 () ,
4445 );
4546
4647 _addMessage (textMessage);
@@ -70,7 +71,7 @@ class _GeminiChatState extends State<GeminiChatPage> {
7071 final textMessage = types.TextMessage (
7172 author: _agent,
7273 text: text,
73- id: "testIdAgent" ,
74+ id: const Uuid (). v4 () ,
7475 );
7576
7677 _addMessage (textMessage);
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ dependencies:
6060 dev : ^1.0.0
6161 flutter_chat_ui : ^1.6.13
6262 firebase_vertexai : ^0.1.1
63+ uuid : ^4.4.0
6364
6465dev_dependencies :
6566 bloc_test : ^9.0.2
Original file line number Diff line number Diff line change @@ -4,5 +4,4 @@ class NetworkConstants {
44 static const baseUrl = String .fromEnvironment ('API_URL' , defaultValue: "https://dummyjson.com" );
55 //static const baseUrl = String.fromEnvironment('API_URL', defaultValue: "NA");
66 static const productsPath = "/products" ;
7- static const baseUrl = "http://www.example.com" ; // To get started: comment this and uncomment line 4
87}
You can’t perform that action at this time.
0 commit comments