forked from firka/flutter
Mark NavigationBar as non-const to match reality (#108562)
This commit is contained in:
committed by
GitHub
parent
8e77cb4341
commit
d10a4a17d6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user