Allow boxShadow to be changed in AIScribeBar
We will need a custom boxShadow for mobile version.
This commit is contained in:
@@ -9,11 +9,13 @@ typedef OnCustomPromptCallback = void Function(String customPrompt);
|
|||||||
class AIScribeBar extends StatefulWidget {
|
class AIScribeBar extends StatefulWidget {
|
||||||
final OnCustomPromptCallback onCustomPrompt;
|
final OnCustomPromptCallback onCustomPrompt;
|
||||||
final ImagePaths imagePaths;
|
final ImagePaths imagePaths;
|
||||||
|
final List<BoxShadow>? boxShadow;
|
||||||
|
|
||||||
const AIScribeBar({
|
const AIScribeBar({
|
||||||
super.key,
|
super.key,
|
||||||
required this.onCustomPrompt,
|
required this.onCustomPrompt,
|
||||||
required this.imagePaths,
|
required this.imagePaths,
|
||||||
|
this.boxShadow,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -62,7 +64,7 @@ class _AIScribeBarState extends State<AIScribeBar> {
|
|||||||
Radius.circular(AIScribeSizes.searchBarRadius),
|
Radius.circular(AIScribeSizes.searchBarRadius),
|
||||||
),
|
),
|
||||||
color: AIScribeColors.background,
|
color: AIScribeColors.background,
|
||||||
boxShadow: AIScribeShadows.modal,
|
boxShadow: widget.boxShadow ?? AIScribeShadows.modal,
|
||||||
),
|
),
|
||||||
constraints: const BoxConstraints(
|
constraints: const BoxConstraints(
|
||||||
maxHeight: AIScribeSizes.searchBarMaxHeight,
|
maxHeight: AIScribeSizes.searchBarMaxHeight,
|
||||||
|
|||||||
Reference in New Issue
Block a user