Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_jdsdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_jdsdk
Commits
e8c6c1ee
Commit
e8c6c1ee
authored
Aug 02, 2021
by
汪林玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
db3cb48d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
example/lib/main.dart
example/lib/main.dart
+0
-3
lib/jdsdk.dart
lib/jdsdk.dart
+2
-2
No files found.
example/lib/main.dart
View file @
e8c6c1ee
import
'package:flutter/material.dart'
;
import
'dart:async'
;
import
'package:flutter/services.dart'
;
import
'package:jd_sdk/jdsdk.dart'
;
void
main
(
)
=>
runApp
(
MyApp
());
...
...
lib/jdsdk.dart
View file @
e8c6c1ee
...
...
@@ -11,8 +11,8 @@ class Jdsdk {
/// [appSecret] app密钥
///
static
Future
<
Map
<
String
,
dynamic
>>
init
({
@required
String
appKey
,
@required
String
appSecret
})
async
{
final
Map
<
String
,
dynamic
>
version
=
await
_channel
.
invokeMethod
(
'init'
,
{
"appKey"
:
appKey
,
"appSecret"
:
appSecret
});
return
version
;
final
Map
<
dynamic
,
dynamic
>
version
=
await
_channel
.
invokeMethod
(
'init'
,
{
"appKey"
:
appKey
,
"appSecret"
:
appSecret
});
return
Map
<
String
,
dynamic
>.
from
(
version
)
;
}
///
...
...
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