YuYouShui_Branch
黎超凡 2 years ago
parent 021b85d96e
commit 10515884ae

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"sqflite","dependencies":[]}],"date_created":"2023-11-07 20:45:54.793320","version":"3.13.3"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"sqflite","dependencies":[]}],"date_created":"2023-11-07 23:02:18.318652","version":"3.13.3"}

File diff suppressed because one or more lines are too long

@ -1,4 +1,4 @@
#Tue Nov 07 20:46:21 CST 2023
#Tue Nov 07 23:02:54 CST 2023
base.0=E\:\\travelguideProject\\src\\build\\app\\intermediates\\dex\\debug\\mergeDexDebug\\classes.dex
renamed.0=classes.dex
path.0=classes.dex

@ -1 +1 @@
e0f71fef707f678c6e35233278c63f1551ba306e
01ced3eca2ee439bb1b0cc0c9f7ebaa1c3547682

@ -18,34 +18,19 @@ void main() async{
//
final database = await MyDatabase.initDatabase();
Future<void> insertSampleData() async {
Future<void> insertCollectionInfoData() async {
final databasePath = await getDatabasesPath();
final path = join(databasePath, 'travelguide.db');
final database = await openDatabase(path);
//
await database.insert('CollectionInfo', {
'CollectionID': 1,
'MuseumName': '天津市博物馆',
'CollectionName': '清末 翡翠缠枝菊花纹环耳扁盖瓶',
'CollectionDetail':
' 走进天津博物馆“耀世奇珍”展厅,展厅中央的独立展柜中一对清末翡翠缠枝菊花纹环耳扁盖瓶耀眼夺目,'
'可谓是清末玉雕中材质精良、做工精湛的佳作。\n'
' 观众最大看点是此瓶由一块大的翡翠料抛开制成一对高42.8厘米口径9.6×5.4厘米。'
'淡翠绿色,间少许淡粉色,色泽均匀柔和,美丽晶莹。'
'此瓶另一看点是工艺高超,雕琢精湛。盖有桃形钮,盖身及瓶两侧镂雕缠枝菊花纹,'
'颈肩镂空花耳上各套一活环,瓶身光素,抛光匀细,椭圆圈足,足下附座,上阴线刻兽面纹。'
'尤其是对花、叶纹饰采用镂雕技法,雕琢更为精细,颇具阿拉伯地域风格,'
'这与翡翠晶莹璀璨的质感交相辉映,为这对高贵典雅的大瓶又增添了一种灵动之感。\n'
' 翡翠以其深稳凝重、变幻莫测的翠绿色和温润柔美的特性受到举国上下的喜爱,'
'特别是以慈禧为代表的统治阶层的青睐,传说慈禧宁要翡翠饰物而不要金刚石头饰贡品,'
'官员们则投其所好,选上等的翡翠进奉,以求名利,因此翡翠又有“皇家玉”、“玉王”之称。'
'天津博物馆展出的这对翡翠大瓶用料为缅甸翡翠且成对保存至今非常难得。\n'
});
await database.close();
}
insertSampleData();
insertCollectionInfoData();
//
Future<void> deleteCollectionInfoData() async {
@ -54,7 +39,7 @@ void main() async{
final database = await openDatabase(path);
await database.rawDelete(
'DELETE FROM ** WHERE **ID = **'
'DELETE FROM CollectionInfo WHERE CollectionID = **'
);
await database.close();

Loading…
Cancel
Save