基于Flutter开发框架的数据存储访问机制研究
2022年电子技术应用第8期
倪红军,周巧扣
南京师范大学泰州学院,江苏 泰州225300
摘要: 移动端应用程序需要存储与访问的数据越来越多,而移动端设备的存储空间有限,很难满足用户需要,在进行移动端应用程序开发时,选择合适、高效的数据存储与访问机制受到普遍关注。针对Google推出的Flutter跨平台移动开发框架提供的key-value键值对、File文件、SQLite数据库和网络4种数据存储访问机制,深入阐述了它们的内在工作原理,给出了具体实现方法和实现代码。最后,根据4种数据存储访问机制各自的特点和实际的应用程序开发需求,分析了每种机制的应用场景。
中圖分類號: TP399
文獻標識碼: A
DOI:10.16157/j.issn.0258-7998.212008
中文引用格式: 倪紅軍,周巧扣. 基于Flutter開發框架的數據存儲訪問機制研究[J].電子技術應用,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.
文獻標識碼: A
DOI:10.16157/j.issn.0258-7998.212008
中文引用格式: 倪紅軍,周巧扣. 基于Flutter開發框架的數據存儲訪問機制研究[J].電子技術應用,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 引言
隨著移動互聯網技術的快速發展,用戶對應用程序的性能、體驗等各方面要求都有所增強,例如需要在移動終端平臺上做數據緩存來縮短應用程序的響應時間、打開應用程序后能夠及時連接網絡更新信息保證數據的即時性等。數據緩存主要涉及移動端設備的本地存儲和訪問的問題,連接網絡及時更新信息主要涉及移動端與網絡后臺數據服務器進行數據交互的問題,在Flutter應用開發中,這些問題是由Flutter開發框架的存儲訪問機制來解決的,開發者對該機制的深入理解和合理使用會直接影響應用程序的開發效率和性能,因此對Flutter開發框架的數據存儲訪問機制進行研究具有重要意義。
本文詳細內容請下載:http://www.tom3567.com/resource/share/2000004661。
作者信息:
倪紅軍,周巧扣
(南京師范大學泰州學院,江蘇 泰州225300)

此內容為AET網站原創,未經授權禁止轉載。
