随笔分类 -  flutter+dart

上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要:在使用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 阅读(2235) 评论(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 阅读(345) 评论(0) 推荐(0)
摘要:showDialog 必须Stateful 因为需要context 阅读全文
posted @ 2019-04-06 21:36 CrossPython 阅读(188) 评论(0) 推荐(0)
摘要:SliverList 高度自动, SliverFixedExtentList 高度固定死. CustomScrollView( slivers:[ SliverList( delegate: SliverChildBuilderDelegate((context,... 阅读全文
posted @ 2019-04-05 19:10 CrossPython 阅读(3097) 评论(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 阅读(598) 评论(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 阅读(568) 评论(0) 推荐(0)
摘要:首先要安装一个插件:flutter_webview_plugin 使用方法: FlutterWebviewPlugin 插件提供一个链接到唯一webview的单一实例,这样你就可以在app中的任何地方控制webview,比如监听事件: 隐藏webview: 关闭webview: 画一个内部矩形web 阅读全文
posted @ 2019-04-04 09:33 CrossPython 阅读(2066) 评论(0) 推荐(0)
摘要:Flutter 本身并未集成webview,所以当需要使用webview 的时候,使用flutter_webview_plugin插件,也就是使用的原生webview组件, flutter_webview_plugin 在使用过程中会iOS出现无法加载HTTP请求的情况, 但是Flutter 却可以 阅读全文
posted @ 2019-04-04 09:07 CrossPython 阅读(2067) 评论(0) 推荐(0)
摘要:flutter 加载webview 安装插件 flutter_webview_plugin: ^0.2.1 从listview点击item跳转页面加载详情页案例 阅读全文
posted @ 2019-04-04 08:41 CrossPython 阅读(879) 评论(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 阅读(373) 评论(0) 推荐(0)
摘要:+++++++++++++++ 可以通过指定shrinkWrap = true为了你ListView。 异常消息中说明了这一点。原因也在异常消息中说明。 在这个具体的案例中,我不确定哪一个Widget在树中造成这一点,但我认为它是不相关的。我不知道你的Container关于ListView是关于。我 阅读全文
posted @ 2019-04-01 16:16 CrossPython 阅读(510) 评论(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 阅读(248) 评论(0) 推荐(0)
摘要:本文要介绍的知识点 用路由推出一个新页面 打开新页面时,传入参数 参数的回传 路由 做Android/iOS原生开发的时候,要打开一个新的页面,你得知道你的目标页面对象,然后初始化一个Intent或者ViewController,再通过startActivity或者pushViewControlle 阅读全文
posted @ 2019-03-31 21:18 CrossPython 阅读(2858) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/024b19dea138 阅读全文
posted @ 2019-03-28 23:08 CrossPython 阅读(207) 评论(0) 推荐(0)
摘要:可以通过指定shrinkWrap = true为了你ListView。 阅读全文
posted @ 2019-03-28 15:55 CrossPython 阅读(666) 评论(0) 推荐(0)
摘要:来自: https://cloud.tencent.com/developer/article/1337184 字段 类型 navigatorKey(导航键) GlobalKey<NavigatorState> home(主页) Widget routes(路由) Map<String, Widge 阅读全文
posted @ 2019-03-28 09:28 CrossPython 阅读(492) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/u011272795/article/details/83010974 https://segmentfault.com/a/1190000014219340 阅读全文
posted @ 2019-03-27 22:10 CrossPython 阅读(1624) 评论(0) 推荐(0)
摘要:children:[ButtonTheme.bar( child:ButtonBar( children:[ FlatButton... ], ),), ] 阅读全文
posted @ 2019-03-27 21:25 CrossPython 阅读(298) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/366b2446eaab 阅读全文
posted @ 2019-03-26 22:17 CrossPython 阅读(209) 评论(0) 推荐(0)
摘要:import 'package:flutter/material.dart'; class LearnExpansionPanelList extends StatefulWidget{ @override State createState() { return new _LearnExpansionPanelList(); } } class _LearnExpansio... 阅读全文
posted @ 2019-03-26 21:29 CrossPython 阅读(2289) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 下一页