This is flutter sqlite local notification project. User can add task.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
391 B

2 years ago
  1. import 'dart:ffi';
  2. import 'package:get/get.dart';
  3. import 'package:sqflite_pust_local_notification/db/db_helper.dart';
  4. import 'package:sqflite_pust_local_notification/models/task_model.dart';
  5. class TaskController extends GetxController {
  6. @override
  7. void onReady() {
  8. super.onReady();
  9. }
  10. Future<int> addtask({TaskModel? task}) async {
  11. return await DBHelper.insert(task);
  12. }
  13. }