-
Notifications
You must be signed in to change notification settings - Fork 274
/
devfest.dart
82 lines (71 loc) · 3.21 KB
/
devfest.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
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
class Devfest {
static const String app_name = "Devfest";
static const String app_version = "Version 1.0.4";
static const int app_version_code = 1;
static const String app_color = "#ffd7167";
static Color primaryAppColor = Colors.white;
static Color secondaryAppColor = Colors.black;
static const String google_sans_family = "GoogleSans";
static bool isDebugMode = false;
// * Url related
static String baseUrl = "https://storage.googleapis.com/gdg-devfest";
static checkDebug() {
assert(() {
// baseUrl = "http://127.0.0.1:8000/gdg-devfest/";
// * Change with your local url if any
baseUrl = "https://storage.googleapis.com/gdg-devfest";
isDebugMode = true;
return true;
}());
}
static bool get checkDebugBool {
var debug = false;
assert(debug = true);
return debug;
}
//* Images
static const String home_img = "assets/images/home_img.jpeg";
static const String banner_light = "assets/images/banner_light.png";
static const String banner_dark = "assets/images/banner_dark.png";
//* Texts
static const String welcomeText = "Welcome to GDG DevFest";
static const String descText =
'''DevFests are community-led, developer events hosted by GDG chapters around the globe focused on community building & learning about Google’s technologies. Each DevFest is inspired by and uniquely tailored to the needs of the developer community and region that hosts it.''';
static const String loading_text = "Loading...";
static const String try_again_text = "Try Again";
static const String some_error_text = "Some error";
static const String signInText = "Sign In";
static const String signInGoogleText = "Sign in with google";
static const String signOutText = "Sign Out";
static const String wrongText = "Something went wrong";
static const String confirmText = "Confirm";
static const String supportText = "Support Needed";
static const String featureText = "Feature Request";
static const String moreFeatureText = "More Features coming soon.";
static const String updateNowText =
"Please update your app for seamless experience.";
static const String checkNetText =
"It seems like your internet connection is not active.";
//* ActionTexts
static const String agenda_text = "Agenda";
static const String speakers_text = "Speakers";
static const String team_text = "Team";
static const String sponsor_text = "Sponsors";
static const String faq_text = "FAQ";
static const String map_text = "Locate Us";
//* Preferences
static SharedPreferences prefs;
static const String loggedInPref = "loggedInPref1";
static const String displayNamePref = "displayNamePref";
static const String emailPref = "emailPref";
static const String phonePref = "phonePref";
static const String photoPref = "photoPref";
static const String isAdminPref = "isAdminPref";
static const String darkModePref = "darkModePref";
//* JSON URLS
static const String speakersAssetJson = "assets/json/speakers.json";
static const String sessionsAssetJson = "assets/json/sessions.json";
static const String teamsAssetJson = "assets/json/teams.json";
}