This commit is contained in:
lama137
2023-09-28 09:02:52 +02:00
parent 4c4dcc2654
commit 2f851bc630
7 changed files with 19 additions and 17 deletions

View File

@@ -7,12 +7,6 @@ class Database{
Database._init();
Future<Database> get database async {
if (_database != null) return _database!;
_database = await _initDB('database.db');
return _database!;
}
Future _createDB(Database database) async{
const integerPrimaryKeyAutoincrement = 'INTEGER PRIMARY KEY AUTOINCREMENT';

View File

@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'myApp.dart';
import '../myApp.dart';
void main() {
runApp(MyApp());
}
}

View File

@@ -8,4 +8,7 @@ class Note extends BaseEntity {
static String creationDate = BaseEntity.getCreationDate;
static String lastModificationDate = BaseEntity.getLastEditDate;
static String description = '';
Map<String, dynamic> toMap() {
return {'id': id, 'title': title, 'desc': description,'CreationDate': creationDate, 'lastM': lastModificationDate };
}
}

View File

@@ -1,5 +1,3 @@
import 'dart:ffi';
import 'package:flutter/material.dart';
import 'pages/testUI.dart';
import 'pages/TodayView.dart';

View File

@@ -10,10 +10,16 @@ class InboxView extends StatefulWidget {
class _InboxViewState extends State<InboxView> {
@override
Widget build(BuildContext context) {
return const Scaffold(
body: Center(
child: Icon(Icons.inbox),
)
return Scaffold(
appBar: AppBar(
title: const Text('Inbox'),
),
floatingActionButton: FloatingActionButton(
onPressed: () {
},
child: Icon(Icons.add),
),
);
}
}

View File

@@ -13,7 +13,9 @@ class _NotesViewState extends State<NotesView> {
return const Scaffold(
body: Center(
child: Icon(Icons.note),
)
),
);
}
}