Skip to content

Commit

Permalink
fix: Onboarding text is weirdly cropped (#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhattabhi013 authored Apr 7, 2022
1 parent c6e20af commit 4449a9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/smooth_app/lib/pages/onboarding/scan_example.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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!
Expand Down Expand Up @@ -86,7 +88,7 @@ class ScanExample extends StatelessWidget {
),
),
),
const Spacer(flex: 3),
const Spacer(flex: 2),
],
),
const Positioned(
Expand Down

0 comments on commit 4449a9f

Please sign in to comment.