<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tejas Amle</title>
    <description>The latest articles on DEV Community by Tejas Amle (@tejas_amle).</description>
    <link>https://dev.to/tejas_amle</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F198966%2F5ac8887a-e18d-4165-af98-5bae8243bfad.png</url>
      <title>DEV Community: Tejas Amle</title>
      <link>https://dev.to/tejas_amle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tejas_amle"/>
    <language>en</language>
    <item>
      <title>Creating a chat application on Flutter using Applozic</title>
      <dc:creator>Tejas Amle</dc:creator>
      <pubDate>Wed, 11 Aug 2021 05:21:50 +0000</pubDate>
      <link>https://dev.to/applozic/creating-a-chat-application-on-flutter-using-applozic-i7p</link>
      <guid>https://dev.to/applozic/creating-a-chat-application-on-flutter-using-applozic-i7p</guid>
      <description>&lt;p&gt;Applozic is an amazing platform to create high-quality chat applications that boost your mobile application development.&lt;/p&gt;

&lt;p&gt;This service makes the development of chat applications a hassle-free experience by not compromising on the quality and features of the application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating a project
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Create a new Flutter project
&lt;/h4&gt;

&lt;p&gt;You could use any Flutter starter kit to generate the scaffold of the project, but for simplicity purposes let’s use the standard Flutter create.&lt;/p&gt;

&lt;p&gt;At the time of writing this tutorial, these are the latest Flutter and tooling versions:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
Doctor summary (to see all details, run flutter doctor -v):&lt;br&gt;
[✓] Flutter (Channel beta, 2.3.0-24.1.pre, on macOS 11.4 20F71 darwin-x64, locale en-IN)&lt;br&gt;
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)&lt;br&gt;
[✓] Xcode - develop for iOS and macOS&lt;br&gt;
[✓] Chrome - develop for the web&lt;br&gt;
[✓] Android Studio (version 4.1)&lt;br&gt;
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.3)&lt;br&gt;
[✓] VS Code (version 1.57.1)&lt;br&gt;
[✓] Connected device (3 available)&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Let’s create our bare-bones project by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flutter create applozic_example
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Installing required dependencies
&lt;/h4&gt;

&lt;p&gt;We would be needing applozic_flutter: ^0.0.4 and flutter_login: ^2.1.0 for the tutorial. To develop your chat application for Flutter and various other frameworks, register for a free trial of Applozic’s chat API.&lt;/p&gt;

&lt;p&gt;We use applozic_flutter for the core functionality of the application and flutter_login to scaffold the UI of the login screen quickly.&lt;/p&gt;

&lt;p&gt;Please note that the applozic_flutter library hasn’t been migrated to null safety yet, so we cannot build with sound null safety.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name: applozic_example
description: A new Flutter project.

publish_to: "none"

version: 1.0.0+1

environment:
  sdk: "&amp;gt;=2.12.0 &amp;lt;3.0.0"

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.2
  applozic_flutter: ^0.0.4
  flutter_login: ^2.1.0

dev_dependencies:
  flutter_test:
    sdk: flutter

  flutter_lints: ^1.0.0

flutter:
  uses-material-design: true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Applozic side
&lt;/h4&gt;

&lt;p&gt;Now you could head over to Applozic Console and create a new application.&lt;/p&gt;

&lt;p&gt;Once you have created a new application you will have the Application ID you will be needing that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Integration
&lt;/h2&gt;

&lt;p&gt;Now once we set up everything, we now have the Application ID of the app.&lt;/p&gt;

&lt;p&gt;Let’s save our Application ID in a new file, let’s say config.dart&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const String appID = 'Your App ID';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We will need the appID during the authentication part.&lt;/p&gt;

&lt;p&gt;For further steps on Authentication, setting up login page, and to know how to use several other functionalities, please check out &lt;a href="https://www.applozic.com/blog/creating-a-chat-application-on-flutter-using-applozic/"&gt;this page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;To check out more such blogs please read on &lt;a href="https://www.applozic.com/blog/"&gt;Applozic's Blog Page&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>applozic</category>
      <category>chatsdk</category>
      <category>chatapi</category>
    </item>
  </channel>
</rss>
