nc-photos/app/lib/k.dart

45 lines
1.1 KiB
Dart
Raw Permalink Normal View History

2024-07-06 07:47:23 +02:00
import 'package:flutter/material.dart';
2021-04-10 06:28:12 +02:00
/// Version string shown in settings page
2024-12-16 12:57:03 +01:00
const versionStr = "72.3";
const version = 723;
2021-04-10 06:28:12 +02:00
/// Show a snack bar for a short amount of time
2021-09-15 08:58:06 +02:00
const snackBarDurationShort = Duration(seconds: 4);
2021-04-10 06:28:12 +02:00
/// Show a snack bar for a normal amount of time
2021-09-15 08:58:06 +02:00
const snackBarDurationNormal = Duration(seconds: 7);
2021-04-10 06:28:12 +02:00
/// Duration for short animation
2024-07-06 07:47:23 +02:00
const animationDurationShort = Durations.short2;
2021-04-10 06:28:12 +02:00
/// Duration for normal animation
2024-07-06 07:47:23 +02:00
const animationDurationNormal = Durations.medium1;
2021-04-10 06:28:12 +02:00
/// Duration for long animation
2024-07-06 07:47:23 +02:00
const animationDurationLong = Durations.long2;
2021-09-16 12:25:08 +02:00
2022-01-24 11:05:35 +01:00
/// Duration for tab transition animation
2024-07-06 07:47:23 +02:00
const animationDurationTabTransition = Durations.medium2;
2022-09-07 11:37:50 +02:00
2024-07-06 07:47:23 +02:00
const heroDurationNormal = Durations.long1;
2022-01-24 11:05:35 +01:00
2024-07-06 07:47:23 +02:00
const settingsHighlightDuration = Durations.extralong2;
2023-07-23 07:08:30 +02:00
2021-09-16 12:25:08 +02:00
/// Size of the photo/video thumbnails
///
/// It's advisable to use a single size to minimize cache size
const photoThumbSize = 256;
/// Size of the face thumbnails
const faceThumbSize = 192;
/// Size of the opened photos
const photoLargeSize = 1080;
/// Size of the cover photos
const coverSize = 512;
2022-03-15 10:28:03 +01:00
/// AppDb lock ID
const appDbLockId = 1;