website icon indicating copy to clipboard operation
website copied to clipboard

Code lab Out of Date, Building beautiful UIs with Flutter

Open HarryLudemann opened this issue 3 years ago • 1 comments

Page URL

https://docs.flutter.dev/codelabs/

Page source

https://github.com/flutter/website/tree/main/src/codelabs/index.md

Describe the problem

Building beautiful UIs with Flutter

Section 9 "Applying Finishing Touches" of the "Building beautiful UIs with Flutter" code lab, suggests adding the following theme:

final ThemeData kIOSTheme = ThemeData(
  primarySwatch: Colors.orange,
  primaryColor: Colors.grey[100],
  primaryColorBrightness: Brightness.light, // THIS ARGUMENT
);

The argument primaryColorBrightness has a blue warning label providing the following information:

'primaryColorBrightness' is deprecated and shouldn't be used. No longer used by the framework, please remove any reference to it. This feature was deprecated after v2.6.0-11.0.pre

HarryLudemann avatar Mar 11 '22 06:03 HarryLudemann

Yes, this codelab has been deprecated and removed from the codelabs site and now redirects to a new codelab that uses Material 3. I've filed a PR to remove references to this retired codelab. https://github.com/flutter/website/pull/7201

sfshaza2 avatar May 26 '22 17:05 sfshaza2

The links to this old codelab have been removed and the old codelab now redirects to the new one which doesn't have this issue, so I'm going to close this, thanks!

parlough avatar Dec 06 '22 23:12 parlough