Skip to content

Some Code Display Error #11978

Closed
Closed
@YBMS4

Description

@YBMS4

Page URL

https://docs.flutter.dev/ui/animations/tutorial/

Page source

https://github.com/flutter/website/tree/main/src/content/ui/animations/tutorial.md

Describe the problem

Image

Section: Refactoring with AnimatedBuilder
App source: [animate4](https://github.com/flutter/website/tree/main/examples/animation/animate4)

With what I understood on the page, I can see there's some error : "+" where "-" are expected.
Hint: I don't think a widget can have 2 "child" 😅

Here's the error:

+      child: Container(
+        margin: const EdgeInsets.symmetric(vertical: 10),
+        height: animation.value,
+        width: animation.value,
+        child: const FlutterLogo(),

Expected fix

-      child: Container(
-        margin: const EdgeInsets.symmetric(vertical: 10),
-        height: animation.value,
-        width: animation.value,
-        child: const FlutterLogo(),

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    from.page-issueReported in a reader-filed concern

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions