随笔分类 -  flutter+dart

摘要:https://github.com/flutter/flutter/issues/18828 https://blog.csdn.net/u011272795/article/details/83010974 <<<<<<< https://medium.com/saugo360/flutter- 阅读全文
posted @ 2019-04-16 18:59 CrossPython 阅读(446) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/52241089/how-do-i-make-an-http-request-using-cookies-on-flutter?rq=1 Here's an example of how to grab a session co 阅读全文
posted @ 2019-04-16 16:04 CrossPython 阅读(258) 评论(0) 推荐(0)
摘要:10 10 10 It is indeed possible to increase minSdkVersion, but it took me way too much time to find it out because google searches mostly yields as res 阅读全文
posted @ 2019-04-14 12:00 CrossPython 阅读(217) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_39197547/article/details/85007418 https://www.cnblogs.com/pjl43/p/9866753.html 阅读全文
posted @ 2019-04-14 10:17 CrossPython 阅读(171) 评论(0) 推荐(0)
摘要:void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return RootWidget( child: MaterialApp( debugShowChecked... 阅读全文
posted @ 2019-04-12 13:48 CrossPython 阅读(192) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/51077233/how-can-i-use-socket-in-flutter-app 阅读全文
posted @ 2019-04-12 08:57 CrossPython 阅读(1306) 评论(0) 推荐(0)
摘要:TapGestureDetector()..onTap= a.A(); a.B(); 等价于 a.A()..a.B(); 阅读全文
posted @ 2019-04-11 22:40 CrossPython 阅读(176) 评论(0) 推荐(0)
摘要:Flutter退出App的方法一般有两种 ①SystemNavigator.pop 推荐 onTap: () async { await pop(); }, static Future<void> pop() async { await SystemChannels.platform.invokeM 阅读全文
posted @ 2019-04-11 22:38 CrossPython 阅读(158) 评论(0) 推荐(0)
摘要:flutter + bloc + sqflite demo 阅读全文
posted @ 2019-04-11 21:09 CrossPython 阅读(276) 评论(0) 推荐(0)
摘要:demo 测试成功, app - src - debug/main/profile / AndroidManifest.xml 阅读全文
posted @ 2019-04-11 16:28 CrossPython 阅读(236) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/46698751/permission-denied-at-externalstoragedirectory-access-via-flutter-plugin https://stackoverflow.com/questio 阅读全文
posted @ 2019-04-11 15:11 CrossPython 阅读(1682) 评论(0) 推荐(0)
摘要:import 'package:flutter/material.dart'; import 'dart:io'; import 'package:path_provider/path_provider.dart'; import 'package:rxdart/rxdart.dart'; main() => runApp( MyApp( storage: TextStor... 阅读全文
posted @ 2019-04-10 21:52 CrossPython 阅读(266) 评论(0) 推荐(0)
摘要:记得家权限. 阅读全文
posted @ 2019-04-10 20:28 CrossPython 阅读(1414) 评论(0) 推荐(0)
摘要:要访问SD卡,首先读取权限肯定是要有的,不然写再多代码都是无用功。在AndroidManifest.xml文件中添加 https://blog.csdn.net/xieluoxixi/article/details/86655016 https://www.jianshu.com/p/a332a20 阅读全文
posted @ 2019-04-10 16:04 CrossPython 阅读(3205) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_34183910/article/details/86029912 https://blog.csdn.net/u013255127/article/details/88018997 https://www.jb51.net/article/ 阅读全文
posted @ 2019-04-10 12:39 CrossPython 阅读(269) 评论(0) 推荐(0)
摘要:import 'dart:async'; main(){ Future(()=>a1()) .then((x)=>a2(x)) .then((x)=>a3(x)) .then((x)=>a4(x)); // .whenComplete((x)=>print(x)); print('done'); } a1()async{ await Fu... 阅读全文
posted @ 2019-04-09 19:41 CrossPython 阅读(397) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/88998af66e4b https://www.jianshu.com/p/7ac3ce2bc0c6 阅读全文
posted @ 2019-04-09 15:49 CrossPython 阅读(431) 评论(0) 推荐(0)
摘要:sqflite使用引入插件在pubspec.yaml文件中添加path_provider插件,2019年2月18号最新版本为1.1.0: dependencies: flutter: sdk: flutter #sqflite插件 sqflite: ^1.1.0执行 flutter packages 阅读全文
posted @ 2019-04-09 15:18 CrossPython 阅读(1919) 评论(0) 推荐(0)
摘要:同时支持android和ios 1.添加依赖 dependencies: ... sqflite: any Dart Copy Dart Copy Dart Copy 2.导入依赖 import 'package:sqflite/sqflite.dart'; Dart Copy Dart Copy 阅读全文
posted @ 2019-04-09 15:17 CrossPython 阅读(10332) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/pjl43/p/9866753.html https://www.jianshu.com/p/55092eb06c17 requests: https://stackoverflow.com/questions/53101858/handling-co 阅读全文
posted @ 2019-04-09 11:30 CrossPython 阅读(2581) 评论(0) 推荐(0)