Replies: 1 comment
-
|
I like the idea, but I think it'd create one more field we'd need to edit if we make any changes to the pane items - and we don't make use of Though, the example app is just an example and not a model of how every application should be. In fact, with relatively small apps, there isn't the need to make use of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, @bdlukaa
I think there's a better way to merge the
keyandonTaptogether without I write the path twice.Modify from Official fluent_ui/example repo
from
fluent_ui/example/lib/main.dart:class _MyHomePageState extends State<MyHomePage> with WindowListener {Original:
Modified:
this could avoid the remaping
].map((e) { if (e is PaneItem) { return PaneItem(...) }).toList();,which would cause Class<PaneItemExpander>loose the propertyitems,initiallyExpanded...Also make the
onTapmore customized.My Suggestion
make
{void Function()? onTap}to{void Function(key)? onTap}, so we could write like this:I'm busy with my tiny demo project, so I write my suggestion first here, later I would try to pull request to solve this maybe :)
Beta Was this translation helpful? Give feedback.
All reactions