-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Added Navigation Rail demo to Material section #342
Conversation
Please let me know if anything needs to be changed. |
@rami-a could you please have a look at this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for another contribution @Alabhya268 ! Looks pretty good but could you address my feedback please :)
I've made necessary changes please have a look . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one small comment :)
selectedIndex: _selectedIndex, | ||
onDestinationSelected: (index) { | ||
setState( | ||
() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can this be moved up 1 line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
}, | ||
); | ||
}, | ||
labelType: NavigationRailLabelType.selected, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good choice for this demo!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one last tiny nit, thanks!
children: [ | ||
NavigationRail( | ||
leading: FloatingActionButton( | ||
child: const Icon(Icons.add), onPressed: () {}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Add a trailing comma and reformat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also thanks for guiding me.
Gallery Side - Closes #190