Coder Social home page Coder Social logo

bitconvert's Introduction

Bitconverter App

The Bitconverter app allows you to get current conversion rates for different bitcoins in the currency of your choice.

Video demo: https://youtu.be/Ni2OYoGimhA

Getting Started

To run the app you can clone the repo and click Get Packages button in your IDE.

Then you can run the command

flutter run

In your terminal window. Remember to select the device for output if you want to run the project on an emulator or the browser if you wish to run the web version.

Details

The structure of the app is simple and it is organized in the following folders:

  • screens folder where you will find the welcome screen which contains the app's logo and title and the switch button to select dark o light mode. The price screen is where you will find the layout and widgets to select currency and display the convertion.

  • services folder contains the network file which connects to the API and fetches the data, depending on the currency selected by the user. The API keys are stored in variables from the .env file.

  • utilities is where the coin information was stored on a list, as well as the theme data in order for the app to pass down that information to other widgets.

  • widgets contains a custom widget created for the project which is the currency card where the results are displayed.

Notes:

  1. the flutterenv package was used in order to create the global .env file which keeps the API key variables. This file is not shared for security reasons, however an .envexample is provided so you can use your key generated in the API website.
  2. The main.dart file is the entry point to the application and creates the routes between the screens.
  3. Flutter's Provider was used to manage the state across the application.

Disclaimer: This application is meant to be educational, and to explore some of the possibilities Flutter has to offer.

Enjoy!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.