Skip to content

Initial white screen caused by auto-generated code that blocks rendering until user location is resolved #6392

@MendesCorporation

Description

@MendesCorporation

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

When using Current Device Location, FlutterFlow automatically inserts the following code at the very beginning of the page:

@override
Widget build(BuildContext context) {
  if (currentUserLocationValue == null) {
    return Container(
      color: FlutterFlowTheme.of(context).primaryBackground,
      child: Center(
        child: SizedBox(
          width: 50,
          height: 50,
          child: SpinKitThreeBounce(
            color: FlutterFlowTheme.of(context).primary2,
            size: 50,
          ),
        ),
      ),
    );
  }
}

This completely ruins the user experience. Current Device Location already defaults to (0,0), so please let us handle the rest ourselves. With this auto-generated code, the initial experience is poor, and every time the page loads it ends up “flashing.”

Expected Behavior

Do not create any widget that appears on top of everything, ruining the app experience.

Steps to Reproduce

1.Create new page
2.Use current device location

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

ITFfisnLuJVPm+FE7q6IbuxapCQ4JW0cTIMziNZ+exUbfaL1BuwxPeLeak1CTbC5aVNcEVH8sDkxp97tiYTLOvUCA0iqbIRR/rpuTQz0e2iQb6a3OqrpfnJAM8NQfE+P4Z+02yR+GPVuLGQ+2Vy1N+e8Z3TDFOu/Zwh9f6PHaOI=

Visual documentation

Image

Environment

- FlutterFlow version: 6.1.47+
- Platform: Android
- Browser name and version: 
- Operating system and version affected: All

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions