基于Flutter開發(fā)框架的數(shù)據(jù)存儲訪問機(jī)制研究
2022年電子技術(shù)應(yīng)用第8期
倪紅軍,周巧扣
南京師范大學(xué)泰州學(xué)院,江蘇 泰州225300
摘要: 移動端應(yīng)用程序需要存儲與訪問的數(shù)據(jù)越來越多,而移動端設(shè)備的存儲空間有限,很難滿足用戶需要,在進(jìn)行移動端應(yīng)用程序開發(fā)時,選擇合適、高效的數(shù)據(jù)存儲與訪問機(jī)制受到普遍關(guān)注。針對Google推出的Flutter跨平臺移動開發(fā)框架提供的key-value鍵值對、File文件、SQLite數(shù)據(jù)庫和網(wǎng)絡(luò)4種數(shù)據(jù)存儲訪問機(jī)制,深入闡述了它們的內(nèi)在工作原理,給出了具體實現(xiàn)方法和實現(xiàn)代碼。最后,根據(jù)4種數(shù)據(jù)存儲訪問機(jī)制各自的特點和實際的應(yīng)用程序開發(fā)需求,分析了每種機(jī)制的應(yīng)用場景。
中圖分類號: TP399
文獻(xiàn)標(biāo)識碼: A
DOI:10.16157/j.issn.0258-7998.212008
中文引用格式: 倪紅軍,周巧扣. 基于Flutter開發(fā)框架的數(shù)據(jù)存儲訪問機(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.
文獻(xiàn)標(biāo)識碼: A
DOI:10.16157/j.issn.0258-7998.212008
中文引用格式: 倪紅軍,周巧扣. 基于Flutter開發(fā)框架的數(shù)據(jù)存儲訪問機(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 引言
隨著移動互聯(lián)網(wǎng)技術(shù)的快速發(fā)展,用戶對應(yīng)用程序的性能、體驗等各方面要求都有所增強(qiáng),例如需要在移動終端平臺上做數(shù)據(jù)緩存來縮短應(yīng)用程序的響應(yīng)時間、打開應(yīng)用程序后能夠及時連接網(wǎng)絡(luò)更新信息保證數(shù)據(jù)的即時性等。數(shù)據(jù)緩存主要涉及移動端設(shè)備的本地存儲和訪問的問題,連接網(wǎng)絡(luò)及時更新信息主要涉及移動端與網(wǎng)絡(luò)后臺數(shù)據(jù)服務(wù)器進(jìn)行數(shù)據(jù)交互的問題,在Flutter應(yīng)用開發(fā)中,這些問題是由Flutter開發(fā)框架的存儲訪問機(jī)制來解決的,開發(fā)者對該機(jī)制的深入理解和合理使用會直接影響應(yīng)用程序的開發(fā)效率和性能,因此對Flutter開發(fā)框架的數(shù)據(jù)存儲訪問機(jī)制進(jìn)行研究具有重要意義。
本文詳細(xì)內(nèi)容請下載:http://theprogrammingfactory.com/resource/share/2000004661。
作者信息:
倪紅軍,周巧扣
(南京師范大學(xué)泰州學(xué)院,江蘇 泰州225300)
此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。