Allow boxShadow to be changed in AIScribeBar

We will need a custom boxShadow for mobile version.
This commit is contained in:
Théo Poizat
2026-01-07 16:06:27 +01:00
committed by Dat H. Pham
parent 4c75ec863d
commit d5a3400bb4
@@ -9,11 +9,13 @@ typedef OnCustomPromptCallback = void Function(String customPrompt);
class AIScribeBar extends StatefulWidget {
final OnCustomPromptCallback onCustomPrompt;
final ImagePaths imagePaths;
final List<BoxShadow>? boxShadow;
const AIScribeBar({
super.key,
required this.onCustomPrompt,
required this.imagePaths,
this.boxShadow,
});
@override
@@ -62,7 +64,7 @@ class _AIScribeBarState extends State<AIScribeBar> {
Radius.circular(AIScribeSizes.searchBarRadius),
),
color: AIScribeColors.background,
boxShadow: AIScribeShadows.modal,
boxShadow: widget.boxShadow ?? AIScribeShadows.modal,
),
constraints: const BoxConstraints(
maxHeight: AIScribeSizes.searchBarMaxHeight,