strings.dart 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // ignore_for_file: non_constant_identifier_names
  2. class _Strings {
  3. static _Strings instance = _Strings();
  4. String TITLE_CONTACTS_PAGE = "Contacts";
  5. String TITLE_WHATS_HAPPENING = "What's happening this week?";
  6. String TITLE_ADD_CONTACT = "Add Contact";
  7. String TITLE_EDIT_CONTACT = "Edit Contact";
  8. String BTN_OK = "Ok";
  9. String BTN_CANCEL = "Cancel";
  10. String BTN_SIGN_IN = "Sign In";
  11. String BTN_SIGN_OUT = "Sign Out";
  12. String BTN_COMPLETE = "Complete";
  13. String BTN_SAVE = "Save";
  14. String LBL_WELCOME = "Welcome!";
  15. String LBL_NAME_FIRST = "First Name";
  16. String LBL_NAME_MIDDLE = "Middle Name";
  17. String LBL_NAME_LAST = "Last Name";
  18. String LBL_STEP_X = "Step {0}";
  19. String ERR_DEVICE_OAUTH_FAILED_TITLE = "Unable to connect to your account.";
  20. String ERR_DEVICE_OAUTH_FAILED_MSG =
  21. "Please make sure you've completed the sign-in process in your browser.";
  22. String GOOGLE_OAUTH_TITLE = "GOOGLE SIGN-IN";
  23. String GOOGLE_OAUTH_INSTRUCTIONS_1 =
  24. "In order to import your Google Contacts, you'll need to authorize this application using your web browser.";
  25. String GOOGLE_OAUTH_INSTRUCTIONS_2 =
  26. "Copy this code to your clipboard by clicking the icon or selecting the text:";
  27. String GOOGLE_OAUTH_INSTRUCTIONS_3 =
  28. "Navigate to the following link in your web browser, and enter the above code:";
  29. String GOOGLE_OAUTH_INSTRUCTIONS_4 =
  30. "Press the button below when you've completed signup:";
  31. }
  32. _Strings get S => _Strings.instance;
  33. extension AddSupplant on String {
  34. String sup(
  35. [dynamic v0,
  36. dynamic v1,
  37. dynamic v2,
  38. dynamic v3,
  39. dynamic v4,
  40. dynamic v5,
  41. dynamic v6]) {
  42. var _s = this;
  43. if (v0 != null) _s = _s.replaceAll("{0}", "$v0");
  44. if (v1 != null) _s = _s.replaceAll("{1}", "$v1");
  45. if (v2 != null) _s = _s.replaceAll("{2}", "$v2");
  46. if (v3 != null) _s = _s.replaceAll("{3}", "$v3");
  47. if (v4 != null) _s = _s.replaceAll("{4}", "$v4");
  48. if (v5 != null) _s = _s.replaceAll("{5}", "$v5");
  49. if (v6 != null) _s = _s.replaceAll("{6}", "$v6");
  50. return _s;
  51. }
  52. }