Added edit bookmark

This commit is contained in:
Juan Gilsanz Polo
2024-02-27 15:44:07 +01:00
parent 8a968be6e0
commit 2c59310f94
14 changed files with 161 additions and 72 deletions

View File

@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import 'package:linkdy/constants/enums.dart';
import 'package:linkdy/models/data/check_bookmark.dart';
class AddBookmarkModel {
class BookmarkFormModel {
final TextEditingController urlController;
String? urlError;
CheckBookmark? checkBookmark;
@@ -15,8 +15,9 @@ class AddBookmarkModel {
String? tagsError;
List<String> tags;
final TextEditingController notesController;
int? editBookmarkId;
AddBookmarkModel({
BookmarkFormModel({
required this.urlController,
this.urlError,
this.checkBookmark,
@@ -28,5 +29,6 @@ class AddBookmarkModel {
this.tagsError,
required this.tags,
required this.notesController,
this.editBookmarkId,
});
}