material static method
Material theme preset
Implementation
static FluentAutoSuggestThemeData material({bool isDark = false}) {
return FluentAutoSuggestThemeData(
designSystem: AutoSuggestDesignSystem.material,
textFieldDecoration: InputDecoration(
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(8),
),
filled: true,
contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
),
overlayBorderRadius: 8.0,
overlayElevation: 8.0,
itemHeight: 48.0,
itemPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
).copyWith(
overlayBackgroundColor: isDark ? const Color(0xFF2D2D2D) : Colors.white,
overlayCardColor: isDark ? const Color(0xFF2D2D2D) : Colors.white,
itemSelectedBackgroundColor: isDark
? Colors.blue.withOpacity(0.3)
: Colors.blue.withOpacity(0.1),
);
}