Skip to content

Commit fd1a85b

Browse files
committed
Merge pull request #288 from mdgspace/temp
chore: changes flutter version
2 parents 1829b3b + 095b4ab commit fd1a85b

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: subosito/flutter-action@v2
1919
with:
2020
channel: "stable"
21-
flutter-version: 3.19.0
21+
flutter-version: 3.24.x
2222

2323
# Get flutter dependencies.
2424
- run: flutter pub get

lib/presentation/coupons/components/coupon_banner.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CouponBanner extends StatelessWidget {
1414
child: Row(
1515
children: [
1616
IconButton(
17-
onPressed: context.router.pop,
17+
onPressed: context.router.maybePop,
1818
icon: const Icon(
1919
Icons.arrow_back,
2020
color: Colors.white,

lib/presentation/feedback/components/feedback_banner.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class FeedbackBanner extends StatelessWidget {
1414
child: Row(
1515
children: [
1616
IconButton(
17-
onPressed: context.router.pop,
17+
onPressed: context.router.maybePop,
1818
icon: const Icon(
1919
Icons.arrow_back,
2020
color: Colors.white,

lib/presentation/feedback/feedback_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class FeedbackScreen extends StatelessWidget {
148148
textColor: Colors.white,
149149
backgroundColor: AppTheme.green,
150150
fontSize: 12.toAutoScaledFont);
151-
context.router.pop();
151+
context.router.maybePop();
152152
}
153153
if (state.error) {
154154
Fluttertoast.showToast(

lib/presentation/hostel_change/components/hostel_change_banner.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class HostelChangeBanner extends StatelessWidget {
1414
child: Row(
1515
children: [
1616
IconButton(
17-
onPressed: () => context.router.pop(),
17+
onPressed: () => context.router.maybePop(),
1818
icon: const Icon(
1919
Icons.arrow_back,
2020
color: Colors.white,

lib/presentation/login/components/oauth_webview.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class OAuthWebScreen extends StatelessWidget {
3434
onUpdateVisitedHistory: (_, uri, __) {
3535
if (uri != null) {
3636
if (uri.toString().contains('https://channeli.in/feed')) {
37-
context.router.pop();
37+
context.router.maybePop();
3838
//TODO: show dialog box
3939
// SnackBarUtils.showDark('Error', 'Permission Denied!');
4040
}
@@ -49,7 +49,7 @@ class OAuthWebScreen extends StatelessWidget {
4949
var params = url.split('?').last.split('&');
5050
if (params.first.contains('code')) {
5151
var code = params.first.split('=').last;
52-
context.router.pop(code);
52+
context.router.maybePop(code);
5353
}
5454

5555
return NavigationActionPolicy.CANCEL;

lib/presentation/notifications/components/notification_banner.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class NotificationBanner extends StatelessWidget {
1414
child: Row(
1515
children: [
1616
IconButton(
17-
onPressed: context.router.pop,
17+
onPressed: context.router.maybePop,
1818
icon: const Icon(
1919
Icons.arrow_back,
2020
color: Colors.white,

lib/presentation/profile/profile_view.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ class ProfileScreen extends StatelessWidget {
126126
ProfilePageBloc>()
127127
.add(
128128
const DeleteHostelChangeRequest());
129-
ctx.router.pop();
129+
ctx.router.maybePop();
130130
},
131131
child: const Text('Delete'),
132132
),
133133
TextButton(
134134
onPressed: () =>
135-
ctx.router.pop(),
135+
ctx.router.maybePop(),
136136
child: const Text('Cancel'),
137137
)
138138
],

lib/presentation/reset_password/components/reset_password_banner.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ResetPasswordBanner extends StatelessWidget {
1414
child: Row(
1515
children: [
1616
IconButton(
17-
onPressed: context.router.pop,
17+
onPressed: context.router.maybePop,
1818
icon: const Icon(
1919
Icons.arrow_back,
2020
color: Colors.white,

lib/presentation/reset_password/reset_password_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ResetPasswordScreen extends StatelessWidget {
4141
content: Text('Password reset successfully!'),
4242
backgroundColor: Colors.green,
4343
));
44-
context.router.pop();
44+
context.router.maybePop();
4545
}
4646
},
4747
builder: (context, state) {

0 commit comments

Comments
 (0)