logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

flutter 格林威治时间转化--例如 /Date(1635476150707)/

/Date(1635476150707)/转化成时间所谓时间戳,是指自格林威治时间1970年01月01日00时00分00秒(北京时间1970年01月01日08时00分00秒)起至现在的总秒数。有些情况下,后台可能会将所有的时间都转换成时间戳返回给我们前端,这是我们就需要将时间戳转换成时间,并将时间进行格式化。DateTimeFromInt(“/Date(1635476150707)/ ”)stat

#flutter
flutter 跨组件通信的方式EventBus

在组件之间如果有事件需要传递,一方面可以一层层来传递,另一方面我们也可以使用一个EventBus工具来完成。其实EventBus在Vue、React中都是一种非常常见的跨组件通信的方式:EventBus相当于是一种订阅者模式,通过一个全局的对象来管理;这个EventBus我们可以自己实现,也可以使用第三方的EventBus;这里我们直接选择第三方的EventBus:dependencies:eve

#flutter#react.js
flutter的NavigationBar使用

main() {runApp(MyApp());}class MyApp extends StatelessWidget {@overrideWidget build(BuildContext context) {return MaterialApp(home: AppPage(),theme: ThemeData(primaryColor: Colors.red),);}}class AppPa

#flutter
Could not find module ‘xxxxxxx‘ for target ‘arm64-apple-ios-simulator‘;

xcode12模拟器编译错误升级xcode到12.0.1后,模拟器编译出现下面错误。Could not find module ‘xxxxxxx’ for target ‘arm64-apple-ios-simulator’; found: x86_64-apple-ios-simulator, x86_64网上找了很多方法,都没法解决,后面通过研究终于解决,这里记录一下首先弄清楚概念xcode里

building for ios simulator, but the linked framework ‘‘xxxx“ was built for ios 解决

设置Xcode项目 -> Build Settings -> Build Options -> Validate Workspace = Yes 。for each target of the workspace。

flutter doctor显示[!] Android Studio

[!] Android StudioX android-studio-dir = $your-android-studio-directoryX Android Studio not found at $your-android-studio-directory使用如下命令设置一下即可解决flutter config --android-studio-dir=“android studio安装路径

安装androidstudio 报错:unable to access android sdk add-on list

unable to access android sdk add-on list 根本问题解决方案List item解决方案:利用 setup proxy(安装代理)“unable to access android sdk add-on list ”这个问题很多人都遇到过,百度以后基本都让你先屏蔽掉错误,基本不治根,其实可以用另一种办法,选下面的setup Proxy选项,然后在后面的界面中间,

#flutter#macos#bash
暂无文章信息