《電子技術(shù)應(yīng)用》
您所在的位置:首頁(yè) > 可編程邏輯 > 設(shè)計(jì)應(yīng)用 > 基于Flutter開(kāi)發(fā)框架的數(shù)據(jù)存儲(chǔ)訪(fǎng)問(wèn)機(jī)制研究
基于Flutter開(kāi)發(fā)框架的數(shù)據(jù)存儲(chǔ)訪(fǎng)問(wèn)機(jī)制研究
2022年電子技術(shù)應(yīng)用第8期
倪紅軍,周巧扣
南京師范大學(xué)泰州學(xué)院,江蘇 泰州225300
摘要: 移動(dòng)端應(yīng)用程序需要存儲(chǔ)與訪(fǎng)問(wèn)的數(shù)據(jù)越來(lái)越多,而移動(dòng)端設(shè)備的存儲(chǔ)空間有限,很難滿(mǎn)足用戶(hù)需要,在進(jìn)行移動(dòng)端應(yīng)用程序開(kāi)發(fā)時(shí),選擇合適、高效的數(shù)據(jù)存儲(chǔ)與訪(fǎng)問(wèn)機(jī)制受到普遍關(guān)注。針對(duì)Google推出的Flutter跨平臺(tái)移動(dòng)開(kāi)發(fā)框架提供的key-value鍵值對(duì)、File文件、SQLite數(shù)據(jù)庫(kù)和網(wǎng)絡(luò)4種數(shù)據(jù)存儲(chǔ)訪(fǎng)問(wèn)機(jī)制,深入闡述了它們的內(nèi)在工作原理,給出了具體實(shí)現(xiàn)方法和實(shí)現(xiàn)代碼。最后,根據(jù)4種數(shù)據(jù)存儲(chǔ)訪(fǎng)問(wèn)機(jī)制各自的特點(diǎn)和實(shí)際的應(yīng)用程序開(kāi)發(fā)需求,分析了每種機(jī)制的應(yīng)用場(chǎng)景。
中圖分類(lèi)號(hào): TP399
文獻(xiàn)標(biāo)識(shí)碼: A
DOI:10.16157/j.issn.0258-7998.212008
中文引用格式: 倪紅軍,周巧扣. 基于Flutter開(kāi)發(fā)框架的數(shù)據(jù)存儲(chǔ)訪(fǎng)問(wèn)機(jī)制研究[J].電子技術(shù)應(yīng)用,2022,48(8):107-110,116.
英文引用格式: Ni Hongjun,Zhou Qiaokou. Study of data storage access mechanism based on Flutter development framework[J]. Application of Electronic Technique,2022,48(8):107-110,116.
Study of data storage access mechanism based on Flutter development framework
Ni Hongjun,Zhou Qiaokou
Nanjing Normal University Taizhou College,Taizhou 225300,China
Abstract: Mobile applications need to store and access more and more data, and the storage space of mobile devices is limited, it is difficult to meet the needs of users. When developing mobile applications, the selection of appropriate and efficient data storage and access mechanism is widely concerned. In view of the four data storage and access mechanisms provided by Google′s Flutter cross- platform mobile development framework, such as key-value pair, File files, SQLite database and network, this paper explains their inner working principles in depth, and gives the specific implementation methods and implementation codes. Finally, according to the characteristics of the four data storage access mechanisms and the actual application development requirements, the application scenarios of each mechanism are analyzed.
Key words : Flutter;data storage;implementation method;application scenarios

0 引言

    隨著移動(dòng)互聯(lián)網(wǎng)技術(shù)的快速發(fā)展,用戶(hù)對(duì)應(yīng)用程序的性能、體驗(yàn)等各方面要求都有所增強(qiáng),例如需要在移動(dòng)終端平臺(tái)上做數(shù)據(jù)緩存來(lái)縮短應(yīng)用程序的響應(yīng)時(shí)間、打開(kāi)應(yīng)用程序后能夠及時(shí)連接網(wǎng)絡(luò)更新信息保證數(shù)據(jù)的即時(shí)性等。數(shù)據(jù)緩存主要涉及移動(dòng)端設(shè)備的本地存儲(chǔ)和訪(fǎng)問(wèn)的問(wèn)題,連接網(wǎng)絡(luò)及時(shí)更新信息主要涉及移動(dòng)端與網(wǎng)絡(luò)后臺(tái)數(shù)據(jù)服務(wù)器進(jìn)行數(shù)據(jù)交互的問(wèn)題,在Flutter應(yīng)用開(kāi)發(fā)中,這些問(wèn)題是由Flutter開(kāi)發(fā)框架的存儲(chǔ)訪(fǎng)問(wèn)機(jī)制來(lái)解決的,開(kāi)發(fā)者對(duì)該機(jī)制的深入理解和合理使用會(huì)直接影響應(yīng)用程序的開(kāi)發(fā)效率和性能,因此對(duì)Flutter開(kāi)發(fā)框架的數(shù)據(jù)存儲(chǔ)訪(fǎng)問(wèn)機(jī)制進(jìn)行研究具有重要意義。




本文詳細(xì)內(nèi)容請(qǐng)下載:http://ihrv.cn/resource/share/2000004661。




作者信息:

倪紅軍,周巧扣

(南京師范大學(xué)泰州學(xué)院,江蘇 泰州225300)




wd.jpg

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。