FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

AutoComplete textfield error #4777

Closed Digitpixels closed 3 weeks ago

Digitpixels commented 3 weeks ago

Can we access your project?

Current Behavior

I have a package error

Error: Couldn't resolve the package 'substring_highlight' in 'package:substring_highlight/substring_highlight.dart'. D/EGL_emulation( 9049): app_time_stats: avg=501.71ms min=498.66ms max=504.77ms count=2 lib/flutter_flow/flutter_flow_autocomplete_options_list.dart:3:8: Error: Not found: 'package:substring_highlight/substring_highlight.dart' import 'package:substring_highlight/substring_highlight.dart'; ^ lib/flutter_flow/flutter_flow_autocomplete_options_list.dart:68:28: Error: The method 'SubstringHighlight' isn't defined for the class 'AutocompleteOptionsList'.

Expected Behavior

I want to use the autocomplete option from the textfield

Steps to Reproduce

  1. ADD textfield
  2. actice autocomplete
  3. Active 'SubString style same as textfield

Reproducible from Blank

Bug Report Code (Required)

IT4kz/Hqx89gobxY17X1bcJFgikUHHI9TL03t9VxSUgrIrbyPJkUafSkXBJVOe2rSlZfKEWKmn4Gpv/HktntD+0pMgqafqJlyZdcTDnLUnm/aoSSPZDoP0dSAf1mfUC437WnnwlTPvJedXAC2V+LevCWcBTdHpv7Zwh9f6PHaOI=

Visual documentation

image

Environment

- FlutterFlow version: 5.0.9
- Platform: Desktop
- Operating system and version affected: Windows 11

Additional Information

No response

Alezanello commented 3 weeks ago

Hello!

When you added the new package, did you have the local run already open?

Adding a new package often requires a full restart rather than just a hot reload. This is especially true when adding a new widget that includes additional packages. You’ll need to restart the local run to ensure the flutter pub get command executes, downloading the necessary packages for the project.