<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Munikiran Narpareddi on Medium]]></title>
        <description><![CDATA[Stories by Munikiran Narpareddi on Medium]]></description>
        <link>https://medium.com/@munikiran_41752?source=rss-350bbf24bb2e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*h3GVW-Y1yl9fg_i3EEMmIQ.jpeg</url>
            <title>Stories by Munikiran Narpareddi on Medium</title>
            <link>https://medium.com/@munikiran_41752?source=rss-350bbf24bb2e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:04:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@munikiran_41752/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What is a webview?]]></title>
            <link>https://medium.com/quoality/what-is-a-webview-c9951a38e557?source=rss-350bbf24bb2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9951a38e557</guid>
            <category><![CDATA[broswer]]></category>
            <category><![CDATA[webview]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Munikiran Narpareddi]]></dc:creator>
            <pubDate>Thu, 18 Nov 2021 15:32:24 GMT</pubDate>
            <atom:updated>2021-11-18T15:32:24.173Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k1o7nvH4qRiAYewA7NC-Vg.jpeg" /></figure><p>Webview is a web browser UI component that can be integrated in an application to display web pages. If you want to add a web app or a web page in your app you can use webview. All that webview does by default is to render your webpage, allowing to some extent we can control the webview.</p><p><strong>Why do we use webview?</strong></p><p>To display a webpage in your application without opening your device’s browser. If you want to provide data to your application that you might update such as — Terms and conditions, privacy policy, Faqs about the app, etc</p><p>In some scenarios you might find it easier to build a webview and display data in it rather than adding http/dio calls and performing request-response, creating models and displaying them in your application. For eg — Upon the completion of payment in many payment gateways, the resulting flow can be easily integrated into a webview for a synchronous flow.</p><p><strong>Pros and Cons of webView</strong></p><p><strong>Pros -</strong></p><ul><li>Single page for native devices(iOs and android).</li><li>As all the pages are on your server so any change done to the web page is easily accessible to the user.</li><li>This helps in the reduction of time and not going back to the mobile development cycle.</li><li>There is no need to implement the same functionality again in the native app eg — payment.</li></ul><p><strong>Cons -</strong></p><ul><li>WebViews have a low potential to listen to all the inputs from users.</li><li>Sharing and saving data from the web to the app is not fully compatible.</li><li>Features for offline are not useful, as we have to be online to use a webView</li><li>As webView forms and an extra layer, full performance of the device cant be used.</li></ul><p>Prerequisites — basic knowledge of flutter. such as adding third-party packages into flutter and implementing them and understanding of controllers.</p><p>Let’s begin how to show websites in your flutter application</p><h3>Webview in Flutter</h3><p>In this blog we will be using the webview_flutter plugin. For iOS webview is supported by WKWebView, on android webview is supported by WebView.</p><p>Integrate the webview plugin in your pubspec.yaml file by choosing the proper version according to your dart version.</p><p>webview_flutter &lt;The compatible version&gt;</p><p>In Pubsepc.yaml file -</p><p>dependencies: flutter: sdk: flutter webview_flutter:</p><p>After adding the plugin, do a pub get to install the package in your project. Or run the below cmd in your editor terminal to install the package — flutter pub get webview_flutter</p><p>For android the min sdk version should be 20 or above, got to android/app/build.gradle and change min sdk</p><p>android { defaultConfig { minSdkVersion 20 } }</p><p>it acts just like a widget, rather it is just like any other widget</p><p>First add the import webview to your class,</p><p>import ‘package:webview_flutter/webview_flutter.dart’;</p><p>Just add this starter code to get started</p><p>WebView(initialUrl : ‘https://www.quoality.com/’ )</p><p>This will load the web page quality.com and render it on the screen just like a browser.</p><p>Till here we are able to load a webpage in our app using webview. But here comes a question, how to control my webview?</p><p>The answer is using a webview controller, the webview is built fully, it returns this controller through a callback(Callback is a function or a method which we pass as an argument into another function or method and can perform an action when we require it.)</p><p>WebViewController _quoalityController; WebView( initialUrl: ‘‘https://www.quoality.com/&#39;, onWebViewCreated: (WebViewController webViewController) { _quoalityController = webViewController; }, );</p><p>Webview is a stateful widget, it keeps track of the current page and browsing history. If you have multiple webviews in your application you might need to use keys.</p><p>More actions which can be performed using webviews can be found in the documentation of Webview Class documentation Below I am listing few propertied from the Webview Class documentation</p><p>Initial Url — This holds the initial url which is rendered on the screen when we initialize webview.</p><p>JavascriptMode — This enables javascript, default it is disabled.</p><p>Key — Controls the replacement of widgets in the widget tree.</p><p>onPageStarted — Call for when a page starts loading.</p><p>onPageFinished — Call for when a page has finished loading. .</p><p>Just like how there are two sides to a coin, webView also has two sides. We can easily carry out changes in a webview while having no approval time from the stores as it is stored in the server. Also, in a webview, it’s not possible to use a device’s full potential.</p><p>Also, to know more about ancillary services, revenue acceleration, etc.<a href="https://calendly.com/quoality-1on1/demo?month=2021-09"> book a demo</a> with <a href="https://www.quoality.com/">Quoality</a> today or visit our site for more information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9951a38e557" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quoality/what-is-a-webview-c9951a38e557">What is a webview?</a> was originally published in <a href="https://medium.com/quoality">Quoality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[METHODS TO REGISTER AND LOGIN A USER USING FLUTTER]]></title>
            <link>https://medium.com/quoality/methods-to-register-and-login-a-user-using-flutter-c984137b667b?source=rss-350bbf24bb2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c984137b667b</guid>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Munikiran Narpareddi]]></dc:creator>
            <pubDate>Wed, 10 Mar 2021 12:06:39 GMT</pubDate>
            <atom:updated>2021-03-10T12:06:39.973Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*MG6HYz5qk5F5ebVo" /></figure><p><strong>Authentication </strong>is one of the important features of any application. It is when the system checks login credentials to see if it recognizes a user, and confirms that they should be logged in. It helps the application to keep track of its users and prevent unnecessary malware.</p><p>Various methods which can be used by the User are mentioned below.</p><ol><li><strong>Sign up</strong></li><li><strong>Sign in</strong></li><li><strong>SSO</strong></li></ol><p>We are talking about the act of verifying identity, making sure users are who they say they are. The most common example of user authentication is by using a username/email and a password to access an application.</p><p>For any user to access an app he has to provide a username/email and a password which help’s the app to verify the identity of the user.</p><p>First, the user has to register himself in the app. By providing a few details such as name, email, or a unique username. And has to set a secret key for eg- a strong password.</p><p>Below mentioned method helps us to create a registration page in flutter which helps a user to register.</p><ul><li><strong>Creating a Sign-up page using Flutter</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*OLY4QLjyi90XrtIb" /></figure><p>Creating a<strong> </strong>Sign-up page is quite<strong> </strong>easy<strong> </strong>using Flutter</p><ul><li>Create a Flutter project<strong> </strong>using command <em>flutter create project-name</em><strong> </strong>and under the lib folder create a new dart file (a file with dart extension).</li><li>Import material<strong> </strong>dart (<em>import ‘package:flutter/material.dart’</em>;).</li><li>Create a Stateful widget with a proper class name.</li><li>Return a Scaffold widget.</li><li>And create your UI using various widgets available in the material import.</li><li>Communicate<strong> </strong>with the backend<strong> </strong>using an API and create a proper model using proper state management present in Flutter for <em>eg: provider, Bloc.</em></li><li>If you get a successful response from the backend then navigate the User to the next screen.</li><li>Else by using the try-catch<strong> </strong>method show the error given by the backend.</li></ul><p>Below are some difficulties which I faced while creating the signup page and their resolution:-</p><ul><li>Proper navigation<strong> </strong>to be given when the user registers and navigates to the home screen.</li><li>The Android back button <em>onPressed</em> should always exit the app and not navigate back to the Registration page. To avoid it use the <em>OnWillPop</em> widget rather than <em>navigator.pop()</em>.</li><li>Proper validation<strong> </strong>to be given under form fields. Using Regex<strong> </strong>can save you. Using proper keyboard<strong> </strong>type is recommended for a better user experience.</li><li>The form fields and the input parameters should be responsive<strong> </strong>to any android device (Mobile). Use <a href="https://pub.dev/packages/flutter_screenutil"><em>Screen utils</em></a> when displaying forms in a container.</li><li>Displaying the error message from the backend using a dialog box improves user experience.</li><li>Using a loader when authenticating will improve the user experience. For eg: use the <em>CircularProgressIndicator</em> widget<strong> </strong>to show a progress indicator.</li><li>Using the <em>TextFormField</em> widget<strong> </strong>is recommended as it has a validation<strong> </strong>parameter<strong> </strong>that will help users to know where they went wrong.</li></ul><p>After a user is registered in the app he has created himself a username and a password which he can use to log in to the app from the SignIn page.</p><ul><li><strong>Creating a Sign-in page using Flutter</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*lu1DcCnIb9LSfghK" /></figure><p>After we have successfully registered a user. We now have to add a Sign-in page. To create a sign-in page follow the steps mentioned in the sign-up flow and create your own UI using material widgets.</p><p>To keep the user signed in even after the app restarted we need to save user data ( like access token, refresh token ) in shared preferences once the user logs-in into our application.</p><ul><li><strong>SSO ( SINGLE SIGN-ON )</strong></li></ul><blockquote>Definition: Single sign-on (SSO) is an authentication method that enables users to securely authenticate with multiple applications and websites by using just one set of credentials.</blockquote><p>SSO is a session and user authentication service that allows a user to use one set of login credentials for multiple apps. SSO is a federated identity management arrangement; it can also be called an identity federation. The framework which it uses is OAuth, which allows account information to be used by third-party services like google without exposing the user’s secret key (password). Common SSO services include offerings from Google, Facebook, Github, etc. They log the user on to the target app by replaying user credentials.</p><p>The Advantage of using SSO is that it brings convenience to the users as they have minimal passwords to remember, it streamlines the signing on.</p><p>The disadvantage of SSO is it is a single-way access point which on failure can be attacked by attackers. If the availability is lost for the primary app or account then the users might be logged out of multiple apps.</p><p>Here we are using an SSO service provided by Google. Using Flutter we are implementing the UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/0*mEv8feuQxWF3KAF5" /></figure><ul><li><strong>Google Sign in</strong></li></ul><p>The procedure is different than simple authentication where you provide your email and password.</p><ul><li>Create a Firebase account in the console and create a project.</li><li>Inside the project, register the app (android app/ iOS app) according to your requirement.</li></ul><p>I will be considering only the android app for this blog.</p><ul><li>Firstly download the google services.json file and place it inside the (android/app) folder.</li><li>Add the SHA-1 algorithm, without this SHA-1 algorithm google sign-in, won’t work.</li><li>If you are using your own backend then go to Google developers console, select your respective project and go to credentials and copy the client id and web client which will be required for the backend.</li><li>Then add dependencies/plugins in the build.gradle files in app-level and project level as suggested in firebase.</li><li>In pubspec.yaml file download <a href="https://pub.dev/packages/google_sign_in">Google sign-in</a> package which is available in the pub dev.</li><li>Create UI as per your choice.</li><li>Use the google Sign-in package in the app and get started.</li></ul><p>Below are some difficulties which I faced while creating the google SignIn page and their resolution:-</p><ul><li>Register the app properly following all the steps in Firebase.</li><li>SHA 1 key must be added to your app in Firebase.</li><li>If you get <em>com.google.android.gms.common.api.ApiException</em> error then check if you have added the SHA -1 key and plugins. Also, check whether you have added the google JSON file at the proper location.</li><li>If you get the <em>id token as null </em>error, then check the SHA 1 key registered in your firebase.</li></ul><p>These are the various authentications I have implemented. Learning makes you Perfect. Happy Learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c984137b667b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quoality/methods-to-register-and-login-a-user-using-flutter-c984137b667b">METHODS TO REGISTER AND LOGIN A USER USING FLUTTER</a> was originally published in <a href="https://medium.com/quoality">Quoality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>