Flutter Thursday 13: Building a User Registration and Login Process with provider and external API
<p>This episode will build a user registration and authentication system that will interface with a backend system. It will cover the following flows: registration, login, auto-login, and logout. We will use the provider package to maintain state and the backend will be a <a href="https://phoenixframework.org/" rel="noopener ugc nofollow" target="_blank">Phoenix application</a> <em>(you can use any web service of your choice)</em>.</p>
<h2>Start</h2>
<p>Let’s create a new flutter project called <strong><em>jada</em></strong></p>
<pre>
flutter create jadacd jada</pre>
<p>We would need the provider package; add the following to your <em>pubsec.yaml</em> file</p>
<pre>
dependencies:
<strong>provider: ^4.3.1</strong></pre>
<p>Install the package using<em> flutter pub get</em> and we can subsequently use it in our project as <strong><em>import</em></strong><em> ‘package:provider/provider.dart’</em>; We would talk more about the provider later in the article.</p>
<p>We would also need to make HTTP calls and persist data locally, so add two additional packages to <em>pubsec.yaml</em> as well.</p>
<p><a href="https://medium.com/@afegbua/flutter-thursday-13-building-a-user-registration-and-login-process-with-provider-and-external-api-1bb87811fd1d"><strong>Website</strong></a></p>