flutter / flutter/website

Explanation of 'const' optimization is missing

Open
#12,603 1 comment 0 reactions 0 assignees View on GitHub
from.page-issue p2-medium
Dominant language
Dart
Stars
3.1k
Forks
3.5k
Avg merge
2d 2h
Merged PRs (30d)
96

Description

### Page URL

https://docs.flutter.dev/get-started/fundamentals/widgets

### Page source

_No response_

### Describe the problem

I am completely new to flutter, and I noticed that widgets are mostly passed including a 'const'. I find it kind of weird that there is no explanation provided for why the 'const' is included (why it is 'preferred/required').

### Expected fix

_No response_

### Additional context

_No response_

### I would like to fix this problem.

- [ ] I will try and fix this problem on docs.flutter.dev.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.