back icons reverted to default

This commit is contained in:
MohammadTaha Basiri 2022-02-23 19:49:23 +03:30
parent db45aa3a36
commit e306e43cb6
4 changed files with 6 additions and 10 deletions

View File

@ -18,9 +18,7 @@ class AuthenticationAppBar extends StatelessWidget {
return Row( return Row(
children: [ children: [
DidvanIconButton( DidvanIconButton(
icon: Platform.isIOS icon: DidvanIcons.back_regular,
? Icons.arrow_back_ios
: DidvanIcons.back_regular,
onPressed: () { onPressed: () {
if (state.currentPageIndex == 0) { if (state.currentPageIndex == 0) {
Navigator.of(context).pop(); Navigator.of(context).pop();

View File

@ -100,9 +100,7 @@ class _FloatingNavigationBarState extends State<FloatingNavigationBar> {
} }
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
icon: Platform.isIOS icon: DidvanIcons.back_regular,
? Icons.arrow_back_ios
: DidvanIcons.back_regular,
), ),
), ),
const Spacer(), const Spacer(),

View File

@ -38,8 +38,8 @@ class DidvanAppBar extends StatelessWidget {
IconButton( IconButton(
onPressed: () => Navigator.of(context).pop(), onPressed: () => Navigator.of(context).pop(),
color: Theme.of(context).colorScheme.title, color: Theme.of(context).colorScheme.title,
icon: Icon( icon: const Icon(
Platform.isIOS ? Icons.arrow_back_ios : DidvanIcons.back_regular, DidvanIcons.back_regular,
), ),
), ),
const SizedBox(width: 16), const SizedBox(width: 16),

View File

@ -334,8 +334,8 @@ class __BackButtonState extends State<_BackButton> {
border: Border.all(color: Theme.of(context).colorScheme.border), border: Border.all(color: Theme.of(context).colorScheme.border),
borderRadius: DesignConfig.lowBorderRadius, borderRadius: DesignConfig.lowBorderRadius,
), ),
child: Icon( child: const Icon(
Platform.isIOS ? Icons.arrow_back_ios : DidvanIcons.back_regular, DidvanIcons.back_regular,
size: 32, size: 32,
), ),
), ),