Open Vedsaga opened 2 weeks ago
Reproducible using the code sample provided above.
As a quick workaround, in the provided sample code, I can get optionsViewOpenDirection.up
to show up properly if I set the alignment in CustomOptionsList
's returned Align
widget to AlignmentDirectional.bottomStart
.
However, that then makes it not show up properly for optionsViewOpenDirection.down
, unless I then set the alignment to AlignmentDirectional.topStart
.
This PR might be a possible fix.
cc @justinmc
I was investigating this in https://github.com/flutter/flutter/pull/143249, but I'm a bit stuck right now due to failing Google tests. I'm not sure if I'll end up fixes this in that PR or if it will have to be done elsewhere.
Steps to reproduce
Expected results
Even we use pass the custom options it should work normally.
Actual results
Custom options does not show up. While
optionsViewBuilder
does get invoked. Added the print statement confirms that.If we comment the below code the Custom Options does seems works normally as it open down.
Code sample
```dart import 'package:flutter/material.dart'; /// Flutter code sample for [Autocomplete]. void main() => runApp(const AutocompleteExampleApp()); class AutocompleteExampleApp extends StatelessWidget { const AutocompleteExampleApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( appBar: AppBar( title: const Text('Autocomplete Basic'), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children:
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]Logs
Logs
```console [Paste your logs here] ```Flutter Doctor output
Doctor output
```console [!] Flutter (Channel beta, 3.22.0-0.3.pre, on Microsoft Windows [Version 10.0.22631.3447], locale en-IN) • Flutter version 3.22.0-0.3.pre on channel beta at C:\Users\harsh\fvm\default ! Warning: `flutter` on your path resolves to C:\Users\harsh\fvm\versions\beta\bin\flutter, which is not inside your current Flutter SDK checkout at C:\Users\harsh\fvm\default. Consider adding C:\Users\harsh\fvm\default\bin to the front of your path. ! Warning: `dart` on your path resolves to C:\Users\harsh\fvm\versions\beta\bin\dart, which is not inside your current Flutter SDK checkout at C:\Users\harsh\fvm\default. Consider adding C:\Users\harsh\fvm\default\bin to the front of your path. • Upstream repository https://github.com/flutter/flutter.git • Framework revision 87b652410d (4 days ago), 2024-04-23 21:41:18 -0500 • Engine revision b4bfd45986 • Dart version 3.4.0 (build 3.4.0-282.3.beta) • DevTools version 2.34.3 • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades. [✓] Windows Version (Installed version of Windows is version 10 or higher) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at C:\Users\harsh\AppData\Local\Android\sdk • Platform android-34, build-tools 34.0.0 • Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314) • All Android licenses accepted. [!] Android Studio (version 2022.1) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart ✗ Unable to determine bundled Java version. • Try updating or re-installing Android Studio. [✓] Android Studio (version 2023.1) • Android Studio at C:\Program Files\Android\Android Studio1 • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314) [✓] IntelliJ IDEA Community Edition (version 2023.2) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.2.1 • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart [✓] VS Code (version 1.88.1) • VS Code at C:\Users\harsh\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.56.0 [✓] Connected device (1 available) • vivo 1907 (mobile) • 8TBYBE6H7H55USFE • android-arm64 • Android 12 (API 31) [✓] Network resources • All expected network resources are available. ! Doctor found issues in 2 categories. ```