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) const Icon(Icons.error).paddingAll(16)
]).toCenter(), ]).toCenter(),
if (_validInvitation != null && !_isValidating) if (_validInvitation != null && !_isValidating)
Column(children: [ Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
ProfileWidget( ProfileWidget(
profile: _validInvitation!.remoteProfile, profile: _validInvitation!.remoteProfile,
byline: _validInvitation!.remoteProfile.pronouns, byline: _validInvitation!.remoteProfile.pronouns.isEmpty
? null
: _validInvitation!.remoteProfile.pronouns,
).paddingLTRB(0, 0, 0, 16), ).paddingLTRB(0, 0, 0, 16),
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,

View file

@ -67,53 +67,55 @@ class HomeScreenState extends State<HomeScreen>
final scaleConfig = theme.extension<ScaleConfig>()!; final scaleConfig = theme.extension<ScaleConfig>()!;
await showAlertWidgetModal( await showAlertWidgetModal(
context: context, context: context,
title: translate('splash.beta_title'), title: translate('splash.beta_title'),
child: Column(mainAxisAlignment: MainAxisAlignment.center, children: [ child: Builder(
Icon(Icons.warning, size: 64.scaled(context)), builder: (context) =>
RichText( Column(mainAxisAlignment: MainAxisAlignment.center, children: [
textScaler: MediaQuery.of(context).textScaler, Icon(Icons.warning, size: 64.scaled(context)),
textAlign: TextAlign.center, RichText(
text: TextSpan( textScaler: MediaQuery.of(context).textScaler,
children: <TextSpan>[ textAlign: TextAlign.center,
TextSpan( text: TextSpan(
text: translate('splash.beta_text'), 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! style: theme.textTheme.bodyMedium!
.copyWith(color: scale.primaryScale.appText), .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; final preferencesInstance = PreferencesRepository.instance;
await preferencesInstance.set(preferencesInstance.value.copyWith( await preferencesInstance.set(preferencesInstance.value.copyWith(

View file

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