mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
chore: Minor code clean up
This commit is contained in:
parent
54a6ce8391
commit
1a8038e51d
@ -260,7 +260,10 @@ class MessageContent extends StatelessWidget {
|
|||||||
decoration: TextDecoration.underline,
|
decoration: TextDecoration.underline,
|
||||||
decorationColor: textColor.withAlpha(150),
|
decorationColor: textColor.withAlpha(150),
|
||||||
),
|
),
|
||||||
onLinkTap: (url) => UrlLauncher(context, url).launchUrl(),
|
beforeLaunch: (url) {
|
||||||
|
UrlLauncher(context, url.toString()).launchUrl();
|
||||||
|
return false;
|
||||||
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
@ -126,8 +126,10 @@ class PinnedEvents extends StatelessWidget {
|
|||||||
decorationColor:
|
decorationColor:
|
||||||
Theme.of(context).colorScheme.onSurfaceVariant,
|
Theme.of(context).colorScheme.onSurfaceVariant,
|
||||||
),
|
),
|
||||||
onLinkTap: (url) =>
|
beforeLaunch: (url) {
|
||||||
UrlLauncher(context, url).launchUrl(),
|
UrlLauncher(context, url.toString()).launchUrl();
|
||||||
|
return false;
|
||||||
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -142,8 +142,11 @@ class ChatDetailsView extends StatelessWidget {
|
|||||||
.bodyMedium!
|
.bodyMedium!
|
||||||
.color,
|
.color,
|
||||||
),
|
),
|
||||||
onLinkTap: (url) =>
|
beforeLaunch: (url) {
|
||||||
UrlLauncher(context, url).launchUrl(),
|
UrlLauncher(context, url.toString())
|
||||||
|
.launchUrl();
|
||||||
|
return false;
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
|
@ -278,7 +278,10 @@ class StoryView extends StatelessWidget {
|
|||||||
? L10n.of(context)!.loadingPleaseWait
|
? L10n.of(context)!.loadingPleaseWait
|
||||||
: event.content.tryGet<String>('body') ?? '',
|
: event.content.tryGet<String>('body') ?? '',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
onLinkTap: (url) => UrlLauncher(context, url).launchUrl(),
|
beforeLaunch: (url) {
|
||||||
|
UrlLauncher(context, url.toString()).launchUrl();
|
||||||
|
return false;
|
||||||
|
},
|
||||||
linkStyle: TextStyle(
|
linkStyle: TextStyle(
|
||||||
fontSize: 24,
|
fontSize: 24,
|
||||||
color: Colors.blue.shade50,
|
color: Colors.blue.shade50,
|
||||||
|
@ -160,7 +160,10 @@ class PublicRoomBottomSheet extends StatelessWidget {
|
|||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: Theme.of(context).textTheme.bodyMedium!.color,
|
color: Theme.of(context).textTheme.bodyMedium!.color,
|
||||||
),
|
),
|
||||||
onLinkTap: (url) => UrlLauncher(context, url).launchUrl(),
|
beforeLaunch: (url) {
|
||||||
|
UrlLauncher(context, url.toString()).launchUrl();
|
||||||
|
return false;
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -580,8 +580,8 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: "krille/update-dependencies"
|
ref: HEAD
|
||||||
resolved-ref: "167fdbb8fa7d61f8edadbbfcdd3b0d26d0e46c67"
|
resolved-ref: "81d8988584506d1eff0e28abd2a13af96fecb638"
|
||||||
url: "https://github.com/Sorunome/flutter_matrix_html.git"
|
url: "https://github.com/Sorunome/flutter_matrix_html.git"
|
||||||
source: git
|
source: git
|
||||||
version: "1.1.0"
|
version: "1.1.0"
|
||||||
|
@ -146,9 +146,7 @@ dependency_overrides:
|
|||||||
# null safety
|
# null safety
|
||||||
flutter_math_fork: ">=0.7.0"
|
flutter_math_fork: ">=0.7.0"
|
||||||
flutter_matrix_html:
|
flutter_matrix_html:
|
||||||
git:
|
git: https://github.com/Sorunome/flutter_matrix_html.git
|
||||||
url: https://github.com/Sorunome/flutter_matrix_html.git
|
|
||||||
ref: krille/update-dependencies
|
|
||||||
# fake secure storage plugin for Windows
|
# fake secure storage plugin for Windows
|
||||||
# See: https://gitlab.com/gitlab-com/gl-infra/reliability/-/issues/15161
|
# See: https://gitlab.com/gitlab-com/gl-infra/reliability/-/issues/15161
|
||||||
flutter_secure_storage_windows:
|
flutter_secure_storage_windows:
|
||||||
|
Loading…
Reference in New Issue
Block a user