-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da847b4
commit 1fd3b99
Showing
7 changed files
with
491 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
# currency_exchange_rate_app_flutter | ||
# Currency Exchange Rate application using Flutter + GetIt + Dio | ||
|
||
A new Flutter project. | ||
## Descriptions | ||
👋 Hey there! | ||
|
||
## Getting Started | ||
As part of my Flutter course, I developed an app for some practice. I used Bloc as state manager and GetIt for dependency injection and Dio requests. Overall, I'm pretty excited about how this project turned out and I hope you will enjoy it too! ❤️ | ||
|
||
This project is a starting point for a Flutter application. | ||
## ScreenShots | ||
<br /> | ||
<div> | ||
    | ||
<img src="https://github.com/SepehrFakoori/currency_exchange_rate_flutter_app/blob/1398995a4719494560f22370309db0bf22d8146d/assets/images/Splashscreen.png" alt="Splash Screen" width="180"> | ||
     | ||
<img src="https://github.com/SepehrFakoori/currency_exchange_rate_flutter_app/blob/1398995a4719494560f22370309db0bf22d8146d/assets/images/Loading.png" alt="Loading" width="180"> | ||
     | ||
<img src="https://github.com/SepehrFakoori/currency_exchange_rate_flutter_app/blob/1398995a4719494560f22370309db0bf22d8146d/assets/images/Homescreen.png" alt="Home Screen" width="180"> | ||
</div> | ||
<br /> | ||
|
||
A few resources to get you started if this is your first Flutter project: | ||
## My Socials: | ||
* [INSTAGRAM](https://www.instagram.com/sepehrfakoori) | ||
* [LINKEDIN](https://www.linkedin.com/in/sepehrfakoori) | ||
* [CONTACT ME](https://sepehrfakoori99@gmail.com) | ||
|
||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) | ||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) | ||
|
||
For help getting started with Flutter development, view the | ||
[online documentation](https://docs.flutter.dev/), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import 'package:currency_exchange_rate_app_flutter/data/datasource/crypto_currency_datasource.dart'; | ||
import 'package:currency_exchange_rate_app_flutter/data/repository/crypto_currency_repository.dart'; | ||
import 'package:currency_exchange_rate_app_flutter/data/datasource/price_datasource.dart'; | ||
import 'package:currency_exchange_rate_app_flutter/data/repository/price_repository.dart'; | ||
import 'package:dio/dio.dart'; | ||
import 'package:get_it/get_it.dart'; | ||
|
||
var locator = GetIt.instance; | ||
|
||
Future<void> getItInit() async { | ||
locator.registerSingleton<Dio>(Dio(BaseOptions(baseUrl: "https://one-api.ir/"))); | ||
locator.registerSingleton<ICryptoCurrencyDataSource>(CryptoCurrencyRemoteDatasource()); | ||
locator.registerSingleton<ICryptoCurrencyRepository>(CryptoCurrencyRepository()); | ||
locator.registerSingleton<IPriceDataSource>(PriceRemoteDatasource()); | ||
locator.registerSingleton<IPriceRepository>(PriceRepository()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.