def small_error_warn(x):
if dp(x) <= dp(80):
if MDBottomNavigationErrorCache.last_size_warning != x:
MDBottomNavigationErrorCache.last_size_warning = x
Logger.warning("MDBottomNavigation: {}dp is less than the minimum size of 80dp for a "
"MDBottomNavigationItem. We must now expand to 168dp.".format(x))
# Did you come here to find out what the bug is?
# The bug is that on startup, this function returning dp(80) breaks the way it displays until you resize
# I don't know why, this may or may not get fixed in the future
return dp(168)
评论列表
文章目录