![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Flutter
翊兮
这个作者很懒,什么都没留下…
展开
-
Dart-Flutter DateTime日期转换
1.日期转换成时间戳var now=new DateTime.now();print(now.millisecondsSinceEpoch); //单位毫秒,13位时间戳2.时间戳转换成日期var now=new DateTime.now();var a=now.millisecondsSinceEpoch; // 时间戳print(DateTime.fromMillisecondsSinceEpoch(a));3.创建指定时间DateTime assignDay = ne.原创 2020-06-02 15:43:27 · 4748 阅读 · 2 评论 -
Flutter入门之网络请求篇
本章主要介绍Flutter的网络请求相关操作Dio:略!!!Retrofit For Dart:开局添加如下依赖dependencies: retrofit: ^1.3.4 logger: ^0.9.1dev_dependencies: retrofit_generator: ^1.3.4+2 build_runner: ^1.10.0 json_serializable: ^3.2.0#注:json_serializable必须要添加 否则实体类不会自动生成原创 2020-05-28 17:30:17 · 803 阅读 · 2 评论