|
|
|
|
@ -18,8 +18,9 @@ class AssistantEmployeeMenu extends StatefulWidget {
|
|
|
|
|
final String? title; // Now nullable
|
|
|
|
|
final bool enable;
|
|
|
|
|
final bool showAsBottomSheet;
|
|
|
|
|
final bool hideShadow;
|
|
|
|
|
|
|
|
|
|
AssistantEmployeeMenu({Key? key, required this.statuses, this.title, this.showAsBottomSheet = false, required this.onSelect, this.initialStatus, this.backgroundColor, this.enable = true})
|
|
|
|
|
AssistantEmployeeMenu({Key? key, required this.statuses, this.title, this.showAsBottomSheet = false,this.hideShadow = false, required this.onSelect, this.initialStatus, this.backgroundColor, this.enable = true})
|
|
|
|
|
: super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -74,7 +75,7 @@ class _SingleAssistantEmployeeMenuState extends State<AssistantEmployeeMenu> {
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: widget.backgroundColor ?? (context.isDark ? AppColor.neutral50 : AppColor.neutral120),
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
boxShadow: [BoxShadow(color: Colors.black.withOpacity(0.05), blurRadius: 10)],
|
|
|
|
|
boxShadow: widget.hideShadow ? null : [BoxShadow(color: Colors.black.withOpacity(0.05), blurRadius: 10)],
|
|
|
|
|
),
|
|
|
|
|
child: Stack(
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
|