mirrored_repositories/Pillpal/lib
import 'package:flutter/material.dart';
import 'package:pill_pal/entities/medicine.dart';

Future<void> addDatabaseDumpData(medicineDao, reminderDao) async {

  await medicineDao.deleteAllMedicine();
  final med = Medicine(id:12, name: 'Paracetamol', pillColor: Colors.amber,
      //tags: ['After Breakfast', 'One hell of a very very long tag', 'Important!'],
      tags: ['After Breakfast'],
      desc: 'Paracetamol is a common painkiller used to treat aches and pain. '
          'It can also be used to reduce a high temperature.\n'
          ' It\'s available combined with other painkillers and anti-sickness medicines. '
          'It\'s also an ingredient in a wide range of cold and flu remedies.',
      supplyCurrent: 5,
      supplyMin: 3
  );
  await medicineDao.insertMedicine(med);
  await medicineDao.insertMedicine(Medicine(name: 'a'));
  await medicineDao.insertMedicine(Medicine(name: 'b'));
  await medicineDao.insertMedicine(Medicine(name: 'c'));
  await medicineDao.insertMedicine(Medicine(name: 'd'));

  var dateTime = new DateTime.now();
  dateTime = DateTime(dateTime.year, dateTime.month, dateTime.day, dateTime.hour, dateTime.minute);

  await reminderDao.deleteAllReminders();
  // final reminder = Reminder(medicineId: 12,medicineName: 'Paracetamol' ,label: 'first reminder', dateTime: dateTime);
  //
  // await reminderDao.insertReminder(reminder);
  // final reminder2 = Reminder(medicineId: 12,medicineName: 'Paracetamol',  day: dateTime.weekday, label: 'cyclic reminder', repeated: true, dateTime: dateTime);
  // await reminderDao.insertReminder(reminder2);
  print('added');


}