skip to Main Content

From AnimatedGrid running:

flutter create --sample=widgets.AnimatedGrid.1 mysample

The sample code does not find the AnimatedGrid. What is missing?

Running flutter analyze or flutter run shows following messages:

enter image description here

2

Answers



  1. AnimatedGridState is provided by firestore_ui package, add it on pubspec.yaml.

    dependencies:
      flutter:
        sdk: flutter
    
    
      # The following adds the Cupertino Icons font to your application.
      # Use with the CupertinoIcons class for iOS style icons.
      cupertino_icons: ^1.0.2
      firestore_ui: ^1.24.0
    

    And import it on that file. It isn’t adding on pubspec.yaml while generating the project.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search