Skip to content

Commit 9d3cd5e

Browse files
committed
Up to 150 top cryptos
1 parent cd5fad4 commit 9d3cd5e

File tree

4 files changed

+2
-24
lines changed

4 files changed

+2
-24
lines changed

android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def keystorePropertiesFile = rootProject.file("key.properties")
1111
def keystoreProperties = new Properties()
1212
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
1313
**/
14+
1415
def flutterRoot = localProperties.getProperty('flutter.sdk')
1516
if (flutterRoot == null) {
1617
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
org.gradle.jvmargs=-Xmx1536M
1+
org.gradle.jvmargs=-Xmx1536M

lib/ui/home/home_page_body.dart

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,8 @@ class HomePageBodyState extends State<HomePageBody> {
2727
List data;
2828
bool isLoading = true;
2929

30-
DatabaseClient db = new DatabaseClient();
31-
List fiat;
32-
String fiatString = "";
33-
3430
Future<bool> getDataFromAPI() async {
3531

36-
await db.createFIAT();
37-
fiat = await db.fetchFIAT();
38-
39-
this.setState(() {
40-
if(fiat==null){
41-
fiatString = "EUR";
42-
}
43-
else {
44-
fiatString = fiat.elementAt(0).toString().toUpperCase();
45-
}
46-
});
47-
4832
var response = await http.get(
4933
Uri.encodeFull("https://api.coinmarketcap.com/v1/ticker/?convert="+"EUR"+"&limit=150"),
5034
headers: {

pubspec.lock

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,6 @@ packages:
270270
url: "https://pub.dartlang.org"
271271
source: hosted
272272
version: "0.4.0"
273-
platform:
274-
dependency: "direct main"
275-
description:
276-
name: platform
277-
url: "https://pub.dartlang.org"
278-
source: hosted
279-
version: "2.1.2"
280273
plugin:
281274
dependency: transitive
282275
description:

0 commit comments

Comments
 (0)