Skip to content

Latest commit

 

History

History
75 lines (55 loc) · 1.52 KB

README.md

File metadata and controls

75 lines (55 loc) · 1.52 KB

CryptoSpace

Cryptocurrency Tracker

Web Demo

cryptospace

Slides and Assets

API

coincap.io

Create new project

$ flutter create cryptospace
$ cd cryptospace

Add the necessary dependencies and configure launcher icon and splash screen

dependencies:
  flutter:
    sdk: flutter
  dio: ^4.0.0

dev_dependencies:
  flutter_launcher_icons: ^0.9.0
  flutter_native_splash: ^1.1.8+4
  flutter_test:
    sdk: flutter
  lint: ^1.0.0
 
flutter_icons:
  android: "launcher_icon"
  ios: true
  remove_alpha_ios: true
  image_path: "assets/images/logo.png"
  adaptive_icon_background: "assets/images/logo.png"
  adaptive_icon_foreground: "assets/images/logo.png"

flutter_native_splash:
  color: "#EC4561"
  image: "assets/images/logo.png"
  android: true
  ios: true

Create the file analysis_options.yaml in the root directory and add the following line

include: package:lint/analysis_options.yaml

Add asset and font directories to pubspec.yaml

  assets:
    - assets/images/

Constants

const baseUrl = 'api.coincap.io';
const cryptosPath = '/v2/assets';

const kGreenColor = Color(0xFF21CE99);
const kGreyColor = Color(0xFFA0A2A4);
const kBlackColor = Color(0xFF171A1E);
const kRedColor = Color(0xFFCF6679);