182 lines
5.9 KiB
Dart
182 lines
5.9 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class SystemStrings {
|
|
static const keyPre = 'sharedPreferencesKey.';
|
|
static const keyAlertTime = keyPre + 'alertTime';
|
|
static const keyFirstTime = keyPre + 'firstTime';
|
|
static const keyPreSubscribtion = keyPre + 'subscribtion.';
|
|
static const keyPreEventNotification = keyPre + 'eventNotification.';
|
|
static const keyPreFavorization = keyPre + 'favorization.';
|
|
|
|
static const fcmPre = 'firebase.topic.';
|
|
static const dataPre = 'data';
|
|
static const dataArticles = dataPre + 'Articles';
|
|
static const dataFavoriteArticles = dataArticles + 'Favorite';
|
|
static const dataEvents = dataPre + 'Events';
|
|
|
|
static const assetPre = 'assets/';
|
|
static const assetJsonPre = assetPre + 'json/';
|
|
static const assetPois = assetJsonPre + 'pois.json';
|
|
static const assetCompanies = assetJsonPre + 'companies.json';
|
|
static const assetRepresentedOrganisations = assetJsonPre + 'represented_organisations.json';
|
|
static const assetEventOrganisations = assetJsonPre + 'event_organisations.json';
|
|
static const assetTopics = assetJsonPre + 'topics.json';
|
|
static const assetRemoteConfigDefaults = assetJsonPre + 'remote_config_defaults.json';
|
|
}
|
|
|
|
// TODO Low-Prio: Theme überarbeiten https://www.youtube.com/watch?v=oTvQDJOBXmM
|
|
class UITheme {
|
|
static ThemeData theme = ThemeData(
|
|
dividerTheme: const DividerThemeData(
|
|
color: Colors.transparent,
|
|
),
|
|
brightness: Brightness.light,
|
|
primaryColor: UIColors.grey6,
|
|
colorScheme: ColorScheme.light(
|
|
primary: UIColors.grey6,
|
|
secondary: UIColors.grey4,
|
|
),
|
|
fontFamily: 'Roboto',
|
|
appBarTheme: AppBarTheme(
|
|
backgroundColor: UIColors.grey6,
|
|
titleTextStyle: TextStyle(
|
|
fontFamily: 'Roboto',
|
|
fontSize: 20,
|
|
color: UIColors.white,
|
|
),
|
|
iconTheme: IconThemeData(
|
|
color: UIColors.white,
|
|
),
|
|
),
|
|
textTheme: TextTheme(
|
|
displayLarge: TextStyle(
|
|
fontWeight: FontWeight.normal,
|
|
fontSize: UIShapes.paddingMax,
|
|
fontFamily: 'Roboto',
|
|
color: UIColors.grey5),
|
|
displayMedium: TextStyle(
|
|
fontWeight: FontWeight.normal,
|
|
fontSize: UIShapes.paddingMax,
|
|
fontFamily: 'Roboto',
|
|
color: UIColors.white,
|
|
),
|
|
displaySmall: TextStyle(
|
|
fontWeight: FontWeight.bold,
|
|
fontSize: UIShapes.paddingDouble,
|
|
fontFamily: 'Roboto',
|
|
color: UIColors.grey5),
|
|
headlineMedium: TextStyle(
|
|
fontWeight: FontWeight.bold,
|
|
fontSize: UIShapes.paddingDouble,
|
|
fontFamily: 'Roboto',
|
|
color: UIColors.white,
|
|
),
|
|
headlineSmall: TextStyle(
|
|
fontWeight: FontWeight.normal,
|
|
fontSize: UIShapes.paddingDouble,
|
|
fontFamily: 'Roboto',
|
|
color: UIColors.grey5),
|
|
titleLarge: TextStyle(
|
|
fontWeight: FontWeight.normal,
|
|
fontSize: UIShapes.paddingDouble,
|
|
fontFamily: 'Roboto',
|
|
color: UIColors.white,
|
|
),
|
|
bodyLarge: TextStyle(
|
|
fontWeight: FontWeight.normal,
|
|
fontSize: 14,
|
|
fontFamily: 'Roboto',
|
|
color: UIColors.grey5),
|
|
bodyMedium: TextStyle(
|
|
fontWeight: FontWeight.normal,
|
|
fontSize: 14,
|
|
fontFamily: 'Roboto',
|
|
color: UIColors.white,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
class UIStrings {
|
|
static const String serviceKonnteNichtGeladenWerden =
|
|
'Konnte nicht geladen werden';
|
|
static const String serviceKeineInternetverbindung =
|
|
'Keine Internetverbindung';
|
|
}
|
|
|
|
class UIColors {
|
|
|
|
static const Color white = Color(0xFFFFFFFF);
|
|
static const Color grey1 = Color(0xFFCCCCCC);
|
|
static const Color grey2 = Color(0xFFC9C9C9);
|
|
static const Color grey3 = Color(0xFF999999);
|
|
static const Color grey4 = Color(0xFF969696);
|
|
static const Color grey5 = Color(0xFF666666);
|
|
static const Color grey6 = Color(0xFF333333);
|
|
static const Color black = Color(0xFF000000);
|
|
static const Color transparent = Color(0x00000000);
|
|
static const Color yellow = Color(0xFFFFD445);
|
|
}
|
|
|
|
class UIShapes {
|
|
static const double paddingSimple = 8;
|
|
static const double paddingDouble = 2 * paddingSimple;
|
|
static const double paddingMax = 3 * paddingSimple;
|
|
|
|
static const BorderRadius rightRoundedRectangle = BorderRadius.only(
|
|
bottomRight: Radius.circular(paddingMax),
|
|
topRight: Radius.circular(paddingMax),
|
|
);
|
|
|
|
static const RoundedRectangleBorder rightRoundedRectangleWithBorder =
|
|
RoundedRectangleBorder(
|
|
side: BorderSide(color: UIColors.grey1),
|
|
borderRadius: BorderRadius.only(
|
|
bottomRight: Radius.circular(paddingMax),
|
|
topRight: Radius.circular(paddingMax),
|
|
),
|
|
);
|
|
|
|
static const RoundedRectangleBorder leftRoundedRectangleWithBorder =
|
|
RoundedRectangleBorder(
|
|
side: BorderSide(color: UIColors.grey1),
|
|
borderRadius: BorderRadius.only(
|
|
bottomLeft: Radius.circular(paddingMax),
|
|
topLeft: Radius.circular(paddingMax),
|
|
),
|
|
);
|
|
}
|
|
|
|
class UIGradiants {
|
|
static const LinearGradient green = LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: <Color>[Color(0xFF2BD3A6), Color(0xFFD7ED28)],
|
|
);
|
|
static const LinearGradient purple = LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: <Color>[Color(0xFFFF45EA), Color(0xFF6E69FF)],
|
|
);
|
|
static const LinearGradient red = LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: <Color>[Color(0xFFC4379E), Color(0xFFFF6C00)],
|
|
);
|
|
static const LinearGradient blue = LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: <Color>[Color(0xFF458DFF), Color(0xFF3BA743)],
|
|
);
|
|
static const LinearGradient yellow = LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: <Color>[UIColors.yellow, Color(0xFFD55A00)],
|
|
);
|
|
static const LinearGradient black = LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: <Color>[Color(0xFF222222), Color(0xFF111111)],
|
|
);
|
|
}
|