From 4449a9fe2a0260f9bb0317cedc52f130c44cef2e Mon Sep 17 00:00:00 2001 From: Abhishek Bhatt <47862474+bhattabhi013@users.noreply.github.com> Date: Fri, 8 Apr 2022 02:33:05 +0530 Subject: [PATCH] fix: Onboarding text is weirdly cropped (#1516) --- packages/smooth_app/lib/pages/onboarding/scan_example.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/smooth_app/lib/pages/onboarding/scan_example.dart b/packages/smooth_app/lib/pages/onboarding/scan_example.dart index c90ce4af91f..1ec1fa147db 100644 --- a/packages/smooth_app/lib/pages/onboarding/scan_example.dart +++ b/packages/smooth_app/lib/pages/onboarding/scan_example.dart @@ -1,3 +1,4 @@ +import 'package:auto_size_text/auto_size_text.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_svg/flutter_svg.dart'; @@ -56,8 +57,9 @@ class ScanExample extends StatelessWidget { child: Padding( padding: EdgeInsets.only( left: screenSize.width / 10, right: MEDIUM_SPACE), - child: Text( + child: AutoSizeText( appLocalizations.offUtility, + maxLines: 2, style: Theme.of(context) .textTheme .headline1! @@ -86,7 +88,7 @@ class ScanExample extends StatelessWidget { ), ), ), - const Spacer(flex: 3), + const Spacer(flex: 2), ], ), const Positioned(