From 9a9c89b911148831c1eed5353043a013b501ad81 Mon Sep 17 00:00:00 2001 From: kyle Date: Thu, 12 Oct 2023 11:40:27 -0700 Subject: [PATCH] Fix overflow --- .../example/lib/homepage.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/logging_cloudwatch/amplify_logging_cloudwatch/example/lib/homepage.dart b/packages/logging_cloudwatch/amplify_logging_cloudwatch/example/lib/homepage.dart index 2040cef11c3..90972b09b91 100644 --- a/packages/logging_cloudwatch/amplify_logging_cloudwatch/example/lib/homepage.dart +++ b/packages/logging_cloudwatch/amplify_logging_cloudwatch/example/lib/homepage.dart @@ -196,12 +196,13 @@ class _MyHomePageState extends State { const SizedBox( width: 10, ), - TextField( - decoration: const InputDecoration( - constraints: BoxConstraints(maxWidth: 250), - hintText: 'Enter log message', + Expanded( + child: TextField( + decoration: const InputDecoration( + hintText: 'Enter log message', + ), + controller: loggerInfo.logMsgController, ), - controller: loggerInfo.logMsgController, ), ], ),