diff --git a/lib/counter.dart b/lib/counter.dart new file mode 100644 index 0000000..453d47a --- /dev/null +++ b/lib/counter.dart @@ -0,0 +1,18 @@ +import 'dart:io'; + +import 'package:flutter/widgets.dart'; +import 'package:intl/intl.dart'; + +class Counter extends AnimatedWidget { + Counter({Key key, this.animation, this.textStyle}) : super(key: key, listenable: animation); + final Animation animation; + final TextStyle textStyle; + + @override + build(BuildContext context) { + return new Text( + new NumberFormat.decimalPattern(Platform.localeName).format(animation.value), + style: textStyle, + ); + } +} \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart index bac519d..512224f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,5 +1,6 @@ import 'dart:io'; import 'package:covid19stats/chartsData.dart'; +import 'package:covid19stats/counter.dart'; import 'package:covid19stats/countryData.dart'; import 'package:covid19stats/selectCountry.dart'; import 'package:covid19stats/parser.dart'; @@ -735,18 +736,4 @@ class _MyHomePageState extends State with TickerProviderStateMixin { ], ); } -} - -class Counter extends AnimatedWidget { - Counter({Key key, this.animation, this.textStyle}) : super(key: key, listenable: animation); - final Animation animation; - final TextStyle textStyle; - - @override - build(BuildContext context) { - return new Text( - new NumberFormat.decimalPattern(Platform.localeName).format(animation.value), - style: textStyle, - ); - } -} +} \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 074ae80..7334780 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: A mobile app developed with Flutter to view Covid19 statistics. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 2.0.2+9 +version: 2.0.2+10 environment: sdk: ">=2.2.2 <3.0.0" diff --git a/repo_files/app-release.apk b/repo_files/app-release.apk index f6a5f12..730df10 100644 Binary files a/repo_files/app-release.apk and b/repo_files/app-release.apk differ