Skip to content

Commit 1d1c1e8

Browse files
committed
packageinfo for about dialog
1 parent 782ddc3 commit 1d1c1e8

File tree

4 files changed

+68
-2
lines changed

4 files changed

+68
-2
lines changed

ios/Podfile.lock

+6
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,8 @@ PODS:
517517
- nanopb/encode (= 2.30908.0)
518518
- nanopb/decode (2.30908.0)
519519
- nanopb/encode (2.30908.0)
520+
- package_info_plus (0.4.5):
521+
- Flutter
520522
- PromisesObjC (2.0.0)
521523

522524
DEPENDENCIES:
@@ -531,6 +533,7 @@ DEPENDENCIES:
531533
- image_picker (from `.symlinks/plugins/image_picker/ios`)
532534
- location (from `.symlinks/plugins/location/ios`)
533535
- map_launcher (from `.symlinks/plugins/map_launcher/ios`)
536+
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
534537

535538
SPEC REPOS:
536539
trunk:
@@ -577,6 +580,8 @@ EXTERNAL SOURCES:
577580
:path: ".symlinks/plugins/location/ios"
578581
map_launcher:
579582
:path: ".symlinks/plugins/map_launcher/ios"
583+
package_info_plus:
584+
:path: ".symlinks/plugins/package_info_plus/ios"
580585

581586
SPEC CHECKSUMS:
582587
abseil: 6c8eb7892aefa08d929b39f9bb108e5367e3228f
@@ -608,6 +613,7 @@ SPEC CHECKSUMS:
608613
location: 3a2eed4dd2fab25e7b7baf2a9efefe82b512d740
609614
map_launcher: e325db1261d029ff33e08e03baccffe09593ffea
610615
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
616+
package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
611617
PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58
612618

613619
PODFILE CHECKSUM: 48b0e768a65fef704cb9ee349b701c4532fb7618

lib/widgets/general_use/hamburger_button.dart

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
22
import 'package:harmony/services/auth_service.dart';
33
import 'package:harmony/utilites/constants.dart';
44
import 'package:harmony/utilites/login_register_states/signout_state.dart';
5+
import 'package:package_info_plus/package_info_plus.dart';
56

67
class HamburgerButton extends StatelessWidget {
78
HamburgerButton({Key? key}) : super(key: key);
@@ -33,10 +34,12 @@ class HamburgerButton extends StatelessWidget {
3334
ListTile(
3435
leading: const Icon(Icons.info),
3536
title: const Text("About Harmony"),
36-
onTap: () {
37+
onTap: () async {
38+
PackageInfo packageInfo = await PackageInfo.fromPlatform();
39+
3740
showAboutDialog(
3841
context: context,
39-
applicationVersion: "1.0.0a",
42+
applicationVersion: packageInfo.version,
4043
applicationIcon: Image.asset("assets/images/harmony.png", scale: 6,),
4144
applicationName: "Harmony"
4245
);

pubspec.lock

+56
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ packages:
9292
url: "https://pub.dartlang.org"
9393
source: hosted
9494
version: "1.2.0"
95+
ffi:
96+
dependency: transitive
97+
description:
98+
name: ffi
99+
url: "https://pub.dartlang.org"
100+
source: hosted
101+
version: "1.1.2"
95102
firebase:
96103
dependency: transitive
97104
description:
@@ -422,6 +429,48 @@ packages:
422429
url: "https://pub.dartlang.org"
423430
source: hosted
424431
version: "1.0.0"
432+
package_info_plus:
433+
dependency: "direct main"
434+
description:
435+
name: package_info_plus
436+
url: "https://pub.dartlang.org"
437+
source: hosted
438+
version: "1.3.0"
439+
package_info_plus_linux:
440+
dependency: transitive
441+
description:
442+
name: package_info_plus_linux
443+
url: "https://pub.dartlang.org"
444+
source: hosted
445+
version: "1.0.3"
446+
package_info_plus_macos:
447+
dependency: transitive
448+
description:
449+
name: package_info_plus_macos
450+
url: "https://pub.dartlang.org"
451+
source: hosted
452+
version: "1.3.0"
453+
package_info_plus_platform_interface:
454+
dependency: transitive
455+
description:
456+
name: package_info_plus_platform_interface
457+
url: "https://pub.dartlang.org"
458+
source: hosted
459+
version: "1.0.2"
460+
package_info_plus_web:
461+
dependency: transitive
462+
description:
463+
name: package_info_plus_web
464+
url: "https://pub.dartlang.org"
465+
source: hosted
466+
version: "1.0.4"
467+
package_info_plus_windows:
468+
dependency: transitive
469+
description:
470+
name: package_info_plus_windows
471+
url: "https://pub.dartlang.org"
472+
source: hosted
473+
version: "1.0.4"
425474
path:
426475
dependency: transitive
427476
description:
@@ -567,6 +616,13 @@ packages:
567616
url: "https://pub.dartlang.org"
568617
source: hosted
569618
version: "2.1.0"
619+
win32:
620+
dependency: transitive
621+
description:
622+
name: win32
623+
url: "https://pub.dartlang.org"
624+
source: hosted
625+
version: "2.3.0"
570626
wkt_parser:
571627
dependency: transitive
572628
description:

pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dependencies:
3030
firebase_analytics: ^8.3.4
3131
flutter_staggered_grid_view: ^0.4.1
3232
syncfusion_flutter_charts: ^19.3.53
33+
package_info_plus: ^1.3.0
3334

3435
dev_dependencies:
3536
flutter_test:

0 commit comments

Comments
 (0)