You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fluffychat/lib/config/app_config.dart

242 lines
9.4 KiB
Dart

import 'package:flutter/material.dart';
import 'package:matrix/matrix.dart';
import 'package:fluffychat/pangea/common/config/environment.dart';
abstract class AppConfig {
2 years ago
// #Pangea
// static String _applicationName = 'FluffyChat';
static String _applicationName = 'Pangea Chat';
// #Pangea
static String get applicationName => _applicationName;
static String? _applicationWelcomeMessage;
Fluffychat merge (#2731) * build: Update snapcraft * build: Follow up snapcraft build * build: Install flutter via git in snapcraft * chore: Follow up typo * fix: Request notification permissions on iOS before getToken * chore: Follow up request iOS permissions * Revert "chore: Follow up request iOS permissions" This reverts commit 2625e89a33421ba189dd96cd84bb7a2311a5e1b9. * chore: Combine mimetype types in send file dialog logic * build: Update flutter to 3.29.0 * Translated using Weblate (Basque) Currently translated at 99.8% (758 of 759 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Revert "build: Update flutter to 3.29.0" * fix: Crash in settings when using MAS * build: Fix build tailwindcss for website * feat: Navigate in image viewer with keyboard keys * chore: Nicer colors for reactions * chore: Better error handling for image rendering * Translated using Weblate (Latvian) Currently translated at 100.0% (759 of 759 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * fix: Index of numbered lists are off * fix(macos): update dependencies to make the build work This commit was generated mostly by running `flutter run -d macos` and then `pod update` in the `macos/` directory after that failed. * fix: never use a transition on the shell route Changing the PageBuilder here based on a MediaQuery causes the child to briefly be rendered twice with the same GlobalKey, blowing up the rendering. I believe this fixes https://github.com/krille-chan/fluffychat/issues/1534. * feat: New video file picker button * feat: Send optional message with images or files * chore: Follow up send file dialog design * chore: Follow up paddings in room input row * chore: Follow up paddings * chore: Follow up paddings * chore: Follow up input row * Translated using Weblate (Italian) Currently translated at 99.6% (756 of 759 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/it/ * Translated using Weblate (Latvian) Currently translated at 100.0% (759 of 759 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Estonian) Currently translated at 100.0% (762 of 762 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (762 of 762 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * chore: Follow up gallery picker * chore: Better no compression supported UX * fix: prevent users from creating spaces with empty names * fix: update condition in account deletion function to allow deletion to go through * Translated using Weblate (Latvian) Currently translated at 100.0% (762 of 762 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Estonian) Currently translated at 100.0% (763 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Basque) Currently translated at 99.8% (762 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Galician) Currently translated at 100.0% (763 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/gl/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (763 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Latvian) Currently translated at 100.0% (763 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Basque) Currently translated at 99.8% (762 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Indonesian) Currently translated at 100.0% (763 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/id/ * Translated using Weblate (Korean) Currently translated at 96.4% (736 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ko/ * Translated using Weblate (Irish) Currently translated at 100.0% (763 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ga/ * Translated using Weblate (Filipino) Currently translated at 25.8% (197 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/fil/ * Translated using Weblate (Polish) Currently translated at 98.4% (751 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/pl/ * Translated using Weblate (Polish) Currently translated at 100.0% (763 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/pl/ * fix: Remove too sensitive dismiss gesture on chat list items * fix: Add missing <s> html tag to render * Translated using Weblate (Dutch) Currently translated at 81.6% (623 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/nl/ * refactor: Remove custom font and emoji font workaround * build: Add android namespace * build: Update kotlin gradle plugin * Revert "build: Update kotlin gradle plugin" * feat: Add advanced configuration page * refactor: Improved UX for room upgrades * Translated using Weblate (French) Currently translated at 86.3% (659 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/fr/ * Translated using Weblate (Dutch) Currently translated at 82.0% (626 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/nl/ * Translated using Weblate (Chinese (Traditional Han script)) Currently translated at 88.8% (678 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hant/ * Translated using Weblate (Dutch) Currently translated at 83.3% (636 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/nl/ * Translated using Weblate (German) Currently translated at 93.9% (717 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/de/ * Translated using Weblate (German) Currently translated at 93.9% (717 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/de/ * Translated using Weblate (German) Currently translated at 93.9% (717 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/de/ * Translated using Weblate (German) Currently translated at 95.6% (730 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/de/ * Translated using Weblate (Dutch) Currently translated at 94.4% (721 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/nl/ * Translated using Weblate (Spanish) Currently translated at 100.0% (763 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/es/ * Translated using Weblate (Spanish) Currently translated at 100.0% (763 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/es/ * Translated using Weblate (Spanish) Currently translated at 100.0% (763 of 763 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/es/ * Translated using Weblate (Spanish) Currently translated at 100.0% (764 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/es/ * Translated using Weblate (Polish) Currently translated at 99.8% (763 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/pl/ * Translated using Weblate (Ukrainian) Currently translated at 93.3% (713 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (764 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Indonesian) Currently translated at 100.0% (764 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/id/ * chore: divider when scrolled up * refactor: Easier shift enter logic for text input * Translated using Weblate (Irish) Currently translated at 100.0% (764 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ga/ * Translated using Weblate (Latvian) Currently translated at 100.0% (764 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Estonian) Currently translated at 100.0% (764 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Ukrainian) Currently translated at 94.8% (725 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * build: Downgrade packages and move to fixed flutter typeahead fork * chore: Use other join endpoint for room upgrades * chore: disable echoCancel for audio messages * chore: Simpler changing config variables Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up config editor Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Make push gateway configurable Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up code formatting * build: Update flutter 3.29.2 Signed-off-by: Krille <c.kussowski@famedly.com> * Revert "chore: Follow up code formatting" This reverts commit 0f000f952ffa94d52a9de37e4b09df19b1ebeefe. * Revert "build: Update flutter 3.29.2" This reverts commit bfd23952b70329b2613a6a8af5f51efdf22b8bfe. * refactor: Formatting * build: Update matrix dart sdk Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up update matrix dart sdk Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up formatting Signed-off-by: Krille <c.kussowski@famedly.com> * build: Update openssl to 0.5.0 Signed-off-by: Krille <c.kussowski@famedly.com> * build: Update gorouter package Signed-off-by: Krille <c.kussowski@famedly.com> * build: Update to flutter 3.29.2 Signed-off-by: Krille <c.kussowski@famedly.com> * Translated using Weblate (Dutch) Currently translated at 100.0% (764 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/nl/ * Added translation using Weblate (Telugu) * Translated using Weblate (Dutch) Currently translated at 100.0% (764 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/nl/ * Translated using Weblate (Telugu) Currently translated at 0.5% (4 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/te/ * Translated using Weblate (German) Currently translated at 96.5% (738 of 764 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/de/ * Translated using Weblate (Estonian) Currently translated at 100.0% (765 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Irish) Currently translated at 100.0% (765 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ga/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (765 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Galician) Currently translated at 100.0% (765 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/gl/ * Translated using Weblate (Dutch) Currently translated at 100.0% (765 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/nl/ * Translated using Weblate (Latvian) Currently translated at 100.0% (765 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Latvian) Currently translated at 100.0% (765 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Ukrainian) Currently translated at 95.9% (734 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Indonesian) Currently translated at 100.0% (765 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/id/ * fix: Consistent element padding between server picker and login view * refactor: Migrate more config options to config viewer Signed-off-by: Krille <c.kussowski@famedly.com> * refactor: Reuse unused kotlin imports Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Update pubspec.lock Signed-off-by: Krille <c.kussowski@famedly.com> * Revert "build: Install flutter via git in snapcraft" This reverts commit cd12f773fe9786556589a9078a3303c516f81634. * chore: Update locale config for localizations Signed-off-by: Krille <c.kussowski@famedly.com> * build: Add libpciaccess0 package to snap Signed-off-by: Krille <c.kussowski@famedly.com> * Translated using Weblate (Dutch) Currently translated at 100.0% (765 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/nl/ * Translated using Weblate (Chinese (Traditional Han script)) Currently translated at 93.3% (714 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hant/ * Translated using Weblate (Russian) Currently translated at 95.6% (732 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ru/ * chore: upgrade chewie and video_player packages This bumps the minimum Flutter version to 3.27. I think this is not an issue, since e93fdebe2017f6c6491ceb93d57c71148d1b4f0d upgraded to 3.29.2 already. * fix: properly dispose VideoPlayerController This ensures that a playing video stops playing when we navigate away from the chat. I also reorganized the code a little. * feat: support inline video playback on macOS It turns out that video_player supports macOS, so we can simply enable it. * feat: clearly mark when a video is to be downloaded This shows a download icon instead of the play icon on top of the video if the video player isn't supported. * Translated using Weblate (Chinese (Traditional Han script)) Currently translated at 93.7% (717 of 765 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hant/ * build: Add libpciaccess0 for snapcraft * build: Add libpciaccess-dev for snapcraft * build: use singleInstance as launchmode * fix: Null error in ClientChooserButton * chore: Improve avatar designg Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up new room design Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Correct availability of desktop builds * refactor: Replace user bottom sheet with menu and small dialog Signed-off-by: Krille <c.kussowski@famedly.com> * refactor: Replace user bottom sheet with menu and small dialog Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up dialog themes Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up dialog themes Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up dialog themes Signed-off-by: Krille <c.kussowski@famedly.com> * build: Update matrix dart sdk to 0.39.0 Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up user dialog theme * chore: Use Cupertino Activity Indicator in ChatEventList * chore: Follow up permissions slider dialog Signed-off-by: Krille <c.kussowski@famedly.com> * refactor: Implement avatar image viewer and adjust design Signed-off-by: Krille <c.kussowski@famedly.com> * feat: Filter for room members page and easier approve knocking users Signed-off-by: Krille <c.kussowski@famedly.com> * refactor: Move public room bottom sheet into dialog Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up public rooms dialog Signed-off-by: Krille <c.kussowski@famedly.com> * fix: Text scale factor in Linkify widgets Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Add matrix notifications for issues Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up matrix notification Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up matrix notification Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up matrix notification Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up matrix notification Signed-off-by: Krille <c.kussowski@famedly.com> * android updates * chore: update fetching of chat details display setting in message overlay positioner * fluffychat merge * build: Flutter 3.29.3 Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Nicer scaffold dialog for column mode Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up scaffold dialog Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up members list * chore: Follow up message design * chore: Follow up message design * chore: Follow up file message design Signed-off-by: Krille <c.kussowski@famedly.com> * build: Bump version to 1.26.0 Signed-off-by: Krille <c.kussowski@famedly.com> * chore: Follow up message design * build: Use 0.1.0 fcm_shared_isolate on ios Signed-off-by: Krille <c.kussowski@famedly.com> * chore: disable matrix notification github action * fix import error * make overlay message padding match message bubble padding --------- Signed-off-by: Krille <c.kussowski@famedly.com> Co-authored-by: Krille-chan <christian-kussowski@posteo.de> Co-authored-by: Krille <c.kussowski@famedly.com> Co-authored-by: xabirequejo <xabi.rn@gmail.com> Co-authored-by: Edgars Andersons <Edgars+Weblate@gaitenis.id.lv> Co-authored-by: Rafał Hirsch <rafal@hirsch.net> Co-authored-by: Angelo Schirinzi <Odi-3@users.noreply.hosted.weblate.org> Co-authored-by: Priit Jõerüüt <hwlate@joeruut.com> Co-authored-by: Poesty Li <poesty7450@gmail.com> Co-authored-by: josé m <correoxm@disroot.org> Co-authored-by: 大王叫我来巡山 <hamburger2048@users.noreply.hosted.weblate.org> Co-authored-by: Linerly <linerly@proton.me> Co-authored-by: kdh8219 <kdh8219@monamo.dev> Co-authored-by: Aindriú Mac Giolla Eoin <aindriu80@gmail.com> Co-authored-by: searinminecraft <kitakita@disroot.org> Co-authored-by: Piotr Orzechowski <piotr@orzechowski.tech> Co-authored-by: Jelv <post@jelv.nl> Co-authored-by: Antonin Del Fabbro <message@antonin.one> Co-authored-by: Mare JP <seraphmare@gmail.com> Co-authored-by: nautilusx <translate@disroot.org> Co-authored-by: Very Able <veryable@proton.me> Co-authored-by: Kimby <kimisaes@naver.com> Co-authored-by: José Muñoz <dr.cabra@disroot.org> Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com> Co-authored-by: katakam chakri <katakam.chakri@gmail.com> Co-authored-by: ℂ𝕠𝕠𝕠𝕝 (𝕘𝕚𝕥𝕙𝕦𝕓.𝕔𝕠𝕞/ℂ𝕠𝕠𝕠𝕝) <coool@mail.lv> Co-authored-by: xegim <ja3lpark@gmail.com> Co-authored-by: miullu <satou.ide@gmail.com> Co-authored-by: Yurt Page <yurtpage@gmail.com> Co-authored-by: Lenni <87639068+Lenni-builder@users.noreply.github.com>
6 months ago
static String? get applicationWelcomeMessage => _applicationWelcomeMessage;
2 years ago
// #Pangea
// static String _defaultHomeserver = 'matrix.org';
static String get _defaultHomeserver => Environment.synapseURL;
5 months ago
// Pangea#
static String get defaultHomeserver => _defaultHomeserver;
4 years ago
static double fontSizeFactor = 1;
static const Color chatColor = primaryColor;
static Color? colorSchemeSeed = primaryColor;
static const double messageFontSize = 16.0;
static const bool allowOtherHomeservers = true;
static const bool enableRegistration = true;
5 months ago
// #Pangea
static const double toolbarMaxHeight = 225.0;
static const double toolbarMinHeight = 150.0;
static const double toolbarMinWidth = 350.0;
static const double toolbarMenuHeight = 50.0;
static const double defaultHeaderHeight = 56.0;
static const double toolbarButtonsHeight = 50.0;
static const double toolbarSpacing = 8.0;
static const double toolbarIconSize = 24.0;
static const double readingAssistanceInputBarHeight = 140.0;
static const double reactionsPickerHeight = 48.0;
static const double chatInputRowOverlayPadding = 8.0;
static const double selectModeInputBarHeight = 0;
// reactionsPickerHeight + (chatInputRowOverlayPadding * 2) + toolbarSpacing;
static const double practiceModeInputBarHeight =
readingAssistanceInputBarHeight +
toolbarButtonsHeight +
(chatInputRowOverlayPadding * 2) +
toolbarSpacing;
static TextStyle messageTextStyle(
Event? event,
Color textColor,
) {
final fontSize = messageFontSize * fontSizeFactor;
final bigEmotes = event != null &&
event.onlyEmotes &&
event.numberEmotes > 0 &&
event.numberEmotes <= 3;
return TextStyle(
color: textColor,
1125 merge upstream fluffychat into main (#1184) * chore: Nicer invite selection view * chore: Do not request thousands of users on invite page * build(deps): bump rexml from 3.3.6 to 3.3.9 in /ios Bumps [rexml](https://github.com/ruby/rexml) from 3.3.6 to 3.3.9. - [Release notes](https://github.com/ruby/rexml/releases) - [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md) - [Commits](https://github.com/ruby/rexml/compare/v3.3.6...v3.3.9) --- updated-dependencies: - dependency-name: rexml dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * design: Highlight emoji only messages * chore: Follow up emoji only messages * Translated using Weblate (Galician) Currently translated at 100.0% (672 of 672 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/gl/ * Translated using Weblate (Russian) Currently translated at 99.7% (670 of 672 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ru/ * design: New login design * chore: Improve spaces design * chore: Improve spaces design * chore: Improved UX for creating groups and spaces * Translated using Weblate (German) Currently translated at 100.0% (672 of 672 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/de/ * feat: Better wallpapers with blur and opacity sliders and improved styles page * chore: Follow up wallpaper configs * chore: Add max length to state messages * chore: Follow up wallpaper design * feat: Open account manage url when using MAS * chore: follow up wellknown fetch * Translated using Weblate (Arabic) Currently translated at 100.0% (674 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (Estonian) Currently translated at 100.0% (674 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (674 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Indonesian) Currently translated at 100.0% (674 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/id/ * Translated using Weblate (Finnish) Currently translated at 79.0% (533 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/fi/ * Translated using Weblate (Latvian) Currently translated at 100.0% (674 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * build: Add links to snapcraft.yaml file * chore: Nicer empty page * chore: Polish chat bubble colors * chore: Follow up chat bubble design * refactor: Remove unnecessary builder widget * chore: Design adjustments * chore: Follow up design * refactor: Display two lines on new messages * chore: Design follow up * Translated using Weblate (Arabic) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (German) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/de/ * Translated using Weblate (Estonian) Currently translated at 99.7% (676 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Basque) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * chore: Follow up message bubbles * chore: Follow up design * chore: Follow up design * chore: Follow up colors * chore: Follow up homeserverpicker UX * chore: Design follow up * feat: Add about server page * chore: Follow up update snackbar * chore: Polish login design * chore: Follow up login page * chore: Follow up homeserver picker * chore: Follow up appbar shadow * refactor: Performance boost for avatar widget * Revert "refactor: Performance boost for avatar widget" This reverts commit 58577bb9e8c65df64f1dd44ba908372e742f928e. * Translated using Weblate (Estonian) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Latvian) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Arabic) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (Estonian) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Basque) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Galician) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/gl/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Indonesian) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/id/ * Translated using Weblate (Latvian) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Korean) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ko/ * chore: Follow up homeserver input field * refactor: Move to upstream geolocator * chore: Follow up send file dialog * Translated using Weblate (Spanish) Currently translated at 74.6% (513 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/es/ * refactor: Migrate to newer keyboard shortcuts package * refactor: Remove keyboard shortcuts This package right now makes the web app nearly unusable as it throws multiple errors on every key press. The package seems to be unmaintained. I tried two other packages and none of them worked. * build: Update matrix dart sdk to 0.35.0 * chore: Better FluffyChat Logo for PWA * build: (deps): bump samuelmeuli/action-snapcraft from 2 to 3 Bumps [samuelmeuli/action-snapcraft](https://github.com/samuelmeuli/action-snapcraft) from 2 to 3. - [Release notes](https://github.com/samuelmeuli/action-snapcraft/releases) - [Commits](https://github.com/samuelmeuli/action-snapcraft/compare/v2...v3) --- updated-dependencies: - dependency-name: samuelmeuli/action-snapcraft dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: Follow up send file dialog * feat: Add markdown context actions for text input * build: Update flutter to 3.24.5 * build: Remove snapcraft build workaround * chore: Better error message when join room failed * chore: Follow up join room * chore: Make error dialog show full error * chore: Follow up loading dialog * chore: Follow up loading dialog * build: Snapcraft from local build file * chore: Follow up build snap * chore: Follow up snapcraft in ci * build: Revert build snapcraft changes * build: Try downgrading flutter web auth * chore: add hint in pubspec.yaml regarding flutter_web_auth_2 * Translated using Weblate (Estonian) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Galician) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/gl/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Indonesian) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/id/ * Translated using Weblate (Irish) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ga/ * Translated using Weblate (Arabic) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (Basque) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Latvian) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Italian) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/it/ * Translated using Weblate (Estonian) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Arabic) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (Basque) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Irish) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ga/ * Translated using Weblate (Indonesian) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/id/ * Translated using Weblate (Latvian) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Arabic) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (Estonian) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Irish) Currently translated at 99.8% (694 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ga/ * Translated using Weblate (German) Currently translated at 99.5% (692 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/de/ * fix: dont use thumbnails for emoticons * chore: Improve presence performance * Translated using Weblate (Basque) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Galician) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/gl/ * Translated using Weblate (Italian) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/it/ * Translated using Weblate (Irish) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ga/ * Translated using Weblate (Russian) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ru/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Catalan) Currently translated at 95.1% (661 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ca/ * build: Bump version * chore: Follow up send file dialog for images * chore: Follow up send multiple images * build: Add android build workaround for new flutter version * build: Use file selector to save files * chore: Follow up save file on desktop * chore: Adjust default linux window height * refactor: Update to new receive sharing intent package * fluffychat merge * fluffychat merge * fluffychat merge * fix android build * fluffychat merge * fluffychat merge --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Krille <c.kussowski@famedly.com> Co-authored-by: Krille-chan <christian-kussowski@posteo.de> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: josé m <correoxm@disroot.org> Co-authored-by: v1s7 <v1s7@users.noreply.hosted.weblate.org> Co-authored-by: Christian <christian-pauly@posteo.de> Co-authored-by: Rex_sa <rex.sa@pm.me> Co-authored-by: Priit Jõerüüt <hwlate@joeruut.com> Co-authored-by: 大王叫我来巡山 <hamburger2048@users.noreply.hosted.weblate.org> Co-authored-by: Linerly <linerly@proton.me> Co-authored-by: Edgars Andersons <Edgars+Weblate@gaitenis.id.lv> Co-authored-by: xabirequejo <xabi.rn@gmail.com> Co-authored-by: Bezruchenko Simon <worcposj44@gmail.com> Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com> Co-authored-by: Bruno Roh <kane.roh429@gmail.com> Co-authored-by: Kimby <kimisaes@naver.com> Co-authored-by: Aindriú Mac Giolla Eoin <aindriu80@gmail.com> Co-authored-by: Angelo Schirinzi <muten619@hotmail.it> Co-authored-by: Marek Vospěl <marek@vospel.cz> Co-authored-by: Александр (Alexandr1995) <stupino19951406@gmail.com>
11 months ago
fontSize: bigEmotes ? fontSize * 5 : fontSize,
decoration:
(event?.redacted ?? false) ? TextDecoration.lineThrough : null,
height: 1.3,
);
}
2 years ago
// static const Color primaryColor = Color(0xFF5625BA);
// static const Color primaryColorLight = Color(0xFFCCBDEA);
static const Color primaryColor = Color(0xFF8560E0);
static const Color primaryColorLight = Color(0xFFDBC9FF);
// static const Color secondaryColor = Color(0xFF41a2bc);
static const Color secondaryColor = Color.fromARGB(255, 253, 191, 1);
2 years ago
static const Color activeToggleColor = Color(0xFF33D057);
static const Color success = Color(0xFF33D057);
static const Color warning = Color.fromARGB(255, 210, 124, 12);
static const Color gold = Color.fromARGB(255, 253, 191, 1);
static const Color silver = Color.fromARGB(255, 192, 192, 192);
static const Color bronze = Color.fromARGB(255, 205, 127, 50);
static const Color goldLight = Color.fromARGB(255, 254, 223, 73);
static const Color yellowLight = Color.fromARGB(255, 247, 218, 120);
static const Color yellowDark = Color.fromARGB(255, 253, 191, 1);
static const Color error = Colors.red;
static const int overlayAnimationDuration = 250;
static const int roomCreationTimeoutSeconds = 15;
2 years ago
// static String _privacyUrl =
// 'https://gitlab.com/famedly/fluffychat/-/blob/main/PRIVACY.md';
static String _privacyUrl = "https://www.pangeachat.com/privacy";
//Pangea#
static const Set<String> defaultReactions = {'👍', '❤️', '😂', '😮', '😢'};
static String get privacyUrl => _privacyUrl;
1125 merge upstream fluffychat into main (#1184) * chore: Nicer invite selection view * chore: Do not request thousands of users on invite page * build(deps): bump rexml from 3.3.6 to 3.3.9 in /ios Bumps [rexml](https://github.com/ruby/rexml) from 3.3.6 to 3.3.9. - [Release notes](https://github.com/ruby/rexml/releases) - [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md) - [Commits](https://github.com/ruby/rexml/compare/v3.3.6...v3.3.9) --- updated-dependencies: - dependency-name: rexml dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * design: Highlight emoji only messages * chore: Follow up emoji only messages * Translated using Weblate (Galician) Currently translated at 100.0% (672 of 672 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/gl/ * Translated using Weblate (Russian) Currently translated at 99.7% (670 of 672 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ru/ * design: New login design * chore: Improve spaces design * chore: Improve spaces design * chore: Improved UX for creating groups and spaces * Translated using Weblate (German) Currently translated at 100.0% (672 of 672 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/de/ * feat: Better wallpapers with blur and opacity sliders and improved styles page * chore: Follow up wallpaper configs * chore: Add max length to state messages * chore: Follow up wallpaper design * feat: Open account manage url when using MAS * chore: follow up wellknown fetch * Translated using Weblate (Arabic) Currently translated at 100.0% (674 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (Estonian) Currently translated at 100.0% (674 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (674 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Indonesian) Currently translated at 100.0% (674 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/id/ * Translated using Weblate (Finnish) Currently translated at 79.0% (533 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/fi/ * Translated using Weblate (Latvian) Currently translated at 100.0% (674 of 674 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * build: Add links to snapcraft.yaml file * chore: Nicer empty page * chore: Polish chat bubble colors * chore: Follow up chat bubble design * refactor: Remove unnecessary builder widget * chore: Design adjustments * chore: Follow up design * refactor: Display two lines on new messages * chore: Design follow up * Translated using Weblate (Arabic) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (German) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/de/ * Translated using Weblate (Estonian) Currently translated at 99.7% (676 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Basque) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * chore: Follow up message bubbles * chore: Follow up design * chore: Follow up design * chore: Follow up colors * chore: Follow up homeserverpicker UX * chore: Design follow up * feat: Add about server page * chore: Follow up update snackbar * chore: Polish login design * chore: Follow up login page * chore: Follow up homeserver picker * chore: Follow up appbar shadow * refactor: Performance boost for avatar widget * Revert "refactor: Performance boost for avatar widget" This reverts commit 58577bb9e8c65df64f1dd44ba908372e742f928e. * Translated using Weblate (Estonian) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Latvian) Currently translated at 100.0% (678 of 678 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Arabic) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (Estonian) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Basque) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Galician) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/gl/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Indonesian) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/id/ * Translated using Weblate (Latvian) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Korean) Currently translated at 100.0% (687 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ko/ * chore: Follow up homeserver input field * refactor: Move to upstream geolocator * chore: Follow up send file dialog * Translated using Weblate (Spanish) Currently translated at 74.6% (513 of 687 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/es/ * refactor: Migrate to newer keyboard shortcuts package * refactor: Remove keyboard shortcuts This package right now makes the web app nearly unusable as it throws multiple errors on every key press. The package seems to be unmaintained. I tried two other packages and none of them worked. * build: Update matrix dart sdk to 0.35.0 * chore: Better FluffyChat Logo for PWA * build: (deps): bump samuelmeuli/action-snapcraft from 2 to 3 Bumps [samuelmeuli/action-snapcraft](https://github.com/samuelmeuli/action-snapcraft) from 2 to 3. - [Release notes](https://github.com/samuelmeuli/action-snapcraft/releases) - [Commits](https://github.com/samuelmeuli/action-snapcraft/compare/v2...v3) --- updated-dependencies: - dependency-name: samuelmeuli/action-snapcraft dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: Follow up send file dialog * feat: Add markdown context actions for text input * build: Update flutter to 3.24.5 * build: Remove snapcraft build workaround * chore: Better error message when join room failed * chore: Follow up join room * chore: Make error dialog show full error * chore: Follow up loading dialog * chore: Follow up loading dialog * build: Snapcraft from local build file * chore: Follow up build snap * chore: Follow up snapcraft in ci * build: Revert build snapcraft changes * build: Try downgrading flutter web auth * chore: add hint in pubspec.yaml regarding flutter_web_auth_2 * Translated using Weblate (Estonian) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Galician) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/gl/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Indonesian) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/id/ * Translated using Weblate (Irish) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ga/ * Translated using Weblate (Arabic) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (Basque) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Latvian) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Italian) Currently translated at 100.0% (688 of 688 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/it/ * Translated using Weblate (Estonian) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Arabic) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (Basque) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Irish) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ga/ * Translated using Weblate (Indonesian) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/id/ * Translated using Weblate (Latvian) Currently translated at 100.0% (694 of 694 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/lv/ * Translated using Weblate (Arabic) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ar/ * Translated using Weblate (Estonian) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/et/ * Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/zh_Hans/ * Translated using Weblate (Irish) Currently translated at 99.8% (694 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ga/ * Translated using Weblate (German) Currently translated at 99.5% (692 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/de/ * fix: dont use thumbnails for emoticons * chore: Improve presence performance * Translated using Weblate (Basque) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/eu/ * Translated using Weblate (Galician) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/gl/ * Translated using Weblate (Italian) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/it/ * Translated using Weblate (Irish) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ga/ * Translated using Weblate (Russian) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ru/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (695 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/uk/ * Translated using Weblate (Catalan) Currently translated at 95.1% (661 of 695 strings) Translation: FluffyChat/Translations Translate-URL: https://hosted.weblate.org/projects/fluffychat/translations/ca/ * build: Bump version * chore: Follow up send file dialog for images * chore: Follow up send multiple images * build: Add android build workaround for new flutter version * build: Use file selector to save files * chore: Follow up save file on desktop * chore: Adjust default linux window height * refactor: Update to new receive sharing intent package * fluffychat merge * fluffychat merge * fluffychat merge * fix android build * fluffychat merge * fluffychat merge --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Krille <c.kussowski@famedly.com> Co-authored-by: Krille-chan <christian-kussowski@posteo.de> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: josé m <correoxm@disroot.org> Co-authored-by: v1s7 <v1s7@users.noreply.hosted.weblate.org> Co-authored-by: Christian <christian-pauly@posteo.de> Co-authored-by: Rex_sa <rex.sa@pm.me> Co-authored-by: Priit Jõerüüt <hwlate@joeruut.com> Co-authored-by: 大王叫我来巡山 <hamburger2048@users.noreply.hosted.weblate.org> Co-authored-by: Linerly <linerly@proton.me> Co-authored-by: Edgars Andersons <Edgars+Weblate@gaitenis.id.lv> Co-authored-by: xabirequejo <xabi.rn@gmail.com> Co-authored-by: Bezruchenko Simon <worcposj44@gmail.com> Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com> Co-authored-by: Bruno Roh <kane.roh429@gmail.com> Co-authored-by: Kimby <kimisaes@naver.com> Co-authored-by: Aindriú Mac Giolla Eoin <aindriu80@gmail.com> Co-authored-by: Angelo Schirinzi <muten619@hotmail.it> Co-authored-by: Marek Vospěl <marek@vospel.cz> Co-authored-by: Александр (Alexandr1995) <stupino19951406@gmail.com>
11 months ago
// #Pangea
// static const String website = 'https://fluffychat.im';
static const String website = "https://pangea.chat/";
// Pangea#
static const String enablePushTutorial =
'https://github.com/krille-chan/fluffychat/wiki/Push-Notifications-without-Google-Services';
static const String encryptionTutorial =
'https://github.com/krille-chan/fluffychat/wiki/How-to-use-end-to-end-encryption-in-FluffyChat';
static const String startChatTutorial =
'https://github.com/krille-chan/fluffychat/wiki/How-to-Find-Users-in-FluffyChat';
static const String appId = 'im.fluffychat.FluffyChat';
2 years ago
// #Pangea
// static const String appOpenUrlScheme = 'im.fluffychat';
static const String appOpenUrlScheme = 'matrix.pangea.chat';
// Pangea#
static String _webBaseUrl = 'https://fluffychat.im/web';
static String get webBaseUrl => _webBaseUrl;
static const String sourceCodeUrl =
'https://github.com/krille-chan/fluffychat';
5 months ago
// #Pangea
2 years ago
// static const String supportUrl =
5 months ago
// 'https://github.com/krille-chan/fluffychat/issues';
// static const String changelogUrl =
// 'https://github.com/krille-chan/fluffychat/blob/main/CHANGELOG.md';
2 years ago
static const String supportUrl = 'https://www.pangeachat.com/faqs';
static const String termsOfServiceUrl =
'https://www.pangeachat.com/terms-of-service';
5 months ago
// Pangea#
static final Uri newIssueUrl = Uri(
scheme: 'https',
host: 'github.com',
path: '/krille-chan/fluffychat/issues/new',
);
// #Pangea
static const bool enableSentry = true;
static const String sentryDns =
'https://8591d0d863b646feb4f3dda7e5dcab38@o256755.ingest.sentry.io/5243143';
2 years ago
// Pangea#
static bool renderHtml = true;
// #Pangea
// static bool hideRedactedEvents = false;
static bool hideRedactedEvents = true;
// Pangea#
static bool hideUnknownEvents = true;
static bool hideUnimportantStateEvents = true;
static bool separateChatTypes = false;
static bool autoplayImages = true;
static bool sendTypingNotifications = true;
static bool sendPublicReadReceipts = true;
static bool swipeRightToLeftToReply = true;
static bool? sendOnEnter;
static bool showPresences = true;
5 months ago
// #Pangea
// static bool displayNavigationRail = false;
static bool displayNavigationRail = true;
// Pangea#
static bool experimentalVoip = false;
static const bool hideTypingUsernames = false;
static const bool hideAllStateEvents = false;
static const String inviteLinkPrefix = 'https://matrix.to/#/';
static const String deepLinkPrefix = 'im.fluffychat://chat/';
static const String schemePrefix = 'matrix:';
2 years ago
// #Pangea
// static const String pushNotificationsChannelId = 'fluffychat_push';
// static const String pushNotificationsAppId = 'chat.fluffy.fluffychat';
static const String pushNotificationsChannelId = 'pangeachat_push';
static const String pushNotificationsAppId = 'com.talktolearn.chat';
// Pangea#
static const double borderRadius = 18.0;
static const double columnWidth = 360.0;
static final Uri homeserverList = Uri(
scheme: 'https',
host: 'servers.joinmatrix.org',
path: 'servers.json',
);
2 years ago
// #Pangea
static String googlePlayMangementUrl =
"https://play.google.com/store/account/subscriptions";
static String googlePlayHistoryUrl =
"https://play.google.com/store/account/orderhistory";
static String googlePlayPaymentMethodUrl =
"https://play.google.com/store/paymentmethods";
static String appleMangementUrl =
"https://apps.apple.com/account/subscriptions";
static String stripePerMonth =
"https://buy.stripe.com/test_bIY6ssd8z5Uz8ec8ww";
static String iosPromoCode =
"https://apps.apple.com/redeem?ctx=offercodes&id=1445118630&code=";
static String androidUpdateURL =
"https://play.google.com/store/apps/details?id=com.talktolearn.chat";
static String iosUpdateURL = "itms-apps://itunes.apple.com/app/id1445118630";
static String windowsTTSDownloadInstructions =
"https://support.microsoft.com/en-us/topic/download-languages-and-voices-for-immersive-reader-read-mode-and-read-aloud-4c83a8d8-7486-42f7-8e46-2b0fdf753130";
static String androidTTSDownloadInstructions =
"https://support.google.com/accessibility/android/answer/6006983?hl=en";
static String assetsBaseURL =
"https://pangea-chat-client-assets.s3.us-east-1.amazonaws.com";
static String errorSubscriptionId = "pangea_subscription_error";
2 years ago
// Pangea#
static void loadFromJson(Map<String, dynamic> json) {
if (json['chat_color'] != null) {
try {
colorSchemeSeed = Color(json['chat_color']);
} catch (e) {
Logs().w(
'Invalid color in config.json! Please make sure to define the color in this format: "0xffdd0000"',
e,
);
}
}
if (json['application_name'] is String) {
_applicationName = json['application_name'];
}
if (json['application_welcome_message'] is String) {
_applicationWelcomeMessage = json['application_welcome_message'];
}
// #Pangea
// if (json['default_homeserver'] is String) {
// _defaultHomeserver = json['default_homeserver'];
// }
// Pangea#
if (json['privacy_url'] is String) {
_privacyUrl = json['privacy_url'];
}
if (json['web_base_url'] is String) {
_webBaseUrl = json['web_base_url'];
}
if (json['render_html'] is bool) {
2 years ago
// #Pangea
// this is interfering with our PangeaRichText functionality, removing it for now
renderHtml = false;
// renderHtml = json['render_html'];
// Pangea#
}
if (json['hide_redacted_events'] is bool) {
hideRedactedEvents = json['hide_redacted_events'];
}
if (json['hide_unknown_events'] is bool) {
hideUnknownEvents = json['hide_unknown_events'];
}
}
}