-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
6 lines (6 loc) · 15.7 KB
/
index.html
1
2
3
4
5
6
<!DOCTYPE html><html lang="zh-CN"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><meta content="yes" name="apple-mobile-web-app-capable"><meta content="black-translucent" name="apple-mobile-web-app-status-bar-style"><meta content="telephone=no" name="format-detection"><meta name="description"><title>月夜录 | 凄风苦雨夜归人</title><link rel="stylesheet" type="text/css" href="/css/style.css?v=0.0.0"><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/normalize/6.0.0/normalize.min.css"><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/pure/0.6.2/pure-min.css"><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/pure/0.6.2/grids-responsive-min.css"><link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css"><script type="text/javascript" src="//cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script><link rel="Shortcut Icon" type="image/x-icon" href="/favicon.ico"><link rel="apple-touch-icon" href="/apple-touch-icon.png"><link rel="apple-touch-icon-precomposed" href="/apple-touch-icon.png"><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create','UA-66162102-1','auto');ga('send','pageview');</script></head><body><div class="body_container"><div id="header"><div class="site-name"><h1 class="hidden">月夜录</h1><a id="logo" href="/.">月夜录</a><p class="description">凄风苦雨夜归人</p></div><div id="nav-menu"><a href="/." class="current"><i class="fa fa-home"> 首页</i></a><a href="/archives/"><i class="fa fa-archive"> 归档</i></a><a href="/about/"><i class="fa fa-user"> 关于</i></a><a href="/atom.xml"><i class="fa fa-rss"> 订阅</i></a></div></div><div id="layout" class="pure-g"><div class="pure-u-1 pure-u-md-3-4"><div class="content_container"><div class="post"><h1 class="post-title"><a href="/2019/04/08/一路飘摇-与native端通讯/">一路飘摇:与native端通讯</a></h1><div class="post-meta">Apr 8 2019</div><a data-disqus-identifier="2019/04/08/一路飘摇-与native端通讯/" href="/2019/04/08/一路飘摇-与native端通讯/#disqus_thread" class="disqus-comment-count"></a><div class="post-content"><p> 用过flutter的都知道,flutter框架采用的是dart编程语言,并且有自己一整套完整的UI组件,所以基本上90%的业务需求都能满足,那么剩下的10%可能就避免不了要用native端来解决了,这种情况绝大多数发生在需要和硬件设备打交道的场景下.比如需要用到摄像机,麦克风,gps定位等等.那么两个基本上都不搭嘎的语言和框架怎么进行通讯呢?</div><p class="readmore"><a href="/2019/04/08/一路飘摇-与native端通讯/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2019/04/01/一路飘摇之-数组实现带有索引的map方法/">一路飘摇:数组实现带有索引的map方法</a></h1><div class="post-meta">Apr 1 2019</div><a data-disqus-identifier="2019/04/01/一路飘摇之-数组实现带有索引的map方法/" href="/2019/04/01/一路飘摇之-数组实现带有索引的map方法/#disqus_thread" class="disqus-comment-count"></a><div class="post-content"><p> map方法也叫映射,也就是把数组里的元素一一映射(转换)为其他的对象,通常是生成一个新的,包含转换后元素的数组,常常出现在根据数组里的数据生成ui使用的weidget这种场景.比如有个包含字符串的数组,可以很方便的将字符串转换成对应的Text用来在ui中显示<br></div><p class="readmore"><a href="/2019/04/01/一路飘摇之-数组实现带有索引的map方法/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2019/03/28/一路飘摇之-理解isolate线程间通讯/">一路飘摇:理解isolate线程间通讯</a></h1><div class="post-meta">Mar 28 2019</div><a data-disqus-identifier="2019/03/28/一路飘摇之-理解isolate线程间通讯/" href="/2019/03/28/一路飘摇之-理解isolate线程间通讯/#disqus_thread" class="disqus-comment-count"></a><div class="post-content"><p> 在我们传统的理解中,通讯应该是这个样子的,比如A和B之间通讯,A和B应该各自有个发件箱和一个收件箱,然后A通过A的发件箱将信息发送到B的收件箱内,同样B通过B的发件箱将信息发送到A的发件箱,如图:<br><img src="http://images.wgq.name/isolatecommunicatio5.png" alt="image"></p></div><p class="readmore"><a href="/2019/03/28/一路飘摇之-理解isolate线程间通讯/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2018/12/12/一路飘摇之-在导航器中接收被pop掉的页面回传的参数/">一路飘摇:在导航器中接收被pop掉的页面回传的参数</a></h1><div class="post-meta">Dec 12 2018</div><a data-disqus-identifier="2018/12/12/一路飘摇之-在导航器中接收被pop掉的页面回传的参数/" href="/2018/12/12/一路飘摇之-在导航器中接收被pop掉的页面回传的参数/#disqus_thread" class="disqus-comment-count"></a><div class="post-content"><p>假设现在在页面A中push出页面B,然后在A中要知道页面B被pop了,最重要的是要得到页面B中的数据.<br>在flutter中,通过导航器弹出一个新页面的写法是,在A中:<br><figure class="highlight dart"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">Navigator.of(context).push(<span class="keyword">new</span> MaterialPageRoute(builder: (BuildContext context) => B()));</div></pre></td></tr></table></figure></p></div><p class="readmore"><a href="/2018/12/12/一路飘摇之-在导航器中接收被pop掉的页面回传的参数/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2018/08/30/解决由于flutter的升级导致第三方库无法使用的问题/">一路飘摇:解决由于flutter的升级导致第三方库无法使用的问题</a></h1><div class="post-meta">Aug 30 2018</div><a data-disqus-identifier="2018/08/30/解决由于flutter的升级导致第三方库无法使用的问题/" href="/2018/08/30/解决由于flutter的升级导致第三方库无法使用的问题/#disqus_thread" class="disqus-comment-count"></a><div class="post-content"><p>比如我现在安装了一个画k线图的第三方库 flutter_candlesticks: ^0.1.1 当我们升级完flutter后(升级后flutter SDK的版本为2.1.0),重新get第三方库时发现以下这个错误<br></div><p class="readmore"><a href="/2018/08/30/解决由于flutter的升级导致第三方库无法使用的问题/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2018/06/07/飘飘无所似-长矛落指尖/">飘飘无所似 长矛落指尖</a></h1><div class="post-meta">Jun 7 2018</div><a data-disqus-identifier="2018/06/07/飘飘无所似-长矛落指尖/" href="/2018/06/07/飘飘无所似-长矛落指尖/#disqus_thread" class="disqus-comment-count"></a><div class="post-content"><h3 id="Flutter-Android破局之路"><a href="#Flutter-Android破局之路" class="headerlink" title="Flutter Android破局之路"></a>Flutter Android破局之路</h3><p>    不管你信不信,承不承认,Android在流畅度,粘指度等方面都远不及iOS,虽然近些年从软硬件方面不断提升,较早期版本已经有很大的改善了,与iOS的差距不断拉近,但是无论系统如何优化,硬件如何堆叠,始终与iOS的操作体验差了那么一丢丢.很多大拿都分析了原因,各种各样的说法,五花八门.其中比较有说服力的是优先级说法.大概的意思是当时谷歌在研发Android操作系统时,主要的竞争对手是黑莓,而黑莓手机的主要操作是靠键盘,所以Android在早期研发的时候并没有注重触摸这方面.当苹果手机横空出世时,谷歌为了抢占操作系统这个市场,匆忙将Android修改为触摸版本,并免费让大家使用,这就造成了Android系统对手指触摸屏幕的响应级别并没有那么高,不像苹果,只要手指一触碰到屏幕,就将后台所有的进程全部暂停,优先处理UI渲染的任务,所以感觉起来就非常流畅.当然这个说法也有很多人质疑.我们就算信与不信的人在五五开吧,能让一半左右搞技术的聪明人都相信的说法,至少不会是无风起浪,多多少少都有一点这个原因.至少可以证明Android系统先天不足,也就是长在基因DNA里的缺陷.估计很难修复. </p></div><p class="readmore"><a href="/2018/06/07/飘飘无所似-长矛落指尖/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2017/08/02/奇葩说观后感/">奇葩说观后感</a></h1><div class="post-meta">Aug 2 2017</div><a data-disqus-identifier="2017/08/02/奇葩说观后感/" href="/2017/08/02/奇葩说观后感/#disqus_thread" class="disqus-comment-count"></a><div class="post-content"><p> 这段时间恶补了一下奇葩说第四季,不得不说确实很精彩,往往看似很简单的命题,在选手及导师们的解读下,常常会有不同角度,不同观点的精彩辩论,但是,经过这么多季的运作之后,也渐渐的涌现出了一些套路,</div><p class="readmore"><a href="/2017/08/02/奇葩说观后感/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2016/05/22/指间错/">指间错</a></h1><div class="post-meta">May 22 2016</div><a data-disqus-identifier="2016/05/22/指间错/" href="/2016/05/22/指间错/#disqus_thread" class="disqus-comment-count"></a><div class="post-content"><p> 夜幕即将降临,昆虫王国的昆虫们也纷纷来到位于下水道中邻近一个小区出口的一个”黄昏酒吧”,为了今晚的觅食做些准备,放松一下心情并补充一下体力.酒吧里已经陆陆续续来了不少客人了.</p>
<p>“依然记得从你口中说出再见坚决如铁<br>昏暗中有种烈日灼身的错觉<br>黄昏的地平线 划出一句离别<br>爱情进入永夜”</p></div><p class="readmore"><a href="/2016/05/22/指间错/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2016/01/08/马侬传/">马侬传</a></h1><div class="post-meta">Jan 8 2016</div><a data-disqus-identifier="2016/01/08/马侬传/" href="/2016/01/08/马侬传/#disqus_thread" class="disqus-comment-count"></a><div class="post-content"><p>写字楼里写字间,写字间里程序员;<br>程序人员写程序,又拿程序换酒钱;<br>酒醒只在网上坐,酒醉还来网下眠;<br>酒醉酒醒日复日,网上网下年复年;<br>但愿老死电脑间,不愿鞠躬老板前;<br>奔驰宝马贵者趣,公交自行程序员;<br>别人笑我忒疯癫,我笑自己命太贱;<br>不见满街漂亮妹,哪个归得程序员. </p></div><p class="readmore"><a href="/2016/01/08/马侬传/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2008/04/27/赵家堡一日游/">赵家堡一日游</a></h1><div class="post-meta">Apr 27 2008</div><a data-disqus-identifier="2008/04/27/赵家堡一日游/" href="/2008/04/27/赵家堡一日游/#disqus_thread" class="disqus-comment-count"></a><div class="post-content"><p>哈哈,首次开博,心情非常激动<br>在这里我要感谢mv,感谢cctv,给我这个机会<br>更要感谢一下主办方给了我这个展示的舞台…(掌声,欢呼声,尖叫声)<br></div><p class="readmore"><a href="/2008/04/27/赵家堡一日游/">阅读全文</a></p></div><script id="dsq-count-scr" src="//bdx.disqus.com/count.js" async></script></div></div><div class="pure-u-1-4 hidden_mid_and_down"><div id="sidebar"><div class="widget"><form action="//www.google.com/search" method="get" accept-charset="utf-8" target="_blank" class="search-form"><input type="text" name="q" maxlength="20" placeholder="Search"/><input type="hidden" name="sitesearch" value="http://blog.wgq.name"/></form></div><div class="widget"><div class="widget-title"><i class="fa fa-folder-o"> 分类</i></div><ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/flutter/">flutter</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/杂/">杂</a></li></ul></div><div class="widget"><div class="widget-title"><i class="fa fa-star-o"> 标签</i></div><div class="tagcloud"><a href="/tags/flutter/" style="font-size: 15px;">flutter</a></div></div><div class="widget"><div class="widget-title"><i class="fa fa-file-o"> 最近文章</i></div><ul class="post-list"><li class="post-list-item"><a class="post-list-link" href="/2019/04/08/一路飘摇-与native端通讯/">一路飘摇:与native端通讯</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/04/01/一路飘摇之-数组实现带有索引的map方法/">一路飘摇:数组实现带有索引的map方法</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/03/28/一路飘摇之-理解isolate线程间通讯/">一路飘摇:理解isolate线程间通讯</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/12/12/一路飘摇之-在导航器中接收被pop掉的页面回传的参数/">一路飘摇:在导航器中接收被pop掉的页面回传的参数</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/08/30/解决由于flutter的升级导致第三方库无法使用的问题/">一路飘摇:解决由于flutter的升级导致第三方库无法使用的问题</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/06/07/飘飘无所似-长矛落指尖/">飘飘无所似 长矛落指尖</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/08/02/奇葩说观后感/">奇葩说观后感</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/05/22/指间错/">指间错</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/01/08/马侬传/">马侬传</a></li><li class="post-list-item"><a class="post-list-link" href="/2008/04/27/赵家堡一日游/">赵家堡一日游</a></li></ul></div><div class="widget"><div class="widget-title"><i class="fa fa-comment-o"> 最近评论</i></div><script type="text/javascript" src="//bdx.disqus.com/recent_comments_widget.js?num_items=5&hide_avatars=1&avatar_size=32&excerpt_length=20&hide_mods=1"></script></div><div class="widget"><div class="widget-title"><i class="fa fa-external-link"> 友情链接</i></div><ul></ul><a href="http://www.example1.com/" title="site-name1" target="_blank">site-name1</a><ul></ul><a href="http://www.example2.com/" title="site-name2" target="_blank">site-name2</a><ul></ul><a href="http://www.example3.com/" title="site-name3" target="_blank">site-name3</a></div></div></div><div class="pure-u-1 pure-u-md-3-4"><div id="footer">Copyright © 2019 <a href="/." rel="nofollow">月夜录.</a> Powered by<a rel="nofollow" target="_blank" href="https://hexo.io"> Hexo.</a><a rel="nofollow" target="_blank" href="https://github.com/tufu9441/maupassant-hexo"> Theme</a> by<a rel="nofollow" target="_blank" href="https://github.com/pagecho"> Cho.</a></div></div></div><a id="rocket" href="#top" class="show"></a><script type="text/javascript" src="/js/totop.js?v=0.0.0" async></script><script type="text/javascript" src="//cdn.bootcss.com/fancybox/3.0.47/jquery.fancybox.min.js" async></script><script type="text/javascript" src="/js/fancybox.js?v=0.0.0" async></script><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/fancybox/3.0.47/jquery.fancybox.min.css"><script type="text/javascript" src="/js/codeblock-resizer.js?v=0.0.0"></script><script type="text/javascript" src="/js/smartresize.js?v=0.0.0"></script></div></body></html>