mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
refactor: suggested changes
This commit is contained in:
parent
5c099297a4
commit
10b6b9e5ad
@ -343,11 +343,7 @@ class _SelectionMenuWidgetState extends State<SelectionMenuWidget> {
|
||||
newSelectedIndex += widget.maxItemInRow;
|
||||
var currRow = (newSelectedIndex) % widget.maxItemInRow;
|
||||
if (newSelectedIndex >= _showingItems.length) {
|
||||
if (currRow + 1 >= widget.maxItemInRow) {
|
||||
newSelectedIndex = 0;
|
||||
} else {
|
||||
newSelectedIndex = (currRow + 1);
|
||||
}
|
||||
newSelectedIndex = (currRow + 1) % widget.maxItemInRow;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user