Dependency Changes

To communicate with FastAPI, REST API requests must happen within Flutter. HTTP shall be utilized to do so. In your code editor, navigate to the tg_flutter directory and open the pubspec.yaml file. Located about line 29 are our app's dependencies. Add the http dependecy to your yaml file to make it look like it does below. We are also going to throw the firebase dependecies as well! You may or may not be prompted to update the dependencies.

dependencies:
  http: ^0.13.4
  url_launcher: ^6.0.18
  firebase_core: ^1.6.3
  cloud_firestore: ^1.0.4
  firebase_storage: ^10.0.3
  file_picker: ^4.0.3
  flutter:
   sdk: flutter

To update your dependencies use the following command from the tg_flutter folder.

$ flutter pub get
Back to top