Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

"toggle()" method usable outside and visible parameter for the main toggler icon #25

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

regisandre
Copy link

@regisandre regisandre commented Jan 30, 2023

Hello,

  1. I made the toggle method usable outside the main "toggler" icon. For example, now we can use the toggle() method on any screen button or in an onPressed parameter of an Icon in an app bar.
  2. I add a visible parameter for the main toggle icon to hide it if we use the toggle method outside the main "toggler".
  3. I add an example of the new "toggler" in the main.dart example.
  4. SideNavigationBarItem is now a custom Material widget because the ListTile caused a faded widget color.

Sioxox added 4 commits January 30, 2023 12:07
Now need to add a parameter of SideBarToggler inside the toggle() method.
I don't know how to do it any other way.
@regisandre regisandre changed the title Enhancement/#22 "toggle()" method usable outside and visible parameter for the main toggler icon Jan 30, 2023
Change of the ListTile when selected to a custom Widget (Material)
@jksevend
Copy link
Owner

jksevend commented Feb 1, 2023

Hey @regisandre
Thanks for the effort! Will have a look at it once I have some time left.

visible: false,
expandIcon: Icons.menu,
shrinkIcon: Icons.close,
onToggle: () => print('toggled'),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use debugPrint() from material here please

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants