Add constraint options to SearchAnchor suggestions builder (#148856)

Refactors the `SearchAnchor` suggestions builder to not take up the whole screen

https://github.com/flutter/flutter/issues/148852
This commit is contained in:
Rexios
2024-11-13 20:19:09 -05:00
committed by GitHub
parent dec763979c
commit cc6ee0cc32
5 changed files with 212 additions and 84 deletions

View File

@@ -50,6 +50,9 @@ class _${blockName}DefaultsM3 extends ${blockName}ThemeData {
@override
EdgeInsetsGeometry? get barPadding => const EdgeInsets.symmetric(horizontal: 8.0);
@override
bool get shrinkWrap => false;
@override
Color? get dividerColor => ${componentColor('md.comp.search-view.divider')};
}