From 36149057147302d1708b7f07e1f6e6199d8bc7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Olav?= Date: Thu, 2 Nov 2023 08:07:18 +0100 Subject: [PATCH] sail_ui/containers: wrap all pages in SelectionArea Point is to make all text selectable, across entire app. This is a desktop app, not a mobile app... All text should be selectable, we don't know what the user wants ahead of time! --- .../lib/widgets/containers/sail_page.dart | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/sail_ui/lib/widgets/containers/sail_page.dart b/packages/sail_ui/lib/widgets/containers/sail_page.dart index def68e33..32394885 100644 --- a/packages/sail_ui/lib/widgets/containers/sail_page.dart +++ b/packages/sail_ui/lib/widgets/containers/sail_page.dart @@ -22,17 +22,19 @@ class SailPage extends StatelessWidget { Widget build(BuildContext context) { final theme = SailTheme.of(context); final backgroundColor = theme.colors.background; - final scaffold = Scaffold( - backgroundColor: backgroundColor, - appBar: SailAppBar.build( - context, - title: widgetTitle != null - ? widgetTitle! - : SailText.mediumPrimary20( - title, - ), + final scaffold = SelectionArea( + child: Scaffold( + backgroundColor: backgroundColor, + appBar: SailAppBar.build( + context, + title: widgetTitle != null + ? widgetTitle! + : SailText.mediumPrimary20( + title, + ), + ), + body: buildBody(context), ), - body: buildBody(context), ); return scaffold; }