Skip to content

Commit

Permalink
dark sample UI with customization options added in example module
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhral-kumar committed Aug 12, 2020
1 parent 77529fc commit fe5e024
Show file tree
Hide file tree
Showing 3 changed files with 628 additions and 0 deletions.
94 changes: 94 additions & 0 deletions example/lib/customization/ConfigOptions.dart
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",
];
}
}
Loading

0 comments on commit fe5e024

Please sign in to comment.