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.
|
import 'dart:ffi';
|
|
|
|
import 'package:get/get.dart';
|
|
import 'package:sqflite_pust_local_notification/db/db_helper.dart';
|
|
import 'package:sqflite_pust_local_notification/models/task_model.dart';
|
|
|
|
class TaskController extends GetxController {
|
|
@override
|
|
void onReady() {
|
|
super.onReady();
|
|
}
|
|
|
|
Future<int> addtask({TaskModel? task}) async {
|
|
return await DBHelper.insert(task);
|
|
}
|
|
}
|