A widget which can be easily included in your app to add daily local notifications. Uses flutter_local_notifications package under the hood.
❗ 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
- add to app/build.gradle
- add app_icon.png to assets
- save button should be custom widget -> now saved automatically
- day buttons should be custom widgets (active/inactive)
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,
),
),
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