From 6313e2909a3651754801e8b6a95dd17a12492aff Mon Sep 17 00:00:00 2001 From: Kristen McWilliam <9575627+Merrit@users.noreply.github.com> Date: Wed, 2 Oct 2024 13:50:21 -0400 Subject: [PATCH 1/2] docs(linux): improve message about dependencies --- lib/loading/cubit/loading_cubit.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/loading/cubit/loading_cubit.dart b/lib/loading/cubit/loading_cubit.dart index 80c9c959..ee65da9c 100644 --- a/lib/loading/cubit/loading_cubit.dart +++ b/lib/loading/cubit/loading_cubit.dart @@ -25,12 +25,10 @@ class LoadingCubit extends Cubit { newState = (dependenciesSatisfied) // ? const LoadingSuccess() : const LoadingError(errorMsg: ''' -Dependency check failed. +Missing dependencies. -Install the dependencies from your system's package manager: - -- `xdotool` -- `wmctrl`'''); +Please see the instructions at https://nyrna.merritt.codes/docs/linux-requirements and +relaunch Nyrna after installing the dependencies.'''); emit(newState); } From 76b4e1b8e7105d3b83a0e4d02e2f01f6ae4c15e7 Mon Sep 17 00:00:00 2001 From: Kristen McWilliam <9575627+Merrit@users.noreply.github.com> Date: Wed, 2 Oct 2024 13:50:52 -0400 Subject: [PATCH 2/2] fix: add padding to dependency message Without padding it reaches right to the sides of the app window and looks bad. --- lib/loading/loading_page.dart | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/lib/loading/loading_page.dart b/lib/loading/loading_page.dart index a53b377a..df546fe5 100644 --- a/lib/loading/loading_page.dart +++ b/lib/loading/loading_page.dart @@ -30,19 +30,22 @@ class LoadingPage extends StatelessWidget { builder: (context, state) { switch (state) { case LoadingError(): - return Card( - child: Container( - padding: const EdgeInsets.all(20.0), - child: MarkdownBody( - data: state.errorMsg, - onTapLink: (text, href, title) { - if (href == null) { - log.e('Broken link: $href'); - return; - } + return Padding( + padding: const EdgeInsets.all(16.0), + child: Card( + child: Container( + padding: const EdgeInsets.all(20.0), + child: MarkdownBody( + data: state.errorMsg, + onTapLink: (text, href, title) { + if (href == null) { + log.e('Broken link: $href'); + return; + } - AppCubit.instance.launchURL(href); - }, + AppCubit.instance.launchURL(href); + }, + ), ), ), );