Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LMingJian committed Jan 15, 2024
1 parent 0b4d914 commit d0a0ca8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@

## 设计思路

用户通过应用,开启摄像头,对准条形码进行扫描。然后程序展示扫描结果,用户可以对结果标识价格,以便在下一次扫描到同一条形码时展示扫描结果和所标识的价格数据。
- 首先用户会通过应用,开启摄像头,然后对准条形码进行扫描。
- 接着程序搜索数据库,若条形码在之前被扫过并登记过价格,则展示对应的商品名称和价格;若数据库搜索没有结果,则用户可以对扫码结果进行登记,记录价格,以便在下一次扫描到同一条形码时展示。
- 为了数据的可移植,应用使用 SQLite 进行存储,对应的 db 文件存放在 `/0/Android/com.xxx.xxx/files` 中。

为了数据的持久存储和可移植,应用会使用 SQLite 进行存储,对应的 db 文件会被存放在路径 `/0/Android/com.xxx.xxx/files` 中。
## 注意

- 项目支持的最低 Android SDK 为 21,请在运行代码前修改 `.\android\app\build.gradle` 里的 `minSdkVersion` 为 21。
- 项目使用 Flutter 3.10.0
- 项目使用 Dart 3.0.0

## 图示

<img src=".\picture\1.png" alt="1" style="zoom:50%;" /> <img src=".\picture\2.png" alt="2" style="zoom:50%;" /> <img src=".\picture\3.png" alt="3" style="zoom:50%;" />
Binary file added picture/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added picture/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added picture/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d0a0ca8

Please sign in to comment.