Skip to content

Commit

Permalink
feat: Added a button to close questions (#1209)
Browse files Browse the repository at this point in the history
* feat: Add button to close questions

* fix: Dart formatting issues
  • Loading branch information
GowthamGoush authored Mar 15, 2022
1 parent 7a7b28b commit 60f2ee6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:openfoodfacts/openfoodfacts.dart';
import 'package:openfoodfacts/utils/OpenFoodAPIConfiguration.dart';
import 'package:smooth_app/cards/product_cards/product_image_carousel.dart';
import 'package:smooth_app/cards/product_cards/product_title_card.dart';
import 'package:smooth_app/generic_lib/buttons/smooth_action_button.dart';
import 'package:smooth_app/generic_lib/design_constants.dart';
import 'package:smooth_app/generic_lib/loading_dialog.dart';
import 'package:smooth_app/helpers/user_management_helper.dart';
Expand Down Expand Up @@ -379,6 +380,7 @@ class _QuestionCardState extends State<QuestionCard>
child: Text(
appLocalizations.sign_in_text,
style: bodyTextStyle,
textAlign: TextAlign.center,
),
),
],
Expand All @@ -387,6 +389,10 @@ class _QuestionCardState extends State<QuestionCard>
return EMPTY_WIDGET;
}
}),
SmoothActionButton(
text: appLocalizations.close,
onPressed: () => Navigator.pop<Widget>(context),
),
],
),
);
Expand Down

0 comments on commit 60f2ee6

Please sign in to comment.