04 2019 档案

摘要:SingleChildScrollView, CustomScrollView, container, init: double.inifinity. then use Expanded to constraint height, width both horizontal, and vertica 阅读全文
posted @ 2019-04-30 12:12 CrossPython 阅读(261) 评论(0) 推荐(0) 编辑
摘要:import 'package:flutter/material.dart'; import 'package:rxdart/rxdart.dart'; import 'package:flutter/widgets.dart'; //import 'package:flutter_mvvm/core/viewmodel_provider.dart'; //import 'package... 阅读全文
posted @ 2019-04-29 19:08 CrossPython 阅读(169) 评论(0) 推荐(0) 编辑
摘要:Keep in mind that this would also create a custom transition animation and behave differently than the more complex MaterialPageRoute (e.g. the swipe- 阅读全文
posted @ 2019-04-29 16:00 CrossPython 阅读(436) 评论(0) 推荐(0) 编辑
摘要:babibobucecicudadedidufafugeguhehujijukakekulalelilumimomunapapipopuqiqurerirusasesisutatetituwawowuxixuyayeyiyuzizu xixibibibobodadajijijujukekekukul 阅读全文
posted @ 2019-04-28 19:46 CrossPython 阅读(325) 评论(0) 推荐(0) 编辑
摘要:class EditDict extends StatelessWidget { @override Widget build(BuildContext context) { // TODO: implement build return SafeArea(child: Scaffold( appBar: AppBar(title: Text('Edit ... 阅读全文
posted @ 2019-04-27 16:01 CrossPython 阅读(455) 评论(0) 推荐(0) 编辑
摘要:main.dart demo_isolates.dart 阅读全文
posted @ 2019-04-25 14:41 CrossPython 阅读(213) 评论(0) 推荐(0) 编辑
摘要:SingleChildScrollView 阅读全文
posted @ 2019-04-25 10:38 CrossPython 阅读(472) 评论(0) 推荐(0) 编辑
摘要:The fix for this is to set the Scaffold property:resizeToAvoidBottomPadding: false, 阅读全文
posted @ 2019-04-25 10:08 CrossPython 阅读(209) 评论(0) 推荐(0) 编辑
摘要:Flutter数据库Sqflite之增删改查 简介 sqflite是Flutter的SQLite插件,支持iOS和Android,目前官方版本是sqflite1.1.3 sqflite插件地址:https://pub.dartlang.org/packages/sqflite#-readme-tab 阅读全文
posted @ 2019-04-24 12:39 CrossPython 阅读(961) 评论(0) 推荐(0) 编辑
摘要:BottomNavigationBar( type: BottomNavigationBarType.fixed, onTap: (value){if more then 3 items,, use this. 阅读全文
posted @ 2019-04-23 20:46 CrossPython 阅读(149) 评论(0) 推荐(0) 编辑
摘要:Flutter中的手势系统有两个层次。第一层具有原始指针事件,其描述了穿过屏幕的指针(例如触摸、鼠标和触控笔)的位置和移动。第二层具有手势,其描述由一个或多个指针移动组成的语义动作。 指针指针代表用户与设备屏幕交互的原始数据。有四种类型的指针事件: PointerDownEvent:指针已经在特定位 阅读全文
posted @ 2019-04-23 19:38 CrossPython 阅读(601) 评论(0) 推荐(0) 编辑
摘要:import 'dart:async'; import 'package:semaphore/semaphore.dart'; import 'dart:io'; import 'dart:convert'; void main() async{ List a = ['zizi.cn','wuwu.cn','baba.cn','hehe.cn','mama.cn','ququ.cn','k... 阅读全文
posted @ 2019-04-21 20:57 CrossPython 阅读(273) 评论(0) 推荐(0) 编辑
摘要:https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html 阅读全文
posted @ 2019-04-20 14:52 CrossPython 阅读(215) 评论(0) 推荐(0) 编辑
摘要:http://www.cndartlang.com/841.html 阅读全文
posted @ 2019-04-18 21:30 CrossPython 阅读(102) 评论(0) 推荐(0) 编辑
摘要:server client 阅读全文
posted @ 2019-04-18 21:24 CrossPython 阅读(172) 评论(0) 推荐(0) 编辑
摘要:connectivity This plugin allows Flutter apps to discover network connectivity and configure themselves accordingly. It can distinguish between cellula 阅读全文
posted @ 2019-04-18 16:28 CrossPython 阅读(227) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/yichengace/article/details/80167878 阅读全文
posted @ 2019-04-17 23:14 CrossPython 阅读(125) 评论(0) 推荐(0) 编辑
摘要:TextField( controller: TextEditingController.fromValue(TextEditingValue( // 设置内容 text: inputText, // 保持光标在最后 selection: TextSelection.fromPosition(Tex 阅读全文
posted @ 2019-04-16 19:09 CrossPython 阅读(2492) 评论(0) 推荐(0) 编辑
摘要: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 阅读(440) 评论(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 阅读(249) 评论(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 阅读(212) 评论(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 阅读(160) 评论(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 阅读(190) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/51077233/how-can-i-use-socket-in-flutter-app 阅读全文
posted @ 2019-04-12 08:57 CrossPython 阅读(1297) 评论(0) 推荐(0) 编辑
摘要:TapGestureDetector()..onTap= a.A(); a.B(); 等价于 a.A()..a.B(); 阅读全文
posted @ 2019-04-11 22:40 CrossPython 阅读(170) 评论(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 阅读(148) 评论(0) 推荐(0) 编辑
摘要:flutter + bloc + sqflite demo 阅读全文
posted @ 2019-04-11 21:09 CrossPython 阅读(269) 评论(0) 推荐(0) 编辑
摘要:demo 测试成功, app - src - debug/main/profile / AndroidManifest.xml 阅读全文
posted @ 2019-04-11 16:28 CrossPython 阅读(230) 评论(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 阅读(1673) 评论(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 阅读(262) 评论(0) 推荐(0) 编辑
摘要:记得家权限. 阅读全文
posted @ 2019-04-10 20:28 CrossPython 阅读(1399) 评论(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 阅读(3184) 评论(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 阅读(265) 评论(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 阅读(392) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/88998af66e4b https://www.jianshu.com/p/7ac3ce2bc0c6 阅读全文
posted @ 2019-04-09 15:49 CrossPython 阅读(422) 评论(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 阅读(1895) 评论(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 阅读(10238) 评论(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 阅读(2540) 评论(0) 推荐(0) 编辑
摘要:在使用Options添加headers时,Map没有定义内部类型: Dio dio = new Dio(); Map headers = new Map(); headers['Cookie'] = cookie; Options options = new Options( headers:hea 阅读全文
posted @ 2019-04-09 10:38 CrossPython 阅读(2219) 评论(0) 推荐(0) 编辑
摘要:import 'package:flutter/material.dart'; import 'package:flutter/gestures.dart'; import 'package:url_launcher/url_launcher.dart'; import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; ... 阅读全文
posted @ 2019-04-08 11:04 CrossPython 阅读(337) 评论(0) 推荐(0) 编辑
摘要:showDialog 必须Stateful 因为需要context 阅读全文
posted @ 2019-04-06 21:36 CrossPython 阅读(176) 评论(0) 推荐(0) 编辑
摘要:SliverList 高度自动, SliverFixedExtentList 高度固定死. CustomScrollView( slivers:[ SliverList( delegate: SliverChildBuilderDelegate((context,... 阅读全文
posted @ 2019-04-05 19:10 CrossPython 阅读(3084) 评论(0) 推荐(1) 编辑
摘要:import 'package:flutter/material.dart';import 'package:xxx/bloc/bloc.dart';import 'package:xxx/model/model.dart';class ArticlePage extends StatelessWi 阅读全文
posted @ 2019-04-05 14:46 CrossPython 阅读(590) 评论(0) 推荐(0) 编辑
摘要:https://cloud.tencent.com/developer/ask/181703 https://github.com/flutter/flutter/blob/master/examples/flutter_gallery/lib/gallery/about.dart https:// 阅读全文
posted @ 2019-04-04 12:34 CrossPython 阅读(562) 评论(0) 推荐(0) 编辑
摘要:首先要安装一个插件:flutter_webview_plugin 使用方法: FlutterWebviewPlugin 插件提供一个链接到唯一webview的单一实例,这样你就可以在app中的任何地方控制webview,比如监听事件: 隐藏webview: 关闭webview: 画一个内部矩形web 阅读全文
posted @ 2019-04-04 09:33 CrossPython 阅读(2030) 评论(0) 推荐(0) 编辑
摘要:Flutter 本身并未集成webview,所以当需要使用webview 的时候,使用flutter_webview_plugin插件,也就是使用的原生webview组件, flutter_webview_plugin 在使用过程中会iOS出现无法加载HTTP请求的情况, 但是Flutter 却可以 阅读全文
posted @ 2019-04-04 09:07 CrossPython 阅读(2026) 评论(0) 推荐(0) 编辑
摘要:flutter 加载webview 安装插件 flutter_webview_plugin: ^0.2.1 从listview点击item跳转页面加载详情页案例 阅读全文
posted @ 2019-04-04 08:41 CrossPython 阅读(876) 评论(0) 推荐(0) 编辑
摘要:const ListTile({ Key key, this.leading, // item 前置图标 this.title, // item 标题 this.subtitle, // item 副标题 this.trailing, // item 后置图标 this.isThreeLine = 阅读全文
posted @ 2019-04-02 22:34 CrossPython 阅读(350) 评论(0) 推荐(0) 编辑
摘要:+++++++++++++++ 可以通过指定shrinkWrap = true为了你ListView。 异常消息中说明了这一点。原因也在异常消息中说明。 在这个具体的案例中,我不确定哪一个Widget在树中造成这一点,但我认为它是不相关的。我不知道你的Container关于ListView是关于。我 阅读全文
posted @ 2019-04-01 16:16 CrossPython 阅读(507) 评论(0) 推荐(0) 编辑
摘要:import 'dart:async'; import 'package:semaphore/semaphore.dart'; Future main() async { var maxCount = 3; var sm = new LocalSemaphore(maxCount); var tasks = []; for (var i = 0; i []; for ... 阅读全文
posted @ 2019-04-01 09:58 CrossPython 阅读(246) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示