-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dark sample UI with customization options added in example module
- Loading branch information
1 parent
77529fc
commit fe5e024
Showing
3 changed files
with
628 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:truecaller_sdk/truecaller_sdk.dart'; | ||
|
||
class TitleOption { | ||
String name; | ||
|
||
TitleOption(this.name); | ||
|
||
static List<TitleOption> getTitleOptions() { | ||
return <TitleOption>[ | ||
TitleOption("Login"), | ||
TitleOption("Signup"), | ||
TitleOption("Signin"), | ||
TitleOption("Verify"), | ||
TitleOption("Register"), | ||
TitleOption("Get Started") | ||
]; | ||
} | ||
} | ||
|
||
class FooterOption { | ||
String name; | ||
|
||
FooterOption(this.name); | ||
|
||
static Map<int, String> getFooterOptionsMap() { | ||
return { | ||
TruecallerSdkScope.FOOTER_TYPE_SKIP: "Skip", | ||
TruecallerSdkScope.FOOTER_TYPE_CONTINUE: "Use Another Number", | ||
TruecallerSdkScope.FOOTER_TYPE_ANOTHER_METHOD: "Use Another Method", | ||
TruecallerSdkScope.FOOTER_TYPE_MANUALLY: "Enter Details Manually", | ||
TruecallerSdkScope.FOOTER_TYPE_LATER: "I'll do later", | ||
TruecallerSdkScope.FOOTER_TYPE_NONE: "None" | ||
}; | ||
} | ||
} | ||
|
||
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 ["Use %s", "Continue with %s", "Proceed with %s"]; | ||
} | ||
|
||
static List<String> getLoginPrefixOptions() { | ||
return [ | ||
"To get started", | ||
"To continue", | ||
"To place order", | ||
"To complete your purchase", | ||
"To checkout", | ||
"To complete your booking", | ||
"To proceed with your booking", | ||
"To continue with your booking", | ||
"To get details", | ||
"To view more", | ||
"To continue reading", | ||
"To proceed", | ||
"For new updates", | ||
"To get updates", | ||
"To subscribe", | ||
"To subscribe & get updates", | ||
]; | ||
} | ||
|
||
static List<String> getLoginSuffixOptions() { | ||
return [ | ||
"please verify mobile number", | ||
"please login", | ||
"please signup", | ||
"please login/signup", | ||
"please register", | ||
"please sign in", | ||
]; | ||
} | ||
} |
Oops, something went wrong.