From b84d8ee2df571c28aa4710391fe2f5f516160279 Mon Sep 17 00:00:00 2001 From: Abhishek Ghaskata Date: Fri, 18 Dec 2020 11:59:01 +0530 Subject: [PATCH] Bottom navigation items length docs (#72490) --- packages/flutter/lib/src/material/bottom_navigation_bar.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter/lib/src/material/bottom_navigation_bar.dart b/packages/flutter/lib/src/material/bottom_navigation_bar.dart index 8d5e27128a..3e6718e501 100644 --- a/packages/flutter/lib/src/material/bottom_navigation_bar.dart +++ b/packages/flutter/lib/src/material/bottom_navigation_bar.dart @@ -50,6 +50,9 @@ enum BottomNavigationBarType { /// [BottomNavigationBarType.fixed] when there are less than four items, and /// [BottomNavigationBarType.shifting] otherwise. /// +/// The length of [items] must be at least two and each item's icon and title/label +/// must not be null. +/// /// * [BottomNavigationBarType.fixed], the default when there are less than /// four [items]. The selected item is rendered with the /// [selectedItemColor] if it's non-null, otherwise the theme's