Skip to content

Commit

Permalink
fix: 3700 - Fixed widget overflow issues in product editing page (#3714)
Browse files Browse the repository at this point in the history
* Fixed widget overflow issues in product editing page

* Used expanded instead of providing fixed size
  • Loading branch information
Adiii1436 authored Feb 20, 2023
1 parent 070b258 commit 7159773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ class _NutritionPageLoadedState extends State<NutritionPageLoaded> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
SizedBox(
width: getColumnSizeFromContext(context, 0.6),
Expanded(
child: _getNutrientCell(
appLocalizations,
orderedNutrient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ class SimpleInputTextField extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
SizedBox(
width: constraints.maxWidth -
LARGE_SPACE -
(withClearButton ? MINIMUM_TOUCH_SIZE : 0),
Expanded(
child: RawAutocomplete<String>(
key: autocompleteKey,
focusNode: focusNode,
Expand Down

0 comments on commit 7159773

Please sign in to comment.