Skip to content

Commit

Permalink
fix: Welcome message splits on smaller device (#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay1821 authored Apr 1, 2022
1 parent fcea379 commit 475534c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/smooth_app/lib/widgets/smooth_product_carousel.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:carousel_slider/carousel_slider.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
Expand Down Expand Up @@ -120,13 +121,14 @@ class SearchCard extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Text(
AutoSizeText(
localizations.welcomeToOpenFoodFacts,
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 36.0,
fontWeight: FontWeight.bold,
),
maxLines: 2,
),
Text(
localizations.searchPanelHeader,
Expand Down
7 changes: 7 additions & 0 deletions packages/smooth_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.2"
auto_size_text:
dependency: "direct main"
description:
name: auto_size_text
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0"
boolean_selector:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions packages/smooth_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ dependencies:
git:
url: https://github.com/cli1005/google_ml_barcode_scanner.git
ref: master
auto_size_text: ^3.0.0



Expand Down

0 comments on commit 475534c

Please sign in to comment.