Giter VIP home page Giter VIP logo

currency_converter's Introduction

Currency Converter App

This is a Flutter application for converting currencies using real-time exchange rates. The project is structured using the Clean Architecture pattern to ensure a scalable and maintainable codebase.

Table of Contents

Features

  • Convert currencies using up-to-date exchange rates.
  • Select from a wide range of currencies.
  • Save selected currencies locally for quick access.

Screenshots

alt text

Architecture

This project follows the Clean Architecture pattern, which divides the codebase into several layers:

  1. Presentation: Contains the UI code (Widgets) and the logic to handle user interactions.
  2. Domain: Contains the business logic. This includes use cases and entities.
  3. Data: Handles data retrieval from various sources (e.g., APIs, local storage). This layer includes repositories and data sources.

Layers

  • Presentation Layer:

    • Widgets: Flutter widgets for UI.
    • Bloc: Business Logic Component for state management.
  • Domain Layer:

    • Entities: Basic data objects used across the application.
    • Use Cases: Classes that contain the business logic.
  • Data Layer:

    • Repositories: Interfaces for data handling.
    • Data Sources: Implementations for data fetching (e.g., API calls, local storage).

Setup

To set up the project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Nilupul96/currency_converter.git
    cd currency_converter
    
  2. Install Flutter:

If you haven't already, install Flutter by following the instructions on the official Flutter website.

  1. Get dependencies:

flutter pub get

  1. Add your API Key:

get Your API key from this web site--> https://app.freecurrencyapi.com

Then create .env file in your root project directory

API_KEY = YOUR_API_KEY add this line in .env file and replace your API Key

For more details--> https://pub.dev/packages/flutter_dotenv

Running the App:

Run on an emulator or connected device:

flutter run

Dependencies

Here are some of the key dependencies used in this project:

Currency converting API - https://app.freecurrencyapi.com

currency_converter's People

Contributors

nilupul96 avatar

Stargazers

 avatar

Watchers

 avatar

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.