feat : sale out province
This commit is contained in:
@@ -4,5 +4,10 @@ extension XDataTime on DateTime {
|
||||
return "$year/${month.toString().padLeft(2, '0')}/${day.toString().padLeft(2, '0')}";
|
||||
}
|
||||
|
||||
String get formattedDashedGregorian {
|
||||
|
||||
return "$year-${month.toString().padLeft(2, '0')}-${day.toString().padLeft(2, '0')}";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -15,6 +15,7 @@ class RAppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
final List<Widget>? additionalActions;
|
||||
final int? leadingWidth;
|
||||
final Widget? leading;
|
||||
final PreferredSizeWidget? bottom;
|
||||
|
||||
const RAppBar({
|
||||
super.key,
|
||||
@@ -27,7 +28,8 @@ class RAppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
this.leading,
|
||||
this.hasBack = true,
|
||||
this.centerTitle = false,
|
||||
this.leadingWidth
|
||||
this.leadingWidth,
|
||||
this.bottom,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -39,20 +41,18 @@ class RAppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
excludeHeaderSemantics: true,
|
||||
scrolledUnderElevation: 0,
|
||||
centerTitle: centerTitle,
|
||||
|
||||
titleTextStyle:
|
||||
titleTextStyle ??
|
||||
AppFonts.yekan16.copyWith(color:Colors.white),
|
||||
titleTextStyle ?? AppFonts.yekan16.copyWith(color: Colors.white),
|
||||
title: Text(title),
|
||||
leadingWidth: leadingWidth?.toDouble(),
|
||||
|
||||
leading:leading!=null ? Padding(
|
||||
padding: const EdgeInsets.only(right: 16),
|
||||
child: leading,
|
||||
) : null,
|
||||
leading: leading != null
|
||||
? Padding(padding: const EdgeInsets.only(right: 16), child: leading)
|
||||
: null,
|
||||
titleSpacing: 8,
|
||||
actions: [
|
||||
if (additionalActions != null) ...additionalActions!,
|
||||
if(hasBack)...{
|
||||
if (hasBack) ...{
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||
child: IconButton(
|
||||
@@ -61,11 +61,9 @@ class RAppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
color: iconColor,
|
||||
),
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
||||
},
|
||||
],
|
||||
bottom: bottom,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user