Skip to content

Commit

Permalink
chore: Adding inline docs to clarify code. #4
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle committed Apr 28, 2023
1 parent be26518 commit f45f64d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class _DrawerMenuTilesListState extends State<DrawerMenuTilesList> {
Widget build(BuildContext context) {
return ReorderableListView(
shrinkWrap: true,
// https://stackoverflow.com/questions/56726298/nesting-reorderable-lists
physics: const NeverScrollableScrollPhysics(),
padding: const EdgeInsets.only(top: 32),
onReorder: (oldIndex, newIndex) => _reorderTiles(oldIndex, newIndex, menuItemInfoList),
Expand Down
2 changes: 2 additions & 0 deletions lib/tiles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class MenuItemInfo {

/// Custom tile class that expands if there are child tiles or not.
class MenuItem extends StatefulWidget {

// https://stackoverflow.com/questions/59444423/reorderablelistview-does-not-identify-keys-in-custom-widget
final Key key;
final MenuItemInfo info;
final double leftPadding;
Expand Down

0 comments on commit f45f64d

Please sign in to comment.