![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
dart
ubuntu22.04
这个作者很懒,什么都没留下…
展开
-
dart后端之mysql
添加mysql支持 在pubspec.yaml里添加 dependencies: mysql1: ^0.19.2 import 'package:mysql1/mysql1.dart'; Future<int> calculate() async { var settings = new ConnectionSettings( host: 'localhost', port: 3306, user: 'root', password: 'root', db: '原创 2021-05-10 11:24:05 · 597 阅读 · 0 评论 -
ubuntu dart后端之aqueduct
安装dart pub global activate aqueduct 然后显示 Pub installs executables into $HOME/.pub-cache/bin, which is not on your path. You can fix that by adding this to your shell’s config file (.bashrc, .bash_profile, etc.): vim ~/.profile export PATH="$PATH":"$HOME/.原创 2021-04-30 15:17:04 · 428 阅读 · 1 评论 -
dart 读取处理bytes
首先引用 import 'dart:io'; import 'package:path/path.dart'; 在代码里使用 var file = "路径/main.xlsx"; var bytes = File(file).readAsBytesSync();原创 2020-10-13 15:48:43 · 1335 阅读 · 0 评论 -
记录一些我的flutter开发经验
关于异步get请求(async) pubspec.yaml dependencies: dio: any json_annotation: ^0.2.3 dev_dependencies: build_runner: ^0.9.0 json_serializable: ^0.5.4 新建一个用于连接的类 import 'dart:convert'; import 'package:dio/dio...原创 2020-04-13 10:14:03 · 151 阅读 · 0 评论 -
Could not find a file named "pubspec.yaml" in "/home/flutter".
我用的操作系统是ubuntu,使用的语言是dart pub run aqueduct Could not find a file named "pubspec.yaml" in "/home/flutter". 其实在项目里运行pub run aqueduct,就没问题了原创 2020-04-07 13:33:36 · 5711 阅读 · 0 评论 -
ubuntu使用dart,Creation failed, path = '/usr/local/sbin:' (OS Error: Permission denied, errno = 13)错误
我安装dartsdk又删掉,后来使用flutter中的dartsdk, 在执行pub global activate aqueduct 出现了这个错误 Creation failed, path = '/usr/local/sbin:' (OS Error: Permission denied, errno = 13) 当然执行pub get也出现同样错误提示 ...原创 2020-04-07 13:28:58 · 544 阅读 · 0 评论 -
dart后端学习之stagehand
配置环境 我是下载的flutter sdk做dart环境 然后在win10环境变量里,添加PATH: D:\development\flutter\bin\cache\dart-sdk\bin原创 2020-03-19 14:57:52 · 346 阅读 · 0 评论