Skip to content

A package for easily setting up a daily notification widget in Flutter

License

Notifications You must be signed in to change notification settings

novas1r1/daily_local_notifications

Repository files navigation

Daily Local Notifications - WIP!

style: very good analysis License: MIT

A widget which can be easily included in your app to add daily local notifications. Uses flutter_local_notifications package under the hood.

Current State

goal

Installation 💻

❗ In order to start using Daily Local Notifications you must have the Flutter SDK installed on your machine.

Add daily_local_notifications to your pubspec.yaml:

dependencies:
  daily_local_notifications:

Install it:

flutter packages get

Setup

  • add to app/build.gradle
  • add app_icon.png to assets

TODO

  • save button should be custom widget -> now saved automatically
  • day buttons should be custom widgets (active/inactive)

Example

DailyLocalNotification(
  reminderTitleText: Text('Reminder Title'),
  reminderRepeatText: Text('Repeat'),
  reminderDailyText: Text('Daily'),
  dayActiveColor: Colors.deepPurple,
  dayInactiveColor: Colors.deepPurple.withOpacity(0.3),
  timeNormalTextStyle:
      const TextStyle(fontSize: 24, color: Colors.grey),
  timeSelectedTextStyle: TextStyle(
    fontSize: 24,
    color: Colors.deepPurple,
    fontWeight: FontWeight.bold,
  ),
),

Running Tests 🧪 (NOT YET :D)

For first time users, install the very_good_cli:

dart pub global activate very_good_cli

To run all unit tests:

very_good test --coverage

To view the generated coverage report you can use lcov.

# Generate Coverage Report
genhtml coverage/lcov.info -o coverage/

# Open Coverage Report
open coverage/index.html

About

A package for easily setting up a daily notification widget in Flutter

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages