Skip to content

Commit

Permalink
Minor code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurtanuki committed Nov 1, 2024
1 parent bb276a7 commit f480f28
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ class _AddBasicDetailsPageState extends State<AddBasicDetailsPage> {
suffixIcon: _getOwnerFieldIcon(
_product,
ProductField.NAME,
appLocalizations.product_name,
),
controller: _productNameController,
type: TextFieldTypes.PLAIN_TEXT,
Expand All @@ -172,7 +171,6 @@ class _AddBasicDetailsPageState extends State<AddBasicDetailsPage> {
suffixIcon: _getOwnerFieldIcon(
_product,
ProductField.NAME_IN_LANGUAGES,
appLocalizations.product_name,
language: _multilingualHelper
.getCurrentLanguage(),
),
Expand Down Expand Up @@ -212,7 +210,6 @@ class _AddBasicDetailsPageState extends State<AddBasicDetailsPage> {
suffixIcon: _getOwnerFieldIcon(
_product,
ProductField.BRANDS,
appLocalizations.brand_name,
),
manager: AutocompleteManager(
TaxonomyNameAutocompleter(
Expand All @@ -236,7 +233,6 @@ class _AddBasicDetailsPageState extends State<AddBasicDetailsPage> {
suffixIcon: _getOwnerFieldIcon(
_product,
ProductField.QUANTITY,
appLocalizations.quantity,
),
controller: _weightController,
type: TextFieldTypes.PLAIN_TEXT,
Expand Down Expand Up @@ -357,8 +353,7 @@ class _AddBasicDetailsPageState extends State<AddBasicDetailsPage> {

Widget? _getOwnerFieldIcon(
final Product product,
final ProductField productField,
final String title, {
final ProductField productField, {
final OpenFoodFactsLanguage? language,
}) =>
product.getOwnerFieldTimestamp(
Expand Down

0 comments on commit f480f28

Please sign in to comment.