Skip to content

Commit

Permalink
Fix popup warning in activity page
Browse files Browse the repository at this point in the history
  • Loading branch information
guyluz11 committed Nov 20, 2024
1 parent 1d69076 commit b25899e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class _NotificationPopupState extends State<_NotificationPopup> {
height: 280,
child: PageEnclosureMolecule(
title: 'Notification Permission',
expendChild: false,
subTitle:
'Please approve the permission inorder for the app to work properly',
child: CardAtom(
Expand Down
5 changes: 4 additions & 1 deletion lib/presentation/pages/activity_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ class _ActivityPageState extends State<ActivityPage>
false;
final bool notificationGranted =
await NotificationsController.instance.isPermissionGranted();
if (notificationPermissionRequested || notificationGranted) {
if (
// TODO: Remove
// notificationPermissionRequested ||
notificationGranted) {
return;
}
await Future.delayed(const Duration(seconds: 5));
Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/pages/contribute_us_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ContributeUsPage extends StatelessWidget {
children: [
const SizedBox(width: double.infinity),
TextAtom(
'Open App',
'Open Source App',
style: Theme.of(context)
.textTheme
.displaySmall!
Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/pages/convincing_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:infinite_horizons/presentation/atoms/atoms.dart';
import 'package:infinite_horizons/presentation/core/theme_data.dart';
import 'package:infinite_horizons/presentation/molecules/molecules.dart';
import 'package:infinite_horizons/presentation/pages/contribute_us_page.dart';
import 'package:infinite_horizons/presentation/pages/pages.dart';

class ConvincingPage extends StatelessWidget {
void continueOnPressed(BuildContext context) => Navigator.of(context).push(
Expand Down

0 comments on commit b25899e

Please sign in to comment.