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&nbsp;<a href="https://phoenixframework.org/" rel="noopener ugc nofollow" target="_blank">Phoenix application</a>&nbsp;<em>(you can use any web service of your choice)</em>.</p> <h2>Start</h2> <p>Let&rsquo;s create a new flutter project called&nbsp;<strong><em>jada</em></strong></p> <pre> flutter create jadacd jada</pre> <p>We would need the provider package; add the following to your&nbsp;<em>pubsec.yaml</em>&nbsp;file</p> <pre> dependencies: <strong>provider: ^4.3.1</strong></pre> <p>Install the package using<em>&nbsp;flutter pub get</em>&nbsp;and we can subsequently use it in our project as&nbsp;<strong><em>import</em></strong><em>&nbsp;&lsquo;package:provider/provider.dart&rsquo;</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&nbsp;<em>pubsec.yaml</em>&nbsp;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>
Tags: external API