Updates from idk when...

This commit is contained in:
Nathan Anderson
2023-08-17 13:34:30 -06:00
parent 6fae83674b
commit 1d1b5f0620
18 changed files with 614 additions and 161 deletions
+3 -4
View File
@@ -69,7 +69,7 @@ class _SharedNotesScreenState extends ConsumerState<SharedNotesScreen> {
children: [
FittedBox(
child: Text(note.title,
style: TextStyle(fontSize: 20))),
style: const TextStyle(fontSize: 20))),
Flexible(
child: Text(
note.content.length > 80
@@ -183,7 +183,6 @@ class _NoteBottomSheetState extends ConsumerState<NoteBottomSheet> {
@override
Widget build(BuildContext context) {
final screen = BuildMedia(context).size;
final bottomInset = MediaQuery.of(context).viewInsets.bottom;
return Container(
width: screen.width,
decoration: BoxDecoration(
@@ -232,11 +231,11 @@ class _NoteBottomSheetState extends ConsumerState<NoteBottomSheet> {
if (widget.index == null) {
res = await ref
.read(apiProvider)
.post('shared_notes', data: newNote.toJson());
.post('shared_note', data: newNote.toJson());
} else {
res = await ref
.read(apiProvider)
.put('shared_notes', data: newNote.toJson());
.put('shared_note', data: newNote.toJson());
}
if (res.data != null && res.data['success']) {
if (widget.index == null) {