Files
smooth-app/packages/smooth_app/lib/generic_lib/design_constants.dart
monsieurtanuki a50ef8b6af feat: #1894 - switch to MatchedProductV2 (#1922)
Removed file:
* `smooth_matched_product.dart`: no more tap dancing about lenient and strong mode

Impacted files:
* `app_en.arb`: added 12 translations, removed 9 deprecated translations
* `app_fr.arb`: added 12 translations, removed 9 translations
* `design_constants.dart`: added a new grey color
* `personalized_ranking_page.dart`: switched to `MatchedProductV2`
* `Podfile.lock`: wtf
* `product_compatibility_helper.dart`: switched to `MatchedProductV2`
* `pubspec.yaml`: upgraded to off-dart 1.17.0 in order to get `MatchedProductV2`
* `smooth_it_model.dart`: switched to `MatchedProductV2`
* `smooth_product_card_found.dart`: switched to `MatchedProductV2`
* `summary_card.dart`: switched to `MatchedProductV2`; minor fix around foreground color
* `user_preferences_dev_mode.dart`: no more tap dancing about lenient and strong mode
2022-05-23 18:45:22 +02:00

59 lines
2.3 KiB
Dart

import 'package:flutter/material.dart';
const String APP_NAME = 'OpenFoodFacts';
const Widget EMPTY_WIDGET = SizedBox.shrink();
const double VERY_SMALL_SPACE = 4.0;
const double SMALL_SPACE = 8.0;
const double MEDIUM_SPACE = 12.0;
const double LARGE_SPACE = 16.0;
const double VERY_LARGE_SPACE = 20.0;
const double MINIMUM_TOUCH_SIZE = 48.0;
/// Default icon size, cf. [Icon]
const double DEFAULT_ICON_SIZE = 24.0;
/// Default icon size, cf. goldens.dart
const double MINIMUM_TARGET_SIZE = 48.0;
/// Background, e.g SmoothCard
const Radius ROUNDED_RADIUS = Radius.circular(20.0);
//ignore: non_constant_identifier_names
const BorderRadius ROUNDED_BORDER_RADIUS = BorderRadius.all(ROUNDED_RADIUS);
/// Full screen button, e.g. KnowledgePanel
const Radius ANGULAR_RADIUS = Radius.circular(8.0);
//ignore: non_constant_identifier_names
const BorderRadius ANGULAR_BORDER_RADIUS = BorderRadius.all(ANGULAR_RADIUS);
/// Buttons & TextFields
const Radius CIRCULAR_RADIUS = Radius.circular(40.0);
//ignore: non_constant_identifier_names
const BorderRadius CIRCULAR_BORDER_RADIUS = BorderRadius.all(CIRCULAR_RADIUS);
/// Widget Colors
const MaterialColor WARNING_COLOR = Colors.deepOrange;
const Color PRIMARY_BLUE_COLOR = Color(0xFF2D9CDB);
const Color PRIMARY_GREY_COLOR = Color(0xFF4F4F4F);
const Color FAIR_GREY_COLOR = Color(0xFF888888);
const Color GREY_COLOR = Color(0xFFF2F2F2);
const Color WHITE_COLOR = Color(0xFFFFFFFF);
const Color DARK_GREEN_COLOR = Color(0xFF219653);
const Color LIGHT_GREEN_COLOR = Color(0xFF60AC0E);
const Color LIGHT_YELLOW_COLOR = Color(0xFFF2C94C);
const Color LIGHT_GREY_COLOR = Color(0xFFBFBFBF);
const Color DARK_YELLOW_COLOR = Color(0xFFC88F01);
const Color LIGHT_ORANGE_COLOR = Color(0xFFF2994A);
const Color DARK_ORANGE_COLOR = Color(0xFFE07312);
const Color RED_COLOR = Color(0xFFEB5757);
const Color LIGHT_RED_COLOR = Color(0xFFFFCBCB);
const Color DARK_RED_COLOR = Color(0xFFFF0000);
/// Widget Background Colors
const Color RED_BACKGROUND_COLOR = Color.fromRGBO(255, 204, 204, 1);
const Color ORANGE_BACKGROUND_COLOR = Color.fromRGBO(255, 230, 204, 1);
const Color YELLOW_BACKGROUND_COLOR = Color.fromRGBO(255, 255, 204, 1);
const Color LIGHT_GREEN_BACKGROUND_COLOR = Color.fromRGBO(230, 255, 204, 1);
const Color DARK_GREEN_BACKGROUND_COLOR = Color.fromRGBO(204, 255, 204, 1);