skip to Main Content

I,m a beginner to flutter and I’m still referring tutorials so bare with me on that. I’m trying to develop an Android application. I started developing using flutter. Main question I have is does flutter needs another language like Kotlin or java, or just can use alone for android app development. Reasoning is I’m trying to add firestore db, and I saw some documentations provide for Kotlin and java only. So this gives me the question, when developing android applications with flutter, do I need another language.Plus if needed, how to merge both. Currently using vs code, so do I need android studio for that part.

Also if this is a duplicate, feel free to add it here. Because I didn’t find answer for this.

Tried reading several articles but didn’t get the answer

4

Answers


  1. Flutter uses Dart as development language. To integrate Firestore – use https://pub.dev/packages/cloud_firestore

    Login or Signup to reply.
  2. Only Dart. There is no need to learn Java or Kotlin later on.

    Login or Signup to reply.
  3. A reason to use a different language in Flutter is that you need to write platform-channel connector to the underlying OS.

    While there are a lot of plugins at pub.dev that you can take advantage of, if you need to customize plugin behavior or the SDK you want isn’t available as a Flutter plugin, you’ll have to write your own.

    This can also happen with "official" SDK Flutter plugins where the main SDK written in Java/Kotlin/Swift/etc. is updated, the Flutter plugin has not, so either you wait for the plugin maintainers or write your own.

    And if you are writing your own plugin, familiarity with the tools/language/APIs of the OS (Android,iOS,Windows,Mac,Linux) is expected.

    Login or Signup to reply.
  4. No, when developing Android applications with Flutter, you do not need to use another language like Kotlin or Java. Flutter is a cross-platform framework that allows you to build applications for Android, iOS, web, and desktop using a single codebase.

    Flutter has its own programming language called Dart, which is used for writing the application logic, UI components, and integrating various services and APIs. Dart is a modern, object-oriented language that is designed specifically for Flutter.

    Regarding your specific question about integrating Firestore, Flutter provides an official Firebase plugin that allows you to easily connect to and interact with Firestore in your Flutter app. The Firebase plugin for Flutter is written in Dart and provides a convenient API for Firestore operations.

    You can use the Firebase plugin for Flutter to perform all the necessary Firestore operations like reading and writing data, querying the database, and listening to real-time updates. You do not need to use Kotlin or Java specifically for Firestore integration in a Flutter app.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search