IDK
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'myApp.dart';
|
||||
import '../myApp.dart';
|
||||
|
||||
void main() {
|
||||
runApp(MyApp());
|
||||
}
|
||||
}
|
||||
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import 'dart:ffi';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'pages/testUI.dart';
|
||||
import 'pages/TodayView.dart';
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,9 @@ class _NotesViewState extends State<NotesView> {
|
||||
return const Scaffold(
|
||||
body: Center(
|
||||
child: Icon(Icons.note),
|
||||
)
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user