Skip to content

Commit

Permalink
fix: People have issues with cropping (openfoodfacts#2500)
Browse files Browse the repository at this point in the history
* Make the product page action row top aligned solved

* fix: image not croped

* fix: Sign up form: different font styles

* flutter formet

Co-authored-by: Macbook Pro <mac@macbooks-mbp.home>
Co-authored-by: Macbook Pro <mac@Macbooks-MacBook-Pro.local>
  • Loading branch information
3 people authored Jul 7, 2022
1 parent 2148524 commit 875f016
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
3 changes: 0 additions & 3 deletions packages/smooth_app/lib/pages/image_crop_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ Future<File?> startImageCropping(BuildContext context,
backgroundColor: Colors.black,
activeControlsWidgetColor: const Color(0xFF85746C),
),
IOSUiSettings(
minimumAspectRatio: 1.0,
),
],
);
//attempting to create a file from a null path will throw an exception so return null if that happens
Expand Down
18 changes: 12 additions & 6 deletions packages/smooth_app/lib/pages/user_management/sign_up_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,8 @@ class _SignUpPageState extends State<SignUpPage> with TraceableClientMixin {
?.copyWith(color: theme.colorScheme.onBackground),
),
TextSpan(
style: const TextStyle(
color: Colors.blue,
decoration: TextDecoration.underline,
),
style: theme.textTheme.bodyText2
?.copyWith(color: Colors.blue),
text: appLocalizations.sign_up_page_terms_text,
recognizer: TapGestureRecognizer()
..onTap = () async {
Expand Down Expand Up @@ -254,7 +252,11 @@ class _SignUpPageState extends State<SignUpPage> with TraceableClientMixin {
}
},
),
title: Text(appLocalizations.sign_up_page_producer_checkbox),
title: Text(
appLocalizations.sign_up_page_producer_checkbox,
style: theme.textTheme.bodyText2
?.copyWith(color: theme.colorScheme.onBackground),
),
),
if (_foodProducer) ...<Widget>[
const SizedBox(height: space),
Expand Down Expand Up @@ -284,7 +286,11 @@ class _SignUpPageState extends State<SignUpPage> with TraceableClientMixin {
}
},
),
title: Text(appLocalizations.sign_up_page_subscribe_checkbox),
title: Text(
appLocalizations.sign_up_page_subscribe_checkbox,
style: theme.textTheme.bodyText2
?.copyWith(color: theme.colorScheme.onBackground),
),
),
const SizedBox(height: space),
ElevatedButton(
Expand Down

0 comments on commit 875f016

Please sign in to comment.