上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页
摘要: 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 阅读全文
posted @ 2019-05-23 16:08 CrossPython 阅读(1310) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2019-05-23 09:15 CrossPython 阅读(3398) 评论(0) 推荐(0) 编辑
摘要: https://github.com/q3aql/aria2-static-builds https://github.com/aria2/aria2/issues/781 阅读全文
posted @ 2019-05-22 22:11 CrossPython 阅读(320) 评论(0) 推荐(0) 编辑
摘要: demo, ok 阅读全文
posted @ 2019-05-22 20:38 CrossPython 阅读(549) 评论(0) 推荐(0) 编辑
摘要: aria2c --conf-path=aria2.conf mine: 下面的懒得删了, from internet below, another one: 阅读全文
posted @ 2019-05-22 16:29 CrossPython 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-22 15:28 CrossPython 阅读(508) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/suyimin2010/article/details/80552392 https://flutterchina.club/cookbook/networking/web-sockets/ https://www.jianshu.com/p/8f4ddf 阅读全文
posted @ 2019-05-22 15:05 CrossPython 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 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;... 阅读全文
posted @ 2019-05-22 08:35 CrossPython 阅读(369) 评论(0) 推荐(0) 编辑
摘要: WRITE_EXTERNAL_STORAGE 阅读全文
posted @ 2019-05-21 21:24 CrossPython 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-05-21 18:13 CrossPython 阅读(340) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/8124b5b6ef95https://quan.ithome.com/0/331/853.htmhttp://www.360doc.com/content/18/0707/23/56810834_768650003.shtml ***** htt 阅读全文
posted @ 2019-05-21 14:47 CrossPython 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 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';... 阅读全文
posted @ 2019-05-21 13:47 CrossPython 阅读(311) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/20201067/ffmpeg-executable-chmod-permission Your Android app must have permissions to read and write to storage, i 阅读全文
posted @ 2019-05-20 22:03 CrossPython 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-05-20 21:58 CrossPython 阅读(216) 评论(0) 推荐(0) 编辑
摘要: import 阅读全文
posted @ 2019-05-20 18:51 CrossPython 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2019-05-20 18:11 CrossPython 阅读(357) 评论(0) 推荐(0) 编辑
摘要: import io,,,,,,, from https://pub.dev/packages/large_file_copy 阅读全文
posted @ 2019-05-20 14:56 CrossPython 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2019-05-20 13:52 CrossPython 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-05-20 10:05 CrossPython 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 有点意思, 阅读全文
posted @ 2019-05-17 12:19 CrossPython 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 不要在一个屋檐下.... 阅读全文
posted @ 2019-05-17 11:14 CrossPython 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2019-05-16 21:30 CrossPython 阅读(414) 评论(0) 推荐(0) 编辑
摘要: child: GestureDetector( onHorizontalDragEnd: (endDetails){ double velocity = endDetails.primaryVelocity; if (velocity < 0) { ... 阅读全文
posted @ 2019-05-16 11:20 CrossPython 阅读(445) 评论(0) 推荐(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 阅读全文
posted @ 2019-05-16 09:55 CrossPython 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 方法一 使用alignment配合FractionalOffset:对于FractionalOffset的参数,我是这么理解的:相当于比例,第一个代表横向的权重,第二个代表竖向的权重,横0.9代表在横向十分之九的位置,竖0.1代表在竖向十分之一的位置 方法二 使用定位组件Positioned,其中的 阅读全文
posted @ 2019-05-16 09:40 CrossPython 阅读(387) 评论(0) 推荐(0) 编辑
摘要: return Scaffold( appBar: AppBar( elevation: 0.0, title: new Text("登陆"), ), resizeToAvoidBottomPadding: false, //输入框抵住键盘); 阅读全文
posted @ 2019-05-15 17:34 CrossPython 阅读(1647) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/d68278d19f79 阅读全文
posted @ 2019-05-15 16:25 CrossPython 阅读(723) 评论(0) 推荐(0) 编辑
摘要: https://medium.com/@diegoveloper/flutter-widget-size-and-position-b0a9ffed9407 I have read many questions about how we can obtain the dimensions or po 阅读全文
posted @ 2019-05-15 15:42 CrossPython 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 并行动画 当多个动画定义同时指向某个组件,并使用动画控制器启动时,就产生了并行动画(Parallel Animation)。例如我们可以让一个组件: 移动的同时改变大小 旋转的同时边界颜色闪烁 圆形图片模糊的同时形状越来越方 总之,掌握了动画原理以后我们知道,只要能将一个动画抽象值与一个组件的某个外 阅读全文
posted @ 2019-05-15 14:43 CrossPython 阅读(379) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart'; import 'dart:io'; import 'dart:async'; main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { ... 阅读全文
posted @ 2019-05-15 13:56 CrossPython 阅读(231) 评论(0) 推荐(0) 编辑
摘要: class BuilderPage extends StatefulWidget { @override State createState() { // TODO: implement createState return BuilderPageState(); } } class BuilderPageState extends State with Sin... 阅读全文
posted @ 2019-05-15 12:52 CrossPython 阅读(564) 评论(0) 推荐(0) 编辑
摘要: AnimatedCrossFade让俩个子widget 交替淡入淡出。 AnimatedBuilder构建动画最常用的控件。AnimatedBuilder 由 animation,child,builder 三个参数。 当创建一个AnimationController时,需要传递一个vsync参数, 阅读全文
posted @ 2019-05-15 12:23 CrossPython 阅读(711) 评论(0) 推荐(0) 编辑
摘要: Flutter AnimatedBuilder 创建动画的widget Key key, @required Listenable animation, @required this.builder, this.child, animation:Animationcontroller //动画 ch 阅读全文
posted @ 2019-05-15 10:37 CrossPython 阅读(292) 评论(0) 推荐(0) 编辑
摘要: https://juejin.im/post/5cd91de4518825686b120921 https://juejin.im/entry/5b64292be51d451995676398 阅读全文
posted @ 2019-05-14 12:07 CrossPython 阅读(640) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/2ea01ae02ffe Flutter:教你用CustomPaint画一个自定义的CircleProgressBar paint_page.dart paint.dart 阅读全文
posted @ 2019-05-13 21:33 CrossPython 阅读(818) 评论(1) 推荐(0) 编辑
摘要: 最近在学习中需要用到裁剪图片,记录一下解决方法 思路: 使用canvas的drawImageRect()方法,对Image进行裁剪,这里的Image需要 'dart:ui' 库中的Image。 1. canvas的drawImageRect()方法 ①第一个参数是'dart:ui' 库中的Image 阅读全文
posted @ 2019-05-13 21:18 CrossPython 阅读(3401) 评论(1) 推荐(0) 编辑
摘要: 实现原理很简单 ,自己绘制一个裁剪框, 根据手势 选择到适合的位置 ,然后将选中的区域绘制到一个新的图片上,从而完成裁剪 裁剪框的绘制 这里我是根据点来连线的 因为每个点上会绘制一个拉伸的标识符 源图片的绘制 ,根据屏幕大小 把图片缩放成适合长宽比例的图片 绘制完后 就是根据手势的偏移量来计算裁剪框 阅读全文
posted @ 2019-05-13 21:14 CrossPython 阅读(3305) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-05-13 20:17 CrossPython 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-05-13 20:02 CrossPython 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Image是一个用于展示图片的组件。支持 JPEG、PNG、GIF、Animated GIF、WebP、Animated WebP、BMP 和 WBMP 等格式。 Image 有许多的静态函数: new Image.asset - 用于从资源目录的显示图片。 new Image.network - 阅读全文
posted @ 2019-05-13 19:57 CrossPython 阅读(2406) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页