05 2019 档案
摘要:import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'dart:ui'; main()=>runApp(MaterialApp( home: MyApp(), )); class MyApp extends Statef...
阅读全文
摘要:import 'dart:io'; import 'dart:convert'; import 'package:path/path.dart'; import 'package:web_socket_channel/io.dart'; //https://dldir1.qq.com/qqfile/qq/PCQQ9.1.3/25323/QQ9.1.3.25323.exe String...
阅读全文
摘要:Flutter Platform Channels(一) https://www.jianshu.com/p/33ac774f99b1 https://www.jianshu.com/p/c1e2062cf4f7
阅读全文
摘要:whois_handler.dart main.dart
阅读全文
摘要:https://www.v2ex.com/t/567014 跑 aria2 的机器配置比较低,是 j1900+4G 的小机器,系统是 ubuntu18.04 ,所有的任务都是 bt 下载。aria2 的版本是 1.33.1 设置了同时下载的任务最大数量为 30,但经常出现有很多任务一直在等待,但是正
阅读全文
摘要:https://blog.csdn.net/little_story/article/details/86543220 https://blog.csdn.net/u011728347/article/details/80664643 https://blog.csdn.net/weixin_342
阅读全文
摘要:https://askubuntu.com/questions/790633/the-o-parameter-in-aria2c-cant-rename-the-downloaded-file You are out of luck when attempting to rename .torren
阅读全文
摘要:https://stackoverflow.com/questions/54300081/flutter-popupmenu-on-long-press The OP and the First Answerer bypassed the original problem using PopupMe
阅读全文
摘要:Linux命令行下如何终止当前程序? 快捷键:
阅读全文
摘要:https://github.com/dart-lang/web_socket_channel/issues/38 yes, my workaround is to create a WebSocket directly. Something like: Then I wrap this in a
阅读全文
摘要:import 'dart:io';import 'dart:convert';main()async{ File a = File('C:\\aria2\\1.txt'); var c = read(a); print(c); var d = utf8.decode(c); print(d);// await a.writeAsBytes(c+'\ntest');// print(r...
阅读全文
摘要:https://github.com/q3aql/aria2-static-builds https://github.com/aria2/aria2/issues/781
阅读全文
摘要:aria2c --conf-path=aria2.conf mine: 下面的懒得删了, from internet below, another one:
阅读全文
摘要:https://blog.csdn.net/suyimin2010/article/details/80552392 https://flutterchina.club/cookbook/networking/web-sockets/ https://www.jianshu.com/p/8f4ddf
阅读全文
摘要:https://stackoverflow.com/questions/52670255/flutter-json-rpc-2-implementation import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:json_rpc_2/json_rpc_2.dart' as json_rpc;...
阅读全文
摘要:WRITE_EXTERNAL_STORAGE
阅读全文
摘要:https://github.com/aria2/aria2/issues/361 ... and also make sure that aria2 was built with HTTPS support.Run aria2c -v and check Libraries:. If you do
阅读全文
摘要:https://www.jianshu.com/p/8124b5b6ef95https://quan.ithome.com/0/331/853.htmhttp://www.360doc.com/content/18/0707/23/56810834_768650003.shtml ***** htt
阅读全文
摘要:import 'package:flutter/material.dart'; import 'dart:io'; import 'dart:async'; import 'package:rxdart/rxdart.dart'; import 'package:path_provider/path_provider.dart'; import 'package:path/path.dart';...
阅读全文
摘要:https://stackoverflow.com/questions/20201067/ffmpeg-executable-chmod-permission Your Android app must have permissions to read and write to storage, i
阅读全文
摘要:Possibly you placed it on your sdcard -- which is mounted with the noexec flag. You either need to move it into the phone's internal storage, or run i
阅读全文
摘要:import 'package:flutter/material.dart'; import 'package:sensors/sensors.dart'; import 'package:permission_handler/permission_handler.dart'; import 'dart:async'; import 'dart:math'; main()=>runAp...
阅读全文
摘要:import io,,,,,,, from https://pub.dev/packages/large_file_copy
阅读全文
摘要:import 'package:flutter/material.dart'; import 'dart:io'; import 'dart:async'; import 'package:rxdart/rxdart.dart'; import 'package:path_provider/path_provider.dart'; import 'package:path/path.dart...
阅读全文
摘要:https://stackoverflow.com/questions/12682269/how-do-you-run-an-interactive-process-in-dart The test below attempts to run the less pager command and r
阅读全文
摘要:main(){ List a = [ 0,2,0,2, 0,0,4,4, 2,0,4,0, 2,4,0,2 ]; List temp = right(a); //change to others later, List result = [[],[],[],[]]; for(int i=0; i<16; i++){ resu...
阅读全文
摘要:child: GestureDetector( onHorizontalDragEnd: (endDetails){ double velocity = endDetails.primaryVelocity; if (velocity < 0) { ...
阅读全文
摘要:https://medium.com/flutter-community/a-deep-dive-into-draggable-and-dragtarget-in-flutter-487919f6f1e4 This article is the sixth in a series of articl
阅读全文
摘要:方法一 使用alignment配合FractionalOffset:对于FractionalOffset的参数,我是这么理解的:相当于比例,第一个代表横向的权重,第二个代表竖向的权重,横0.9代表在横向十分之九的位置,竖0.1代表在竖向十分之一的位置 方法二 使用定位组件Positioned,其中的
阅读全文
摘要:return Scaffold( appBar: AppBar( elevation: 0.0, title: new Text("登陆"), ), resizeToAvoidBottomPadding: false, //输入框抵住键盘);
阅读全文
摘要:https://www.jianshu.com/p/d68278d19f79
阅读全文
摘要:https://medium.com/@diegoveloper/flutter-widget-size-and-position-b0a9ffed9407 I have read many questions about how we can obtain the dimensions or po
阅读全文
摘要:并行动画 当多个动画定义同时指向某个组件,并使用动画控制器启动时,就产生了并行动画(Parallel Animation)。例如我们可以让一个组件: 移动的同时改变大小 旋转的同时边界颜色闪烁 圆形图片模糊的同时形状越来越方 总之,掌握了动画原理以后我们知道,只要能将一个动画抽象值与一个组件的某个外
阅读全文
摘要:import 'package:flutter/material.dart'; import 'dart:io'; import 'dart:async'; main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { ...
阅读全文
摘要:class BuilderPage extends StatefulWidget { @override State createState() { // TODO: implement createState return BuilderPageState(); } } class BuilderPageState extends State with Sin...
阅读全文
摘要:AnimatedCrossFade让俩个子widget 交替淡入淡出。 AnimatedBuilder构建动画最常用的控件。AnimatedBuilder 由 animation,child,builder 三个参数。 当创建一个AnimationController时,需要传递一个vsync参数,
阅读全文
摘要:Flutter AnimatedBuilder 创建动画的widget Key key, @required Listenable animation, @required this.builder, this.child, animation:Animationcontroller //动画 ch
阅读全文
摘要:https://juejin.im/post/5cd91de4518825686b120921 https://juejin.im/entry/5b64292be51d451995676398
阅读全文
摘要:https://www.jianshu.com/p/2ea01ae02ffe Flutter:教你用CustomPaint画一个自定义的CircleProgressBar paint_page.dart paint.dart
阅读全文
摘要:最近在学习中需要用到裁剪图片,记录一下解决方法 思路: 使用canvas的drawImageRect()方法,对Image进行裁剪,这里的Image需要 'dart:ui' 库中的Image。 1. canvas的drawImageRect()方法 ①第一个参数是'dart:ui' 库中的Image
阅读全文
摘要:实现原理很简单 ,自己绘制一个裁剪框, 根据手势 选择到适合的位置 ,然后将选中的区域绘制到一个新的图片上,从而完成裁剪 裁剪框的绘制 这里我是根据点来连线的 因为每个点上会绘制一个拉伸的标识符 源图片的绘制 ,根据屏幕大小 把图片缩放成适合长宽比例的图片 绘制完后 就是根据手势的偏移量来计算裁剪框
阅读全文
摘要:A Flutter Sound Pool for playing short media files. Sound Pool caches audio tracks in memory. This can be useful in following scenarios: lower latency
阅读全文
摘要:https://stackoverflow.com/questions/43813386/how-to-play-a-custom-sound-in-flutter Thanks for checking out Flutter! Flutter SDK today (as of May 5, 20
阅读全文
摘要:Image是一个用于展示图片的组件。支持 JPEG、PNG、GIF、Animated GIF、WebP、Animated WebP、BMP 和 WBMP 等格式。 Image 有许多的静态函数: new Image.asset - 用于从资源目录的显示图片。 new Image.network -
阅读全文
摘要:https://stackoverflow.com/questions/21744480/clone-a-list-map-or-set-in-dart 2 2 2 For lists and sets, I typically use List<String> clone = []..addAll
阅读全文
摘要:StreamSubscription sc = StreamSubscription(); Stream s = Stream(); sc.addStream(s); var bs = sc.stream.asBroadcastStream(); // this works
阅读全文
摘要:stack 下套container, 发现最大的显示,小的都没显示, 把所有都套个POSITIONED, 都正常显示了.
阅读全文
摘要:https://cloud.tencent.com/developer/article/1188468 2. mounted is true 当这个Widget调用createState 后, 会将buildContext 传入。 BuildContext 内有自己在widget tree上相关的信
阅读全文
摘要:https://www.cnblogs.com/hupo376787/p/10290840.html 上一篇文章说到 Flutter - 自动生成Android & iOS图标 通过flutter_launcher_icons 可以一键生成所有的Icon 到此基本什么问题也没有,如果你用ios设备和
阅读全文
摘要:https://blog.csdn.net/weixin_33738578/article/details/87998565 http://www.cnblogs.com/sangwl/p/10400598.html *********** https://segmentfault.com/a/11
阅读全文
摘要:import 'package:flutter/material.dart'; import 'package:intro_slider/intro_slider.dart'; import 'package:shared_preferences/shared_preferences.dart'; main()=> runApp(MaterialApp( home: SplashScreen...
阅读全文
摘要:https://stackoverflow.com/questions/32810051/cannot-catch-socketexception/32810079#32810079 https://github.com/dart-lang/sdk/issues/25518 2 2 2 Asynch
阅读全文
摘要:First off, you will need to construct a sqlite database from your csv. This can be done in the following way: Create the necessary table (users.sql) C
阅读全文
摘要:https://github.com/flutter/flutter/issues/16491
阅读全文
摘要:main.dart demo_isolates.dart
阅读全文
摘要:main.dart isolates.dart
阅读全文
摘要:https://stackoverflow.com/questions/51396769/flutter-bad-state-stream-has-already-been-listened-to The most common form of Stream can be listened only
阅读全文
摘要:1.1. 第一步:创建并握手 如前所述,Isolate 不共享任何内存并通过消息进行交互,因此,我们需要找到一种方法在「调用者」与新的 isolate 之间建立通信。 每个 Isolate 都暴露了一个将消息传递给 Isolate 的被称为「SendPort」的端口。(个人觉得该名字有一些误导,因为
阅读全文
摘要:main.dart isolates.dart another https://blog.csdn.net/PD_Wang/article/details/80165265
阅读全文
摘要:https://github.com/pauldemarco/flutter_blue/issues/140 https://github.com/flutter/flutter/issues/16846 https://github.com/flutter/flutter/issues/26413
阅读全文
摘要:import 'dart:io'; import 'dart:convert'; main()async{ List a = ['1.cn','2.cn','3.cn','4.cn','5.cn','6.cn','7.cn','8.cn','9.cn','10.cn','11.cn','12.cn','13.cn','14.cn','
阅读全文
摘要:有关SQLITE最完整的操作语句参考资料,应当是官方网址的http://www.sqlite.org/lang.html这个地方。 select max(id) from table 取最大id select count(*) from table 统计个数 选择满足条件的第一条记录select E
阅读全文
摘要:注意:build(BuildContext context)在 Scaffold.of(context)之前时,会报错,解决办法:通过build widget来解决,如下代码。 taskRun(){ ... } body: ...
阅读全文
摘要:import 'dart:async'; import 'package:semaphore/semaphore.dart'; import 'dart:io'; import 'dart:convert'; import 'dart:math'; import "dart:math"; void main() async { int maxCount = 5; LocalSemap...
阅读全文
浙公网安备 33010602011771号