Bottom navigation items length docs (#72490)

This commit is contained in:
Abhishek Ghaskata 2020-12-18 11:59:01 +05:30 committed by GitHub
parent e2a0d03b79
commit b84d8ee2df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,9 @@ enum BottomNavigationBarType {
/// [BottomNavigationBarType.fixed] when there are less than four items, and /// [BottomNavigationBarType.fixed] when there are less than four items, and
/// [BottomNavigationBarType.shifting] otherwise. /// [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 /// * [BottomNavigationBarType.fixed], the default when there are less than
/// four [items]. The selected item is rendered with the /// four [items]. The selected item is rendered with the
/// [selectedItemColor] if it's non-null, otherwise the theme's /// [selectedItemColor] if it's non-null, otherwise the theme's