admin
2022-05-12 fa705507ba574c857b1667553737d23b1b7ff495
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import 'dart:convert';
 
import 'package:flutter/cupertino.dart';
import '../../api/config_api.dart';
import '../api/http.dart';
import 'package:shared_preferences/shared_preferences.dart';
 
import 'share_preference.dart';
 
class ConfigUtil {
  static Future<String?> getConfig(BuildContext context, String key) async {
    String? value = await dataMethodChannel.invokeMethod("getConfig", key);
    return value;
  }
}
 
class ConfigKey {
  //客服
  static const String kefu = "kefu";
 
  //教程
  static const String course = "course";
 
  //注销
  static const String unRegister = "unRegister";
 
  //隐私投诉
  static const String privacyComplain = "privacyComplain";
 
  //会员链接
  static const String vipLink = "vipLink";
 
  //三方SDK链接
  static const String sdkList = "sdkList";
}
 
enum SharePlatform { all, wx, wxcircle, qq, qqzone, sina }