Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Surya Bintara
Cleon Mobile Front End
Commits
c65ccb3a
Commit
c65ccb3a
authored
3 years ago
by
Surya B
Browse files
Options
Download
Email Patches
Plain Diff
hapus system navigator pop
parent
57f7ba47
master
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/views/home/home.dart
+0
-11
lib/views/home/home.dart
lib/views/shop/pembayaran.dart
+6
-11
lib/views/shop/pembayaran.dart
pubspec.lock
+28
-21
pubspec.lock
pubspec.yaml
+1
-1
pubspec.yaml
with
35 additions
and
44 deletions
+35
-44
lib/views/home/home.dart
View file @
c65ccb3a
...
...
@@ -4,7 +4,6 @@ import 'package:cleon_mobile/api/api_services.dart';
import
'package:cleon_mobile/models/riwayat.dart'
;
import
'package:cleon_mobile/models/user.dart'
;
import
'package:cleon_mobile/views/home/detail_riwayat.dart'
;
import
'package:firebase_dynamic_links/firebase_dynamic_links.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
...
...
@@ -22,22 +21,12 @@ class _HomeState extends State<Home> {
@override
void
initState
()
{
initDynamicLink
();
// ignore: todo
super
.
initState
();
futureUser
=
api
.
getUser
();
futureRiwayat
=
api
.
getRiwayat
();
}
Future
<
void
>
initDynamicLink
()
async
{
final
PendingDynamicLinkData
?
data
=
await
FirebaseDynamicLinks
.
instance
.
getInitialLink
();
if
(
data
?.
link
!=
null
)
{
var
queryParam
=
data
?.
link
.
queryParameters
[
'payment-status'
].
toString
();
Navigator
.
pushNamed
(
context
,
'/
$queryParam
'
);
}
}
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
...
...
This diff is collapsed.
Click to expand it.
lib/views/shop/pembayaran.dart
View file @
c65ccb3a
...
...
@@ -4,7 +4,6 @@ import 'package:cleon_mobile/api/api_services.dart';
import
'package:cleon_mobile/models/paket.dart'
;
import
'package:firebase_dynamic_links/firebase_dynamic_links.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_easyloading/flutter_easyloading.dart'
;
import
'package:intl/intl.dart'
;
...
...
@@ -28,18 +27,15 @@ class _PembayaranState extends State<Pembayaran> {
// ignore: todo
// TODO: implement initState
super
.
initState
();
initDynamicLink
(
context
);
initDynamicLink
();
}
void
initDynamicLink
(
BuildContext
context
)
async
{
FirebaseDynamicLinks
.
instance
.
onLink
.
listen
((
PendingDynamicLinkData
dynamicLinkData
)
{
Uri
link
=
dynamicLinkData
.
link
;
var
queryParam
=
link
.
queryParameters
[
'payment-status'
].
toString
();
Navigator
.
pushNamed
(
context
,
'/
$queryParam
'
);
}).
onError
((
error
)
{
print
(
error
);
void
initDynamicLink
()
async
{
FirebaseDynamicLinks
.
instance
.
onLink
.
listen
((
event
)
{
print
(
event
.
link
.
toString
());
});
print
(
"init dynamic link"
);
}
@override
...
...
@@ -203,7 +199,6 @@ class _PembayaranState extends State<Pembayaran> {
widget
.
paket
.
harga
+
1000
);
print
(
result
);
EasyLoading
.
dismiss
();
SystemNavigator
.
pop
();
});
},
),
...
...
This diff is collapsed.
Click to expand it.
pubspec.lock
View file @
c65ccb3a
...
...
@@ -7,14 +7,14 @@ packages:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "3.
2.1
"
version: "3.
3.0
"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "2.3.
0
"
version: "2.3.
1
"
async:
dependency: transitive
description:
...
...
@@ -42,7 +42,7 @@ packages:
name: change_app_package_name
url: "https://pub.dartlang.org"
source: hosted
version: "1.
0
.0"
version: "1.
1
.0"
characters:
dependency: transitive
description:
...
...
@@ -77,7 +77,7 @@ packages:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.
1
"
version: "3.0.
2
"
cupertino_icons:
dependency: "direct main"
description:
...
...
@@ -147,7 +147,7 @@ packages:
name: ffi
url: "https://pub.dartlang.org"
source: hosted
version: "1.
1.2
"
version: "1.
2.1
"
file:
dependency: transitive
description:
...
...
@@ -161,35 +161,35 @@ packages:
name: firebase_core
url: "https://pub.dartlang.org"
source: hosted
version: "1.1
4
.1"
version: "1.1
7
.1"
firebase_core_platform_interface:
dependency: transitive
description:
name: firebase_core_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "4.
2.5
"
version: "4.
4.0
"
firebase_core_web:
dependency: transitive
description:
name: firebase_core_web
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.
2
"
version: "1.6.
4
"
firebase_dynamic_links:
dependency: "direct main"
description:
name: firebase_dynamic_links
url: "https://pub.dartlang.org"
source: hosted
version: "4.
1.3
"
version: "4.
2.5
"
firebase_dynamic_links_platform_interface:
dependency: transitive
description:
name: firebase_dynamic_links_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.
2
+3"
version: "0.2.
3
+3"
flutter:
dependency: "direct main"
description: flutter
...
...
@@ -229,7 +229,7 @@ packages:
name: flutter_native_splash
url: "https://pub.dartlang.org"
source: hosted
version: "2.
0.5
"
version: "2.
1.6
"
flutter_secure_storage:
dependency: "direct main"
description:
...
...
@@ -309,35 +309,35 @@ packages:
name: google_sign_in
url: "https://pub.dartlang.org"
source: hosted
version: "5.3.
0
"
version: "5.3.
2
"
google_sign_in_android:
dependency: transitive
description:
name: google_sign_in_android
url: "https://pub.dartlang.org"
source: hosted
version: "5.2.
5
"
version: "5.2.
8
"
google_sign_in_ios:
dependency: transitive
description:
name: google_sign_in_ios
url: "https://pub.dartlang.org"
source: hosted
version: "5.
2.5
"
version: "5.
3.1
"
google_sign_in_platform_interface:
dependency: transitive
description:
name: google_sign_in_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.
2
"
version: "2.1.
3
"
google_sign_in_web:
dependency: transitive
description:
name: google_sign_in_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.1"
version: "0.10.1
+2
"
http:
dependency: "direct main"
description:
...
...
@@ -351,7 +351,7 @@ packages:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.
0
"
version: "4.0.
1
"
image:
dependency: transitive
description:
...
...
@@ -373,6 +373,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.3"
lint:
dependency: transitive
description:
name: lint
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.2"
lints:
dependency: transitive
description:
...
...
@@ -449,14 +456,14 @@ packages:
name: provider
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.
2
"
version: "6.0.
3
"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "3.
0.1+1
"
version: "3.
1.0
"
shimmer:
dependency: "direct main"
description:
...
...
@@ -594,7 +601,7 @@ packages:
name: win32
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.
1
"
version: "2.5.
2
"
xml:
dependency: transitive
description:
...
...
@@ -608,7 +615,7 @@ packages:
name: yaml
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.
0
"
version: "3.1.
1
"
sdks:
dart: ">=2.16.0 <3.0.0"
flutter: ">=2.10.0"
This diff is collapsed.
Click to expand it.
pubspec.yaml
View file @
c65ccb3a
...
...
@@ -34,7 +34,7 @@ dependencies:
equatable
:
^2.0.3
flutter_secure_storage
:
^5.0.2
http
:
^0.13.4
firebase_dynamic_links
:
^4.
1.3
firebase_dynamic_links
:
^4.
2.5
firebase_core
:
^1.14.1
google_sign_in
:
^5.3.0
font_awesome_flutter
:
^10.1.0
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help