Mark NavigationBar as non-const to match reality (#108562)

This commit is contained in:
Michael Goderbauer
2022-07-28 14:36:05 -07:00
committed by GitHub
parent 8e77cb4341
commit d10a4a17d6

View File

@@ -54,7 +54,9 @@ class NavigationBar extends StatelessWidget {
///
/// The value of [destinations] must be a list of two or more
/// [NavigationDestination] values.
const NavigationBar({
// TODO(goderbauer): This class cannot be const constructed, https://github.com/dart-lang/linter/issues/3366.
// ignore: prefer_const_constructors_in_immutables
NavigationBar({
super.key,
this.animationDuration,
this.selectedIndex = 0,