Skip to content

[Bug] Possible bug about firestore package out of date API #146

Open
@lucasjinreal

Description

@lucasjinreal
lib/main.dart:197:31: Error: 'StorageReference' isn't a type.
                        final StorageReference storageRef =
                              ^^^^^^^^^^^^^^^^
lib/main.dart:200:25: Error: 'StorageUploadTask' isn't a type.
                        StorageUploadTask uploadTask = storageRef.putFile(
                        ^^^^^^^^^^^^^^^^^
lib/main.dart:206:25: Error: 'StorageTaskSnapshot' isn't a type.
                        StorageTaskSnapshot download =
                        ^^^^^^^^^^^^^^^^^^^

I am just cloned the repo, and my flutter is:

❯ flutter doctor 
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 1.24.0-6.0.pre, on Linux, locale en_HK.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✗] Linux toolchain - develop for Linux desktop
    ✗ The blkid development library is required for Linux development.
      It is likely available from your distribution (e.g.: apt install libblkid-dev)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.50.1)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

anybody knows how to solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions