Skip to content

Commit 2d5ea3b

Browse files
committed
fix: amend minor bugs with navigation
1 parent d7926c1 commit 2d5ea3b

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import 'package:flutter_dotenv/flutter_dotenv.dart';
77

88
import 'domain/core/i_settings_repository.dart';
99
import 'infrastructure/core/injection.dart';
10+
import 'infrastructure/core/settings_repository.dart';
1011
import 'presentation/core/app_widget.dart';
1112

1213
Future<void> main() async {

lib/presentation/auth/auth_screen.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ class AuthPageState extends State<AuthPage> {
6666
},
6767
child: Scaffold(
6868
resizeToAvoidBottomInset: true,
69-
appBar: _currentPage == 0
70-
? const CustomAppBar(closable: true)
71-
: AppBar(backgroundColor: Colors.transparent, elevation: 0.0),
69+
appBar: CustomAppBar(closable: _currentPage == 0),
7270
body: SafeArea(
7371
child: SingleChildScrollView(
7472
child: Padding(

lib/presentation/crowdaction/crowdaction_details/widgets/crowdaction_details_banner.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import '../../../shared_widgets/image_skeleton_loader.dart';
1212
import '../../../themes/constants.dart';
1313

1414
class CrowdActionDetailsBanner extends StatelessWidget {
15+
final CrowdAction? crowdAction;
16+
1517
const CrowdActionDetailsBanner({
1618
super.key,
1719
required this.crowdAction,
1820
});
1921

20-
final CrowdAction? crowdAction;
21-
2222
@override
2323
Widget build(BuildContext context) {
2424
return SliverAppBar(

lib/presentation/home/widgets/password_modal.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class _PasswordModalState extends State<PasswordModal> {
147147

148148
addCrowdActionAccess();
149149

150-
context.router.replace(
150+
context.router.popAndPush(
151151
CrowdActionDetailsRoute(
152152
crowdAction: widget.crowdAction,
153153
),

lib/presentation/shared_widgets/custom_app_bars/custom_appbar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CustomAppBar extends StatelessWidget implements PreferredSizeWidget {
4545
child: ElevatedButton(
4646
onPressed: () => context.router.pop(),
4747
style: ElevatedButton.styleFrom(
48-
foregroundColor: kPrimaryColor0,
48+
foregroundColor: kPrimaryColor,
4949
backgroundColor: Colors.white,
5050
shape: const CircleBorder(),
5151
tapTargetSize: MaterialTapTargetSize.padded,

0 commit comments

Comments
 (0)