Stracture of the request leave and advance was made
This commit is contained in:
@@ -12,7 +12,7 @@ class SettingsBar extends StatelessWidget {
|
||||
super.key,
|
||||
required this.selectedIndex,
|
||||
required this.onTap,
|
||||
this.showBackButton = false, //to swicth between back button and settings icons
|
||||
this.showBackButton = false, // to switch between back button and settings icons
|
||||
this.onBackTap,
|
||||
required this.iconPaths,
|
||||
});
|
||||
@@ -32,7 +32,6 @@ class SettingsBar extends StatelessWidget {
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
|
||||
if (showBackButton)
|
||||
GestureDetector(
|
||||
onTap: onBackTap,
|
||||
@@ -51,10 +50,11 @@ class SettingsBar extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
child: Center(
|
||||
child: SvgPicture.asset(
|
||||
"assets/images/back.svg",
|
||||
width: 26,
|
||||
height: 26,
|
||||
// Always use Flutter's built-in back icon pointing to the right
|
||||
child: const Icon(
|
||||
Icons.arrow_forward, // Changed to arrow_forward for RTL
|
||||
size: 26,
|
||||
color: Colors.black, // Adjust color as needed
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -102,4 +102,4 @@ class SettingsBar extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user