File tree Expand file tree Collapse file tree
firebase_ai/firebase_ai/example/lib/pages
firebase_core/firebase_core/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15-
1615import 'package:flutter/material.dart' ;
1716import 'package:firebase_ai/firebase_ai.dart' ;
1817import '../widgets/message_widget.dart' ;
Original file line number Diff line number Diff line change @@ -235,9 +235,8 @@ class _FunctionCallingPageState extends State<FunctionCallingPage> {
235235 : null ,
236236 );
237237
238- final aiClient = widget.useVertexBackend
239- ? FirebaseAI .vertexAI ()
240- : FirebaseAI .googleAI ();
238+ final aiClient =
239+ widget.useVertexBackend ? FirebaseAI .vertexAI () : FirebaseAI .googleAI ();
241240
242241 _functionCallModel = aiClient.generativeModel (
243242 model: 'gemini-2.5-flash' ,
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15-
1615import 'package:flutter/material.dart' ;
1716import 'package:firebase_ai/firebase_ai.dart' ;
1817import '../widgets/message_widget.dart' ;
@@ -74,9 +73,8 @@ class _GroundingPageState extends State<GroundingPage> {
7473 }
7574 }
7675
77- final aiProvider = widget.useVertexBackend
78- ? FirebaseAI .vertexAI ()
79- : FirebaseAI .googleAI ();
76+ final aiProvider =
77+ widget.useVertexBackend ? FirebaseAI .vertexAI () : FirebaseAI .googleAI ();
8078
8179 _model = aiProvider.generativeModel (
8280 model: 'gemini-2.5-flash' ,
Original file line number Diff line number Diff line change @@ -47,9 +47,8 @@ class _ImageGenerationPageState extends State<ImageGenerationPage> {
4747 }
4848
4949 void _initializeModel () {
50- final aiClient = widget.useVertexBackend
51- ? FirebaseAI .vertexAI ()
52- : FirebaseAI .googleAI ();
50+ final aiClient =
51+ widget.useVertexBackend ? FirebaseAI .vertexAI () : FirebaseAI .googleAI ();
5352
5453 _model = aiClient.generativeModel (
5554 model: 'gemini-2.5-flash-image' ,
Original file line number Diff line number Diff line change @@ -67,10 +67,10 @@ void main() {
6767
6868 test ('.registerService() and .getService()' , () {
6969 FirebaseApp app = Firebase .app (testAppName);
70-
70+
7171 const testService = 'testServiceInstance' ;
7272 app.registerService <String >(testService);
73-
73+
7474 expect (app.getService <String >(), testService);
7575 expect (app.getService <int >(), isNull);
7676 });
You can’t perform that action at this time.
0 commit comments