File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/firebase_vertexai/firebase_vertexai/example/lib Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ import 'package:firebase_core/firebase_core.dart' ;
16
+ import 'package:firebase_vertexai/firebase_vertexai.dart' ;
15
17
import 'package:flutter/material.dart' ;
16
18
import 'package:flutter/services.dart' ;
17
19
import 'package:flutter_markdown/flutter_markdown.dart' ;
18
- import 'package:firebase_vertexai/firebase_vertexai.dart' ;
19
- import 'package:firebase_core/firebase_core.dart' ;
20
+
21
+ // REQUIRED if you want to run on Web
22
+ const FirebaseOptions ? options = null ;
20
23
21
24
void main () {
22
25
runApp (const GenerativeAISample ());
@@ -137,7 +140,8 @@ class _ChatWidgetState extends State<ChatWidget> {
137
140
);
138
141
139
142
Future <void > initFirebase () async {
140
- await Firebase .initializeApp ();
143
+ // ignore: avoid_redundant_argument_values
144
+ await Firebase .initializeApp (options: options);
141
145
}
142
146
143
147
void _scrollDown () {
You can’t perform that action at this time.
0 commit comments