Open M-Ahal opened 3 months ago
If I replace the pane with content, then it works as expected:
return NavigationView(
appBar: const NavigationAppBar(),
content: TextBox(
placeholder: 'Name',
expands: false,
autofocus: true,
autocorrect: false,
onTap: () => debugPrint('does detect tap'),
onChanged: (value) => debugPrint('does not detect change: $value'),
),
// pane: NavigationPane(
// items: [
// PaneItem(
// icon: const Icon(FluentIcons.add),
// title: const Text('Add'),
// body: const _TextFieldPage(),
// ),
// ],
// ),
);
So the problem seems to be with the pane
Describe the bug The
TextBox()
widget does not focus on tap, and also is non-editable because of it. The Flutter-Inspector, shows it's FocusNode as 'NOT FOCUSABLE'To Reproduce Minimal Reproducible example
fluent_ui: ^4.9.0
as a dependencyExpected behavior Tapping the TextBox() widget, should bring the focus on that widget and make it editable
Screenshots https://github.com/bdlukaa/fluent_ui/assets/132486634/4d348ce7-4ec0-46cf-9306-3d1a84395b9e
Additional context I was orgininally using this widget as part of the
PlatformTextField
from flutter_extended_platform_widgets. I reproduced this on Android, and managed to resolve it with some SO isssue, by addingkeyboardType: TextInputType.text
. But that is not available for this platform. The issue logged was something to do 'Cannot have 0 span ...', but no log from this package