FlutterFlow / flutterflow-issues

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

In the Libraries, missed import in components #4939

Open Fibtegis opened 1 day ago

Fibtegis commented 1 day ago

Can we access your project?

Current Behavior

App doesn't build

Expected Behavior

App should build

Steps to Reproduce

Create a Library Create a component in the library Create List and add paged api request Create a project Include library Add component

App haven't build, 'ApiPagingParams' not found. PagingController?

Because import 'package:ff_commons/api_requests/api_paging_params.dart' this import part not included in the library ("Component model code")

Reproducible from Blank

Bug Report Code (Required)

IT4glvLqw49Om9hE1pDuKe9anjo4H0h7R700sd4bGA0dCJzuPLMQdvWlRBJVXcO5TEFAPUSmmkICw6npiOHTJ/dfOQWqbr5Z1oduExaUUlm6UZOBDaqCQERfN9xmIHa40p+JhAonOtZZWmQF62WEFfCUcHbfJL23IndISq/LZO4=

Visual documentation

This one model import codes, pagedparams missing in this part

import '/backend/api_requests/api_calls.dart'; import '/flutter_flow/flutter_flow_util.dart'; import "package:xxxx/backend/schema/structs/index.dart" as xxxx_data_schema; import '/backend/schema/structs/index.dart'; import 'test_widget.dart' show TestWidget; import 'package:ff_theme/flutter_flow/flutter_flow_theme.dart'; import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:flutter_spinkit/flutter_spinkit.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart'; import 'package:provider/provider.dart';

Environment

- FlutterFlow version: 5.0.12
- Platform: All
- Browser name and version: All
- Operating system and version affected: All

Additional Information

No response

Alezanello commented 12 hours ago

Hello!

It seems that in the project you shared, the issue arises because the parameter is not set correctly. Specifically, the user reference appears to be missing from the parameter, as indicated by the error message displayed in the top-right corner.

Please double-check the parameter configuration to resolve this issue. Let me know if you need further assistance!

image.png
Fibtegis commented 11 hours ago

It's not my problem, it's just ui bug. If you click the red dot, and cancel the action editor it will be gone.

Screenshot 2024-11-21 at 16 25 36