fixed rtl supoort in some pages
This commit is contained in:
@@ -35,6 +35,7 @@ PreferredSizeWidget appBar({
|
||||
required BuildContext context,
|
||||
required String title,
|
||||
}) {
|
||||
final isRtl = Directionality.of(context) == TextDirection.rtl;
|
||||
return PreferredSize(
|
||||
preferredSize: const Size.fromHeight(60),
|
||||
child: AppBar(
|
||||
@@ -43,7 +44,7 @@ PreferredSizeWidget appBar({
|
||||
titleSpacing: 0,
|
||||
leading: IconButton(
|
||||
icon: SvgPicture.asset(
|
||||
AssetsManager.arrowLeft,
|
||||
isRtl ? AssetsManager.arrowRight : AssetsManager.arrowLeft,
|
||||
height: 24.0.w(),
|
||||
width: 24.0.w(),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user