82
82
< link rel ="next " href ="../chapter2/ " />
83
83
84
84
85
- < link rel ="prev " href ="install_flutter .html " />
85
+ < link rel ="prev " href ="configuration .html " />
86
86
87
87
88
88
< style >
223
223
224
224
</ li >
225
225
226
- < li class ="chapter active " data-level ="1.2.4 " data-path ="dart.html ">
226
+ < li class ="chapter " data-level ="1.2.4 " data-path ="configuration.html ">
227
+
228
+ < a href ="configuration.html ">
229
+
230
+
231
+ 常见配置问题
232
+
233
+ </ a >
234
+
235
+
236
+
237
+ </ li >
238
+
239
+ < li class ="chapter active " data-level ="1.2.5 " data-path ="dart.html ">
227
240
228
241
< a href ="dart.html ">
229
242
@@ -1441,7 +1454,7 @@ <h2 id="变量声明">变量声明</h2>
1441
1454
< p > 如果您从未打算更改一个变量,那么使用 < code > final</ code > 或 < code > const</ code > ,不是< code > var</ code > ,也不是一个类型。 一个 < code > final</ code > 变量只能被设置一次,两者区别在于:< code > const</ code > 变量是一个编译时常量,< code > final</ code > 变量在第一次使用时被初始化。被< code > final</ code > 或者< code > const</ code > 修饰的变量,变量类型可以省略,如:</ p >
1442
1455
< pre class ="language- "> < code class ="lang-dart "> < span class ="token comment "> //可以省略String这个类型声明</ span >
1443
1456
< span class ="token keyword "> final</ span > str < span class ="token operator "> =</ span > < span class ="token string "> "hi world"</ span > < span class ="token punctuation "> ;</ span >
1444
- < span class ="token comment "> //final str = "hi world"; </ span >
1457
+ < span class ="token comment "> //final String str = "hi world"; </ span >
1445
1458
< span class ="token keyword "> const</ span > str1 < span class ="token operator "> =</ span > < span class ="token string "> "hi world"</ span > < span class ="token punctuation "> ;</ span >
1446
1459
< span class ="token comment "> //const String str1 = "hi world";</ span >
1447
1460
</ code > </ pre >
@@ -1455,7 +1468,7 @@ <h2 id="函数">函数</h2>
1455
1468
< span class ="token keyword "> return</ span > _nobleGases< span class ="token punctuation "> [</ span > atomicNumber< span class ="token punctuation "> ]</ span > < span class ="token operator "> !=</ span > < span class ="token keyword "> null</ span > < span class ="token punctuation "> ;</ span >
1456
1469
< span class ="token punctuation "> }</ span >
1457
1470
</ code > </ pre >
1458
- < p > dart函数声明如果没有显示 ;申 ;明返回值类型时会默认当做< code > dynamic</ code > 处理,注意,函数返回值没有类型推断:</ p >
1471
+ < p > dart函数声明如果没有显式 ;声 ;明返回值类型时会默认当做< code > dynamic</ code > 处理,注意,函数返回值没有类型推断:</ p >
1459
1472
< pre class ="language- "> < code class ="lang-dart "> < span class ="token keyword "> typedef</ span > bool < span class ="token function "> CALLBACK</ span > < span class ="token punctuation "> (</ span > < span class ="token punctuation "> )</ span > < span class ="token punctuation "> ;</ span >
1460
1473
1461
1474
< span class ="token comment "> //不指定返回类型,此时默认为dynamic,不是bool</ span >
@@ -1722,7 +1735,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
1722
1735
1723
1736
1724
1737
1725
- < a href ="install_flutter .html " class ="navigation navigation-prev " aria-label ="Previous page: 搭建Flutter开发环境 ">
1738
+ < a href ="configuration .html " class ="navigation navigation-prev " aria-label ="Previous page: 常见配置问题 ">
1726
1739
< i class ="fa fa-angle-left "> </ i >
1727
1740
</ a >
1728
1741
@@ -1738,7 +1751,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
1738
1751
< script >
1739
1752
var gitbook = gitbook || [ ] ;
1740
1753
gitbook . push ( function ( ) {
1741
- gitbook . page . hasChanged ( { "page" :{ "title" :"Dart语言简介" , "level" :"1.2.4" , "depth" :2 , "next" :{ "title" :"第一个Flutter应用" , "level" :"1.3" , "depth" :1 , "path" :"chapter2/index.md" , "ref" :"chapter2/index.md" , "articles" :[ { "title" :"计数器示例" , "level" :"1.3.1" , "depth" :2 , "path" :"chapter2/first_flutter_app.md" , "ref" :"chapter2/first_flutter_app.md" , "articles" :[ ] } , { "title" :"路由管理" , "level" :"1.3.2" , "depth" :2 , "path" :"chapter2/flutter_router.md" , "ref" :"chapter2/flutter_router.md" , "articles" :[ ] } , { "title" :"包管理" , "level" :"1.3.3" , "depth" :2 , "path" :"chapter2/flutter_package_mgr.md" , "ref" :"chapter2/flutter_package_mgr.md" , "articles" :[ ] } , { "title" :"资源管理" , "level" :"1.3.4" , "depth" :2 , "path" :"chapter2/flutter_assets_mgr.md" , "ref" :"chapter2/flutter_assets_mgr.md" , "articles" :[ ] } , { "title" :"调试Flutter APP" , "level" :"1.3.5" , "depth" :2 , "path" :"chapter2/flutter_app_debug.md" , "ref" :"chapter2/flutter_app_debug.md" , "articles" :[ ] } ] } , "previous" :{ "title" :"搭建Flutter开发环境" , "level" :"1.2.3" , "depth" :2 , "path" :"chapter1/install_flutter.md" , "ref" :"chapter1/install_flutter.md" , "articles" :[ ] } , "dir" :"ltr" } , "config" :{ "plugins" :[ "-search" , "search-pro" , "ace" , "splitter" , "toggle-chapters" , "prism" , "donate" , "-highlight" ] , "root" :"docs" , "styles" :{ "website" :"styles/website.css" , "pdf" :"styles/pdf.css" , "epub" :"styles/epub.css" , "mobi" :"styles/mobi.css" , "ebook" :"styles/ebook.css" , "print" :"styles/print.css" } , "pluginsConfig" :{ "prism" :{ } , "ace" :{ } , "splitter" :{ } , "search-pro" :{ "cutWordLib" :"nodejieba" , "defineWord" :[ "Gitbook Use" ] } , "lunr" :{ "maxIndexSize" :1000000 , "ignoreSpecialCharacters" :false } , "donate" :{ "alipay" :"" , "alipayText" :"支付宝打赏" , "button" :"赏" , "title" :"" , "wechat" :"https://cdn.jsdelivr.net/gh/flutterchina/website@1.0/images/pay.jpg" , "wechatText" :"微信打赏" } , "fontsettings" :{ "theme" :"white" , "family" :"sans" , "size" :2 } , "sharing" :{ "facebook" :true , "twitter" :true , "google" :false , "weibo" :false , "instapaper" :false , "vk" :false , "all" :[ "facebook" , "google" , "twitter" , "weibo" , "instapaper" ] } , "theme-default" :{ "styles" :{ "website" :"styles/website.css" , "pdf" :"styles/pdf.css" , "epub" :"styles/epub.css" , "mobi" :"styles/mobi.css" , "ebook" :"styles/ebook.css" , "print" :"styles/print.css" } , "showLevel" :false } , "toggle-chapters" :{ } } , "theme" :"default" , "author" :"wendux 824783146@qq.com" , "pdf" :{ "pageNumbers" :true , "fontSize" :12 , "fontFamily" :"Arial" , "paperSize" :"a4" , "chapterMark" :"pagebreak" , "pageBreaksBefore" :"/" , "margin" :{ "right" :62 , "left" :62 , "top" :56 , "bottom" :56 } } , "structure" :{ "langs" :"LANGS.md" , "readme" :"README.md" , "glossary" :"GLOSSARY.md" , "summary" :"SUMMARY.md" } , "variables" :{ } , "title" :"《Flutter实战》" , "language" :"zh-hans" , "links" :{ "sharing" :{ "all" :null , "facebook" :null , "google" :null , "twitter" :null , "weibo" :null } , "sidebar" :{ "<div><img height=20 style='position:relative; top:5px; padding-right:5px ' src='https://cdn.jsdelivr.net/gh/flutterchina/website@1.0/images/favicon.png'/> Flutter中文网</div>" :"https://flutterchina.club" } } , "gitbook" :"*" , "description" :"记录Gitbook的配置和一些插件的使用" } , "file" :{ "path" :"chapter1/dart.md" , "mtime" :"2018-12-09T13:12:23.215Z" , "type" :"markdown" } , "gitbook" :{ "version" :"3.2.3" , "time" :"2018-12-18T09:07:24.148Z" } , "basePath" :".." , "book" :{ "language" :"" } } ) ;
1754
+ gitbook . page . hasChanged ( { "page" :{ "title" :"Dart语言简介" , "level" :"1.2.5" , "depth" :2 , "next" :{ "title" :"第一个Flutter应用" , "level" :"1.3" , "depth" :1 , "path" :"chapter2/index.md" , "ref" :"chapter2/index.md" , "articles" :[ { "title" :"计数器示例" , "level" :"1.3.1" , "depth" :2 , "path" :"chapter2/first_flutter_app.md" , "ref" :"chapter2/first_flutter_app.md" , "articles" :[ ] } , { "title" :"路由管理" , "level" :"1.3.2" , "depth" :2 , "path" :"chapter2/flutter_router.md" , "ref" :"chapter2/flutter_router.md" , "articles" :[ ] } , { "title" :"包管理" , "level" :"1.3.3" , "depth" :2 , "path" :"chapter2/flutter_package_mgr.md" , "ref" :"chapter2/flutter_package_mgr.md" , "articles" :[ ] } , { "title" :"资源管理" , "level" :"1.3.4" , "depth" :2 , "path" :"chapter2/flutter_assets_mgr.md" , "ref" :"chapter2/flutter_assets_mgr.md" , "articles" :[ ] } , { "title" :"调试Flutter APP" , "level" :"1.3.5" , "depth" :2 , "path" :"chapter2/flutter_app_debug.md" , "ref" :"chapter2/flutter_app_debug.md" , "articles" :[ ] } ] } , "previous" :{ "title" :"常见配置问题" , "level" :"1.2.4" , "depth" :2 , "path" :"chapter1/configuration.md" , "ref" :"chapter1/configuration.md" , "articles" :[ ] } , "dir" :"ltr" } , "config" :{ "plugins" :[ "-search" , "search-pro" , "ace" , "splitter" , "toggle-chapters" , "prism" , "donate" , "-highlight" ] , "root" :"docs" , "styles" :{ "website" :"styles/website.css" , "pdf" :"styles/pdf.css" , "epub" :"styles/epub.css" , "mobi" :"styles/mobi.css" , "ebook" :"styles/ebook.css" , "print" :"styles/print.css" } , "pluginsConfig" :{ "prism" :{ } , "ace" :{ } , "splitter" :{ } , "search-pro" :{ "cutWordLib" :"nodejieba" , "defineWord" :[ "Gitbook Use" ] } , "lunr" :{ "maxIndexSize" :1000000 , "ignoreSpecialCharacters" :false } , "donate" :{ "alipay" :"" , "alipayText" :"支付宝打赏" , "button" :"赏" , "title" :"" , "wechat" :"https://cdn.jsdelivr.net/gh/flutterchina/website@1.0/images/pay.jpg" , "wechatText" :"微信打赏" } , "fontsettings" :{ "theme" :"white" , "family" :"sans" , "size" :2 } , "sharing" :{ "facebook" :true , "twitter" :true , "google" :false , "weibo" :false , "instapaper" :false , "vk" :false , "all" :[ "facebook" , "google" , "twitter" , "weibo" , "instapaper" ] } , "theme-default" :{ "styles" :{ "website" :"styles/website.css" , "pdf" :"styles/pdf.css" , "epub" :"styles/epub.css" , "mobi" :"styles/mobi.css" , "ebook" :"styles/ebook.css" , "print" :"styles/print.css" } , "showLevel" :false } , "toggle-chapters" :{ } } , "theme" :"default" , "author" :"wendux 824783146@qq.com" , "pdf" :{ "pageNumbers" :true , "fontSize" :12 , "fontFamily" :"Arial" , "paperSize" :"a4" , "chapterMark" :"pagebreak" , "pageBreaksBefore" :"/" , "margin" :{ "right" :62 , "left" :62 , "top" :56 , "bottom" :56 } } , "structure" :{ "langs" :"LANGS.md" , "readme" :"README.md" , "glossary" :"GLOSSARY.md" , "summary" :"SUMMARY.md" } , "variables" :{ } , "title" :"《Flutter实战》" , "language" :"zh-hans" , "links" :{ "sharing" :{ "all" :null , "facebook" :null , "google" :null , "twitter" :null , "weibo" :null } , "sidebar" :{ "<div><img height=20 style='position:relative; top:5px; padding-right:5px ' src='https://cdn.jsdelivr.net/gh/flutterchina/website@1.0/images/favicon.png'/> Flutter中文网</div>" :"https://flutterchina.club" } } , "gitbook" :"*" , "description" :"记录Gitbook的配置和一些插件的使用" } , "file" :{ "path" :"chapter1/dart.md" , "mtime" :"2019-01-02T10:06:06.482Z" , "type" :"markdown" } , "gitbook" :{ "version" :"3.2.3" , "time" :"2019-01-02T12:10:33.919Z" } , "basePath" :".." , "book" :{ "language" :"" } } ) ;
1742
1755
} ) ;
1743
1756
</ script >
1744
1757
</ div >
0 commit comments