Skip to content

Commit

Permalink
Added flutter svg inpendency
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez committed Oct 10, 2020
1 parent 6a3c8d6 commit eadfcfb
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/CONSTANTS.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const kAppIconUrl =
'https://firebasestorage.googleapis.com/v0/b/malaysia-waktu-solat.appspot.com/o/icon%20(Custom).png?alt=media&token=9efb706e-4bf3-4e60-af8e-9a88ee6db60c';
const kThemeUiUrl =
'https://firebasestorage.googleapis.com/v0/b/malaysia-waktu-solat.appspot.com/o/In%20app%2Fmpt%20themes%20(1).png?alt=media&token=c6274576-320f-4031-990e-b8e2b554a94e';
const kDeveloperActivityImage =
'https://firebasestorage.googleapis.com/v0/b/malaysia-waktu-solat.appspot.com/o/In%20app%2Fundraw_developer_activity_bv83.svg?alt=media&token=e787419a-fb75-4484-860d-512b4b634c97';

//Network Image (Scenery time images)
const kWaktuSubuhImage =
Expand Down
10 changes: 9 additions & 1 deletion lib/views/contributionPage.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:waktusolatmalaysia/CONSTANTS.dart' as Constants;
import 'package:waktusolatmalaysia/utils/launchUrl.dart';
Expand Down Expand Up @@ -81,7 +82,14 @@ class ContributionPage extends StatelessWidget {
() => LaunchUrl.normalLaunchUrl(
url: Constants.kGithubRepoLink)),
],
)
),
FittedBox(
fit: BoxFit.contain,
child: Padding(
padding: const EdgeInsets.all(18.0),
child:
SvgPicture.network(Constants.kDeveloperActivityImage),
))
],
),
),
Expand Down
35 changes: 35 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.2+1"
flutter_svg:
dependency: "direct main"
description:
name: flutter_svg
url: "https://pub.dartlang.org"
source: hosted
version: "0.19.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -289,6 +296,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety"
path_drawing:
dependency: transitive
description:
name: path_drawing
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.1+1"
path_parsing:
dependency: transitive
description:
name: path_parsing
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
path_provider:
dependency: transitive
description:
Expand Down Expand Up @@ -331,6 +352,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.2"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.0"
platform:
dependency: transitive
description:
Expand Down Expand Up @@ -511,6 +539,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "4.5.1"
sdks:
dart: ">=2.10.0-0.0.dev <2.10.0"
flutter: ">=1.20.0 <2.0.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies:
geolocator: ^6.0.0+4
flutter_spinkit: ^4.1.2+1
get: ^3.12.1
# flutter_svg: ^0.18.1
flutter_svg: ^0.19.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit eadfcfb

Please sign in to comment.