Skip to content

Commit

Permalink
mailing updated
Browse files Browse the repository at this point in the history
  • Loading branch information
miakh committed Dec 8, 2023
1 parent e96277a commit 41a7c56
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 67 deletions.
63 changes: 1 addition & 62 deletions lib/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,6 @@ class config {
static const String home_page = 'festapp';
static const String map_page = 'Mapa';

//coffee
// static const primaryColor = 0xFF122640;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFFBF8641);
// static const color3 = Color(0xFF593E25);
// static const color4 = Color(0xFF1B3659);
// static const attentionColor = Color(0xFF8B0000);

//raven theme
// static const primaryColor = 0xFF1D2026;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFF5E6D8C);
// static const color3 = Color(0xFFBFBFBF);
// static const color4 = Color(0xFF2C3540);
// static const attentionColor = Color(0xFF8B0000);

//rock style
// static const primaryColor = 0xFF260101;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFFBF4904);
// static const color3 = Color(0xFFF29D52);
// static const color4 = Color(0xFF731702);
// static const attentionColor = Color(0xFF8B0000);

//frosty style
static const primaryColor = 0xFF0D0D0D;
static const backgroundColor = Color(0xFFFFFFFF);
Expand All @@ -42,44 +15,10 @@ class config {
static const color4 = Color(0xFF253759);
static const attentionColor = Color(0xFF8B0000);

//galaxy
// static const primaryColor = 0xFF023059;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFF8C331F);
// static const color3 = Color(0xFFA65424);
// static const color4 = Color(0xFF26080D);
// static const attentionColor = Color(0xFF8B0000);

//coffee
// static const primaryColor = 0xFF261914;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFF735A4C);
// static const color3 = Color(0xFFA69485);
// static const color4 = Color(0xFF592C22);
// static const attentionColor = Color(0xFF8B0000);

// static const primaryColor = 0xFF261914;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFF692F00);
// static const color3 = Color(0xFF472705);
// static const color4 = Color(0xFF2B1000);
// static const attentionColor = Color(0xFF8B0000);

// static const primaryColor = 0xFF072026;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFF8C7E6C);
// static const color3 = Color(0xFFD9B79A);
// static const color4 = Color(0xFF2D3E40);
// static const attentionColor = Color(0xFF8B0000);

static const bool isServiceRoleSafety = false;
static const bool isNotificationsSupported = false;
static const String OneSignalAppId = '';

static const String generatedPasswordPrefix = "fa";
static const String welcomeEmailTemplate = "jy7zpl9nqe545vx6";
static const String welcomeEmailTemplate = "3zxk54v68jqgjy6v";
}
13 changes: 8 additions & 5 deletions lib/services/MailerSendHelper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ import 'package:avapp/config.dart';

class MailerSendHelper{
static Future<void> sendPassword(UserInfoModel recipient, String password) async {
var passwordVar = {"var":"password", "value":password};
var emailVar = {"var":"email", "value":recipient.email!};
var variables = [passwordVar, emailVar];
variables.addAll(_getSalutationPresalutation(recipient));
await DataService.emailMailerSend(recipient.email!, config.welcomeEmailTemplate, variables);
List<Map<String, String>> allVars = [
{"var":"password", "value":password},
{"var":"email", "value":recipient.email!},
{"var":"name", "value": recipient.name!},
];

allVars.addAll(_getSalutationPresalutation(recipient));
await DataService.emailMailerSend(recipient.email!, config.welcomeEmailTemplate, allVars);
ToastHelper.Show("Email s přístupovými údaji byl odeslán uživateli: ${recipient.email}");
await Future.delayed(const Duration(milliseconds: 6000));
}
Expand Down
63 changes: 63 additions & 0 deletions lib/styles/Styles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,66 @@ class CircularButton extends MainPageButton {
);
}
}


//coffee
// static const primaryColor = 0xFF122640;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFFBF8641);
// static const color3 = Color(0xFF593E25);
// static const color4 = Color(0xFF1B3659);
// static const attentionColor = Color(0xFF8B0000);

//raven theme
// static const primaryColor = 0xFF1D2026;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFF5E6D8C);
// static const color3 = Color(0xFFBFBFBF);
// static const color4 = Color(0xFF2C3540);
// static const attentionColor = Color(0xFF8B0000);

//rock style
// static const primaryColor = 0xFF260101;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFFBF4904);
// static const color3 = Color(0xFFF29D52);
// static const color4 = Color(0xFF731702);
// static const attentionColor = Color(0xFF8B0000);


//galaxy
// static const primaryColor = 0xFF023059;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFF8C331F);
// static const color3 = Color(0xFFA65424);
// static const color4 = Color(0xFF26080D);
// static const attentionColor = Color(0xFF8B0000);

//coffee
// static const primaryColor = 0xFF261914;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFF735A4C);
// static const color3 = Color(0xFFA69485);
// static const color4 = Color(0xFF592C22);
// static const attentionColor = Color(0xFF8B0000);

// static const primaryColor = 0xFF261914;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFF692F00);
// static const color3 = Color(0xFF472705);
// static const color4 = Color(0xFF2B1000);
// static const attentionColor = Color(0xFF8B0000);

// static const primaryColor = 0xFF072026;
// static const backgroundColor = Color(0xFFFFFFFF);
// static const color1 = Color(primaryColor);
// static const color2 = Color(0xFF8C7E6C);
// static const color3 = Color(0xFFD9B79A);
// static const color4 = Color(0xFF2D3E40);
// static const attentionColor = Color(0xFF8B0000);

0 comments on commit 41a7c56

Please sign in to comment.