-
Notifications
You must be signed in to change notification settings - Fork 44
/
config_options.dart
121 lines (112 loc) · 3.97 KB
/
config_options.dart
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/*
* TRUECALLER SDK COPYRIGHT, TRADEMARK AND LICENSE NOTICE
*
* Copyright © 2015-Present, True Software Scandinavia AB. All rights reserved.
*
* Truecaller and Truecaller SDK are registered trademark of True Software Scandinavia AB.
*
* In accordance with the Truecaller SDK Agreement available
* here (https://developer.truecaller.com/Truecaller-sdk-product-license-agreement-RoW.pdf)
* accepted and agreed between You and Your respective Truecaller entity, You are granted a
* limited, non-exclusive, non-sublicensable, non-transferable, royalty-free, license to use the
* Truecaller SDK Product in object code form only, solely for the purpose of using
* the Truecaller SDK Product with the applications and APIs provided by Truecaller.
*
* THE TRUECALLER SDK PRODUCT IS PROVIDED BY THE COPYRIGHT HOLDER AND AUTHOR “AS IS”,
* WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED,INCLUDING BUT NOT LIMITED
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
* SOFTWARE QUALITY,PERFORMANCE,DATA ACCURACY AND NON-INFRINGEMENT. IN NO
* EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES OR
* OTHER LIABILITY INCLUDING BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THE TRUECALLER SDK PRODUCT OR THE USE
* OR OTHER DEALINGS IN THE TRUECALLER SDK PRODUCT, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. AS A RESULT, BY INTEGRATING THE TRUECALLER SDK
* PRODUCT YOU ARE ASSUMING THE ENTIRE RISK AS TO ITS QUALITY AND PERFORMANCE.
*/
import 'package:flutter/material.dart';
import 'package:truecaller_sdk/truecaller_sdk.dart';
class HeadingOption {
static List<String> getHeadingOptions() {
return [
"Login",
"Signup",
"Signin",
"Verify",
"Register",
"Get Started",
"Proceed with",
"Verify with",
"Verify profile with",
"Verify your profile with",
"Verify phone number with",
"Verify your number with",
"Continue with",
"Complete order with",
"Place order with",
"Complete booking with",
"Checkout with",
"Manage details with",
"Manage your details with",
"Login to %s with one tap",
"Subscribe to",
"Get updates from",
"Continue reading on",
"Get new updates from",
"Login/Signup with"
];
}
}
class FooterOption {
String name;
FooterOption(this.name);
static Map<int, String> getFooterOptionsMap() {
return {
TcSdkOptions.FOOTER_TYPE_ANOTHER_MOBILE_NO: "Use Another Number",
TcSdkOptions.FOOTER_TYPE_ANOTHER_METHOD: "Use Another Method",
TcSdkOptions.FOOTER_TYPE_MANUALLY: "Enter Details Manually",
TcSdkOptions.FOOTER_TYPE_LATER: "I'll do later",
TcSdkOptions.FOOTER_TYPE_SKIP: "Skip",
};
}
}
class ConfigOptions {
static Map<String, int> getColorList() {
return {
"green": Colors.green.value,
"white": Colors.white.value,
"red": Colors.red.value,
"blue": Colors.blue.value,
"black": Colors.black.value,
"grey": Colors.grey.value,
"cyan": Colors.cyan.value,
"brown": Colors.brown.value,
"yellow": Colors.yellow.value,
"lime": Colors.lime.value,
"purple": Colors.purple.value,
"pink": Colors.pink.value,
"deepOrange": Colors.deepOrange.value,
"indigo": Colors.indigo.value,
"teal": Colors.teal.value,
};
}
static List<String> getCtaPrefixOptions() {
return [
"Proceed",
"Continue",
"Accept",
"Confirm",
"Use %s",
"Continue with %s",
"Proceed with %s"
];
}
}
class AccessTokenHelper {
final TcOAuthData tcOAuthData;
final String codeVerifier;
AccessTokenHelper(this.tcOAuthData, this.codeVerifier);
}