D1APP-16 dismiss button synced to design
This commit is contained in:
parent
064e54c5ef
commit
c472ed9dea
|
|
@ -10,6 +10,7 @@ class ActionSheetData {
|
|||
final IconData? titleIcon;
|
||||
final Color? titleColor;
|
||||
final bool hasDismissButton;
|
||||
final bool smallDismissButton;
|
||||
|
||||
ActionSheetData({
|
||||
required this.content,
|
||||
|
|
@ -21,5 +22,6 @@ class ActionSheetData {
|
|||
this.titleIcon,
|
||||
this.dismissTitle,
|
||||
this.onDismissed,
|
||||
this.smallDismissButton = false,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ class _RadarState extends State<Radar> {
|
|||
await ActionSheetUtils.showBottomSheet(
|
||||
data: ActionSheetData(
|
||||
title: 'فیلتر جستجو',
|
||||
smallDismissButton: true,
|
||||
titleIcon: DidvanIcons.filter_regular,
|
||||
dismissTitle: 'حذف فیلتر',
|
||||
confrimTitle: 'نمایش نتایج',
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@ class ActionSheetUtils {
|
|||
),
|
||||
if (data.hasDismissButton) const SizedBox(width: 20),
|
||||
Expanded(
|
||||
flex: data.smallDismissButton ? 2 : 1,
|
||||
child: DidvanButton(
|
||||
style: ButtonStyleMode.primary,
|
||||
onPressed: () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue