开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (1)
master
master
分支 (1)
master
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (1)
master
FlutterAPIDocument
/
api
/
services
/
rootBundle.html
FlutterAPIDocument
/
api
/
services
/
rootBundle.html
rootBundle.html 13.07 KB
一键复制 编辑 原始数据 按行查看 历史
地豆 提交于 2019年12月10日 18:03 +08:00 . 初始化1.9
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
<meta name="description" content="API docs for the rootBundle property from the services library, for the Dart programming language.">
<title>rootBundle property - services library - Dart API</title>
<!-- required because all the links are pseudo-absolute -->
<base href="..">
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="static-assets/github.css">
<link rel="stylesheet" href="static-assets/styles.css">
<link rel="icon" href="static-assets/favicon.png">
</head>
<body>
<div id="overlay-under-drawer"></div>
<header id="title">
<button id="sidenav-left-toggle" type="button">&nbsp;</button>
<ol class="breadcrumbs gt-separated dark hidden-xs">
<li><a href="index.html">flutter</a></li>
<li><a href="services/services-library.html">services</a></li>
<li class="self-crumb">rootBundle property</li>
</ol>
<div class="self-name">rootBundle</div>
<form class="search navbar-right" role="search">
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
</header>
<main>
<div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
<header id="header-search-sidebar" class="hidden-l">
<form class="search-sidebar" role="search">
<input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
</header>
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
<li><a href="index.html">flutter</a></li>
<li><a href="services/services-library.html">services</a></li>
<li class="self-crumb">rootBundle property</li>
</ol>
<h5>services library</h5>
<ol>
<li class="section-title"><a href="services/services-library.html#classes">Classes</a></li>
<li><a href="services/AndroidMotionEvent-class.html">AndroidMotionEvent</a></li>
<li><a href="services/AndroidPointerCoords-class.html">AndroidPointerCoords</a></li>
<li><a href="services/AndroidPointerProperties-class.html">AndroidPointerProperties</a></li>
<li><a href="services/AndroidViewController-class.html">AndroidViewController</a></li>
<li><a href="services/ApplicationSwitcherDescription-class.html">ApplicationSwitcherDescription</a></li>
<li><a href="services/AssetBundle-class.html">AssetBundle</a></li>
<li><a href="services/BasicMessageChannel-class.html">BasicMessageChannel</a></li>
<li><a href="services/BinaryCodec-class.html">BinaryCodec</a></li>
<li><a class="deprecated" href="services/BinaryMessages-class.html">BinaryMessages</a></li>
<li><a href="services/BinaryMessenger-class.html">BinaryMessenger</a></li>
<li><a href="services/BlacklistingTextInputFormatter-class.html">BlacklistingTextInputFormatter</a></li>
<li><a href="dart-typed_data/ByteData-class.html">ByteData</a></li>
<li><a href="services/CachingAssetBundle-class.html">CachingAssetBundle</a></li>
<li><a href="services/Clipboard-class.html">Clipboard</a></li>
<li><a href="services/ClipboardData-class.html">ClipboardData</a></li>
<li><a href="services/EventChannel-class.html">EventChannel</a></li>
<li><a href="services/FontLoader-class.html">FontLoader</a></li>
<li><a href="services/GLFWKeyHelper-class.html">GLFWKeyHelper</a></li>
<li><a href="services/HapticFeedback-class.html">HapticFeedback</a></li>
<li><a href="services/JSONMessageCodec-class.html">JSONMessageCodec</a></li>
<li><a href="services/JSONMethodCodec-class.html">JSONMethodCodec</a></li>
<li><a href="services/KeyboardKey-class.html">KeyboardKey</a></li>
<li><a href="services/KeyHelper-class.html">KeyHelper</a></li>
<li><a href="services/LengthLimitingTextInputFormatter-class.html">LengthLimitingTextInputFormatter</a></li>
<li><a href="services/LogicalKeyboardKey-class.html">LogicalKeyboardKey</a></li>
<li><a href="services/MessageCodec-class.html">MessageCodec</a></li>
<li><a href="services/MethodCall-class.html">MethodCall</a></li>
<li><a href="services/MethodChannel-class.html">MethodChannel</a></li>
<li><a href="services/MethodCodec-class.html">MethodCodec</a></li>
<li><a href="services/NetworkAssetBundle-class.html">NetworkAssetBundle</a></li>
<li><a href="services/OptionalMethodChannel-class.html">OptionalMethodChannel</a></li>
<li><a href="services/PhysicalKeyboardKey-class.html">PhysicalKeyboardKey</a></li>
<li><a href="services/PlatformAssetBundle-class.html">PlatformAssetBundle</a></li>
<li><a href="services/PlatformViewController-class.html">PlatformViewController</a></li>
<li><a href="services/PlatformViewsRegistry-class.html">PlatformViewsRegistry</a></li>
<li><a href="services/PlatformViewsService-class.html">PlatformViewsService</a></li>
<li><a href="services/RawFloatingCursorPoint-class.html">RawFloatingCursorPoint</a></li>
<li><a href="services/RawKeyboard-class.html">RawKeyboard</a></li>
<li><a href="services/RawKeyDownEvent-class.html">RawKeyDownEvent</a></li>
<li><a href="services/RawKeyEvent-class.html">RawKeyEvent</a></li>
<li><a href="services/RawKeyEventData-class.html">RawKeyEventData</a></li>
<li><a href="services/RawKeyEventDataAndroid-class.html">RawKeyEventDataAndroid</a></li>
<li><a href="services/RawKeyEventDataFuchsia-class.html">RawKeyEventDataFuchsia</a></li>
<li><a href="services/RawKeyEventDataLinux-class.html">RawKeyEventDataLinux</a></li>
<li><a href="services/RawKeyEventDataMacOs-class.html">RawKeyEventDataMacOs</a></li>
<li><a href="services/RawKeyUpEvent-class.html">RawKeyUpEvent</a></li>
<li><a href="services/StandardMessageCodec-class.html">StandardMessageCodec</a></li>
<li><a href="services/StandardMethodCodec-class.html">StandardMethodCodec</a></li>
<li><a href="services/StringCodec-class.html">StringCodec</a></li>
<li><a href="services/SystemChannels-class.html">SystemChannels</a></li>
<li><a href="services/SystemChrome-class.html">SystemChrome</a></li>
<li><a href="services/SystemNavigator-class.html">SystemNavigator</a></li>
<li><a href="services/SystemSound-class.html">SystemSound</a></li>
<li><a href="services/SystemUiOverlayStyle-class.html">SystemUiOverlayStyle</a></li>
<li><a href="services/TextEditingValue-class.html">TextEditingValue</a></li>
<li><a href="services/TextInput-class.html">TextInput</a></li>
<li><a href="services/TextInputClient-class.html">TextInputClient</a></li>
<li><a href="services/TextInputConfiguration-class.html">TextInputConfiguration</a></li>
<li><a href="services/TextInputConnection-class.html">TextInputConnection</a></li>
<li><a href="services/TextInputFormatter-class.html">TextInputFormatter</a></li>
<li><a href="services/TextInputType-class.html">TextInputType</a></li>
<li><a href="dart-ui/TextPosition-class.html">TextPosition</a></li>
<li><a href="services/TextRange-class.html">TextRange</a></li>
<li><a href="services/TextSelection-class.html">TextSelection</a></li>
<li><a href="services/TextSelectionDelegate-class.html">TextSelectionDelegate</a></li>
<li><a href="services/UiKitViewController-class.html">UiKitViewController</a></li>
<li><a href="services/WhitelistingTextInputFormatter-class.html">WhitelistingTextInputFormatter</a></li>
<li class="section-title"><a href="services/services-library.html#mixins">Mixins</a></li>
<li><a href="services/ServicesBinding-mixin.html">ServicesBinding</a></li>
<li class="section-title"><a href="services/services-library.html#constants">Constants</a></li>
<li><a href="services/defaultBinaryMessenger-constant.html">defaultBinaryMessenger</a></li>
<li class="section-title"><a href="services/services-library.html#properties">Properties</a></li>
<li><a href="services/platformViewsRegistry.html">platformViewsRegistry</a></li>
<li><a href="services/rootBundle.html">rootBundle</a></li>
<li class="section-title"><a href="services/services-library.html#enums">Enums</a></li>
<li><a href="dart-ui/Brightness-class.html">Brightness</a></li>
<li><a href="services/DeviceOrientation-class.html">DeviceOrientation</a></li>
<li><a href="services/FloatingCursorDragState-class.html">FloatingCursorDragState</a></li>
<li><a href="services/KeyboardSide-class.html">KeyboardSide</a></li>
<li><a href="services/ModifierKey-class.html">ModifierKey</a></li>
<li><a href="services/SystemSoundType-class.html">SystemSoundType</a></li>
<li><a href="services/SystemUiOverlay-class.html">SystemUiOverlay</a></li>
<li><a href="dart-ui/TextAffinity-class.html">TextAffinity</a></li>
<li><a href="services/TextCapitalization-class.html">TextCapitalization</a></li>
<li><a href="services/TextInputAction-class.html">TextInputAction</a></li>
<li class="section-title"><a href="services/services-library.html#typedefs">Typedefs</a></li>
<li><a href="services/MessageHandler.html">MessageHandler</a></li>
<li><a href="services/PlatformViewCreatedCallback.html">PlatformViewCreatedCallback</a></li>
<li><a href="services/TextInputFormatFunction.html">TextInputFormatFunction</a></li>
<li class="section-title"><a href="services/services-library.html#exceptions">Exceptions</a></li>
<li><a href="services/MissingPluginException-class.html">MissingPluginException</a></li>
<li><a href="services/PlatformException-class.html">PlatformException</a></li>
</ol>
</div><!--/.sidebar-offcanvas-left-->
<div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
<div><h1><span class="kind-top-level-property">rootBundle</span> top-level property </h1></div>
<section class="multi-line-signature">
<span class="returntype"><a href="services/AssetBundle-class.html">AssetBundle</a></span>
<span class="name ">rootBundle</span>
<div class="features">final</div>
</section>
<section class="desc markdown">
<p>The <a href="services/AssetBundle-class.html">AssetBundle</a> from which this application was loaded.</p>
<p>The <a href="services/rootBundle.html">rootBundle</a> contains the resources that were packaged with the
application when it was built. To add resources to the <a href="services/rootBundle.html">rootBundle</a> for your
application, add them to the <code>assets</code> subsection of the <code>flutter</code> section of
your application's <code>pubspec.yaml</code> manifest.</p>
<p>For example:</p>
<pre class="language-yaml"><code class="language-yaml">name: my_awesome_application
flutter:
assets:
- images/hamilton.jpeg
- images/lafayette.jpeg
</code></pre>
<p>Rather than using <a href="services/rootBundle.html">rootBundle</a> directly, consider obtaining the
<a href="services/AssetBundle-class.html">AssetBundle</a> for the current <a href="widgets/BuildContext-class.html">BuildContext</a> using <a href="widgets/DefaultAssetBundle/of.html">DefaultAssetBundle.of</a>.
This layer of indirection lets ancestor widgets substitute a different
<a href="services/AssetBundle-class.html">AssetBundle</a> at runtime (e.g., for testing or localization) rather than
directly replying upon the <a href="services/rootBundle.html">rootBundle</a> created at build time. For
convenience, the <a href="widgets/WidgetsApp-class.html">WidgetsApp</a> or <a href="material/MaterialApp-class.html">MaterialApp</a> widget at the top of the
widget hierarchy configures the <a href="widgets/DefaultAssetBundle-class.html">DefaultAssetBundle</a> to be the <a href="services/rootBundle.html">rootBundle</a>.</p>
<p>See also:</p><ul><li><a href="widgets/DefaultAssetBundle-class.html">DefaultAssetBundle</a></li><li><a href="services/NetworkAssetBundle-class.html">NetworkAssetBundle</a></li></ul>
</section>
<section class="summary source-code" id="source">
<h2><span>Implementation</span></h2>
<pre class="language-dart"><code class="language-dart">final AssetBundle rootBundle = _initRootBundle()</code></pre>
</section>
</div> <!-- /.main-content -->
<div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
</div><!--/.sidebar-offcanvas-->
</main>
<footer>
<span class="no-break">
flutter 0.0.0-unknown
</span>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>
</body>
</html>
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

自己搭建一个flutter api 文档方便查看
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/didou/FlutterAPIDocument.git
git@gitee.com:didou/FlutterAPIDocument.git
didou
FlutterAPIDocument
FlutterAPIDocument
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /