update deps, fix context

This commit is contained in:
Christien Rioux 2025-06-01 18:26:12 -04:00
parent fa72782f39
commit 2caaf35d52
3 changed files with 68 additions and 54 deletions

View file

@ -291,10 +291,12 @@ class InvitationDialogState extends State<InvitationDialog> {
const Icon(Icons.error).paddingAll(16)
]).toCenter(),
if (_validInvitation != null && !_isValidating)
Column(children: [
Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
ProfileWidget(
profile: _validInvitation!.remoteProfile,
byline: _validInvitation!.remoteProfile.pronouns,
byline: _validInvitation!.remoteProfile.pronouns.isEmpty
? null
: _validInvitation!.remoteProfile.pronouns,
).paddingLTRB(0, 0, 0, 16),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,

View file

@ -67,53 +67,55 @@ class HomeScreenState extends State<HomeScreen>
final scaleConfig = theme.extension<ScaleConfig>()!;
await showAlertWidgetModal(
context: context,
title: translate('splash.beta_title'),
child: Column(mainAxisAlignment: MainAxisAlignment.center, children: [
Icon(Icons.warning, size: 64.scaled(context)),
RichText(
textScaler: MediaQuery.of(context).textScaler,
textAlign: TextAlign.center,
text: TextSpan(
children: <TextSpan>[
TextSpan(
text: translate('splash.beta_text'),
context: context,
title: translate('splash.beta_title'),
child: Builder(
builder: (context) =>
Column(mainAxisAlignment: MainAxisAlignment.center, children: [
Icon(Icons.warning, size: 64.scaled(context)),
RichText(
textScaler: MediaQuery.of(context).textScaler,
textAlign: TextAlign.center,
text: TextSpan(
children: <TextSpan>[
TextSpan(
text: translate('splash.beta_text'),
style: theme.textTheme.bodyMedium!
.copyWith(color: scale.primaryScale.appText),
),
TextSpan(
text: 'https://veilid.com/chat/knownissues',
style: theme.textTheme.bodyMedium!.copyWith(
color: scaleConfig.useVisualIndicators
? scale.secondaryScale.primaryText
: scale.secondaryScale.primary,
decoration: TextDecoration.underline,
),
recognizer: TapGestureRecognizer()
..onTap = () => launchUrlString(
'https://veilid.com/chat/knownissues'),
),
],
),
),
Row(mainAxisSize: MainAxisSize.min, children: [
StatefulBuilder(
builder: (context, setState) => Checkbox(
value: displayBetaWarning,
onChanged: (value) {
setState(() {
displayBetaWarning = value ?? true;
});
},
)),
Text(
translate('settings_page.display_beta_warning'),
style: theme.textTheme.bodyMedium!
.copyWith(color: scale.primaryScale.appText),
),
TextSpan(
text: 'https://veilid.com/chat/knownissues',
style: theme.textTheme.bodyMedium!.copyWith(
color: scaleConfig.useVisualIndicators
? scale.secondaryScale.primaryText
: scale.secondaryScale.primary,
decoration: TextDecoration.underline,
),
recognizer: TapGestureRecognizer()
..onTap = () =>
launchUrlString('https://veilid.com/chat/knownissues'),
),
],
),
),
Row(mainAxisSize: MainAxisSize.min, children: [
StatefulBuilder(
builder: (context, setState) => Checkbox(
value: displayBetaWarning,
onChanged: (value) {
setState(() {
displayBetaWarning = value ?? true;
});
},
)),
Text(
translate('settings_page.display_beta_warning'),
style: theme.textTheme.bodyMedium!
.copyWith(color: scale.primaryScale.appText),
),
]),
]),
);
]),
]),
));
final preferencesInstance = PreferencesRepository.instance;
await preferencesInstance.set(preferencesInstance.value.copyWith(

View file

@ -92,10 +92,11 @@ packages:
async_tools:
dependency: "direct main"
description:
path: "../dart_async_tools"
relative: true
source: path
version: "0.1.9"
name: async_tools
sha256: "9611c1efeae7e6d342721d0c2caf2e4783d91fba6a9637d7badfa2dccf8de2a2"
url: "https://pub.dev"
source: hosted
version: "0.1.10"
auto_size_text:
dependency: "direct main"
description:
@ -155,10 +156,11 @@ packages:
bloc_advanced_tools:
dependency: "direct main"
description:
path: "../bloc_advanced_tools"
relative: true
source: path
version: "0.1.12"
name: bloc_advanced_tools
sha256: "63e57000df7259e3007dbfbbfd7dae3e0eca60eb2ac93cbe0c5a3de0e77c9972"
url: "https://pub.dev"
source: hosted
version: "0.1.13"
blurry_modal_progress_hud:
dependency: "direct main"
description:
@ -175,6 +177,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.2"
buffer:
dependency: transitive
description:
name: buffer
sha256: "389da2ec2c16283c8787e0adaede82b1842102f8c8aae2f49003a766c5c6b3d1"
url: "https://pub.dev"
source: hosted
version: "1.2.3"
build:
dependency: transitive
description: