Flutter combat: add, delete, check and modify function sample code

I know that the Flutter SDK of the Cloud has entered the testing phase, and I will be able to meet you soon.

The use of the Flutter SDK is relatively simple and easy to understand. For example, to add, delete, check and modify a data table, after specifying the data table, perform corresponding operations on the data items, such as adding (create), searching (get), modifying (update) and Delete.

The following is a demonstration of the addition, deletion, and modification functions of Flutter:

 TableObject product = new TableObject('product'); // 获取名为 product 的数据表

 // 新增数据
 TableRecord record = product.create(); // 创建一条空白记录

 // 为属性字段赋值
 record.set('name', '知晓云 flutter sdk'); // 对 name 字段进行赋值
 record.set('version', '1.0'); // 对 version 字段进行赋值

 // 将数据保存到服务器
 record = await record.save(); // 保存

 // 从服务器获取一条数据
 TableRecord record = await product.get(record.id);

 // 更新数据
 record.set('version', '1.1');
 await record.update();

 // 删除数据
 await product.delete(recordId: record.id);

Currently known functions supported by Cloud Flutter SDK are as follows:

  • data sheet
  • user
  • content library
  • document
  • Cloud function call
  • get server time
  • local storage

After the Flutter SDK is officially launched, we will also output practical teaching videos, so stay tuned!

In addition, we have opened the internal test application channel in advance. Click here or scan the QR code of the card below to apply. Developers who have obtained the internal test qualification can not only experience new functions first, but also have the opportunity to communicate with Zhiyun engineers. Communicate at close range, and your suggestions after use can also get faster feedback and implementation.

Know Cloud Flutter SDK

Two-thirds of 2020 has passed, and the good news is that the upcoming Mid-Autumn Festival & National Day holiday and the recent update content of Zhixiaoyun, in addition to the upcoming Flutter SDK, there are the following updates.

1. Support the QQ applet to subscribe to news, and the news ability has taken a step forward.
Different from WeChat subscription messages, QQ applet subscription messages not only support "one-time subscription", but also "long-term subscription". If the user has previously agreed to authorize long-term subscription, there will be no more pop-up inquiries. >>> View development documents

2. iOS and Android SDKs support Weibo login.

If you have other needs, you can let us know by leaving a message at the end of the article, submitting your needs on the product roadmap of Knowing Cloud , or adding customer service WeChat (minsupport3), etc. Thank you very much for your continued support~

Guess you like

Origin blog.csdn.net/cloud_minapp/article/details/108401499