Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[auth] Auth banner #4842

Merged
merged 7 commits into from
Jan 27, 2025
Merged

[auth] Auth banner #4842

merged 7 commits into from
Jan 27, 2025

Conversation

AmanRajSinghMourya
Copy link
Contributor

No description provided.


Future<void> init() async {
_prefs = await SharedPreferences.getInstance();
await setAppInstallTime();
Copy link
Member

@ua741 ua741 Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this method.

int getAppInstalledTime() {
    if (_prefs.containsKey(kAppInstallTime)) {
      return _prefs.getInt(kAppInstallTime)!;
    } else {
      int installedTimeinMillis = DateTime.now().millisecondsSinceEpoch;
      _prefs.setInt(kAppInstallTime, installedTimeinMillis).ignore();
     return installedTimeinMillis;
    }
  }

sectionSpacing,
const BannerWidget(
text: "Support <bold-green>ente</bold-green>",
subText: "Give us a star on Github",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's extract strings for l10n?

@ua741 ua741 merged commit 5204fdc into main Jan 27, 2025
2 checks passed
@ua741 ua741 deleted the auth_banner branch January 27, 2025 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants