build.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  7. <meta name="description" content="API docs for the build method from the ViewScreen class, for the Dart programming language.">
  8. <title>build method - ViewScreen class - note library - Dart API</title>
  9. <link rel="preconnect" href="https://fonts.gstatic.com">
  10. <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  11. <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  12. <link rel="stylesheet" href="../../static-assets/github.css">
  13. <link rel="stylesheet" href="../../static-assets/styles.css">
  14. <link rel="icon" href="../../static-assets/favicon.png">
  15. </head>
  16. <body data-base-href="../../"
  17. data-using-base-href="false">
  18. <div id="overlay-under-drawer"></div>
  19. <header id="title">
  20. <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  21. <ol class="breadcrumbs gt-separated dark hidden-xs">
  22. <li><a href="../../index.html">trpp</a></li>
  23. <li><a href="../../screens_note/screens_note-library.html">note</a></li>
  24. <li><a href="../../screens_note/ViewScreen-class.html">ViewScreen</a></li>
  25. <li class="self-crumb">build method</li>
  26. </ol>
  27. <div class="self-name">build</div>
  28. <form class="search navbar-right" role="search">
  29. <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  30. </form>
  31. </header>
  32. <main>
  33. <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
  34. <header id="header-search-sidebar" class="hidden-l">
  35. <form class="search-sidebar" role="search">
  36. <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  37. </form>
  38. </header>
  39. <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
  40. <li><a href="../../index.html">trpp</a></li>
  41. <li><a href="../../screens_note/screens_note-library.html">note</a></li>
  42. <li><a href="../../screens_note/ViewScreen-class.html">ViewScreen</a></li>
  43. <li class="self-crumb">build method</li>
  44. </ol>
  45. <h5>ViewScreen class</h5>
  46. <ol>
  47. <li class="section-title"><a href="../../screens_note/ViewScreen-class.html#constructors">Constructors</a></li>
  48. <li><a href="../../screens_note/ViewScreen/ViewScreen.html">ViewScreen</a></li>
  49. <li class="section-title">
  50. <a href="../../screens_note/ViewScreen-class.html#instance-properties">Properties</a>
  51. </li>
  52. <li><a href="../../screens_note/ViewScreen/getText.html">getText</a></li>
  53. <li><a href="../../screens_note/ViewScreen/handleDelete.html">handleDelete</a></li>
  54. <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/hashCode.html">hashCode</a></li>
  55. <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/key.html">key</a></li>
  56. <li><a href="../../screens_note/ViewScreen/mSetState.html">mSetState</a></li>
  57. <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>
  58. <li><a href="../../screens_note/ViewScreen/widget.html">widget</a></li>
  59. <li class="section-title"><a href="../../screens_note/ViewScreen-class.html#instance-methods">Methods</a></li>
  60. <li><a href="../../screens_note/ViewScreen/build.html">build</a></li>
  61. <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/StatelessWidget/createElement.html">createElement</a></li>
  62. <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/debugDescribeChildren.html">debugDescribeChildren</a></li>
  63. <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/debugFillProperties.html">debugFillProperties</a></li>
  64. <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
  65. <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toDiagnosticsNode.html">toDiagnosticsNode</a></li>
  66. <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/Diagnosticable/toString.html">toString</a></li>
  67. <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringDeep.html">toStringDeep</a></li>
  68. <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringShallow.html">toStringShallow</a></li>
  69. <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/toStringShort.html">toStringShort</a></li>
  70. <li class="section-title inherited"><a href="../../screens_note/ViewScreen-class.html#operators">Operators</a></li>
  71. <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/operator_equals.html">operator ==</a></li>
  72. </ol>
  73. </div><!--/.sidebar-offcanvas-->
  74. <div id="dartdoc-main-content" class="main-content">
  75. <div><h1><span class="kind-method">build</span> method </h1></div>
  76. <section class="multi-line-signature">
  77. <div>
  78. <ol class="annotation-list">
  79. <li>@<a href="https://api.flutter.dev/flutter/dart-core/override-constant.html">override</a></li>
  80. </ol>
  81. </div>
  82. <span class="returntype"><a href="https://api.flutter.dev/flutter/widgets/Widget-class.html">Widget</a></span>
  83. <span class="name ">build</span>
  84. (<wbr><ol class="parameter-list"><li><span class="parameter" id="build-param-context"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a></span> <span class="parameter-name">context</span></span></li>
  85. </ol>)
  86. <div class="features">override</div>
  87. </section>
  88. <section class="desc markdown">
  89. <p>Describes the part of the user interface represented by this widget.</p>
  90. <p>The framework calls this method when this widget is inserted into the tree
  91. in a given <a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a> and when the dependencies of this widget change
  92. (e.g., an <a href="https://api.flutter.dev/flutter/widgets/InheritedWidget-class.html">InheritedWidget</a> referenced by this widget changes). This
  93. method can potentially be called in every frame and should not have any side
  94. effects beyond building a widget.</p>
  95. <p>The framework replaces the subtree below this widget with the widget
  96. returned by this method, either by updating the existing subtree or by
  97. removing the subtree and inflating a new subtree, depending on whether the
  98. widget returned by this method can update the root of the existing
  99. subtree, as determined by calling <a href="https://api.flutter.dev/flutter/widgets/Widget/canUpdate.html">Widget.canUpdate</a>.</p>
  100. <p>Typically implementations return a newly created constellation of widgets
  101. that are configured with information from this widget's constructor and
  102. from the given <a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a>.</p>
  103. <p>The given <a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a> contains information about the location in the
  104. tree at which this widget is being built. For example, the context
  105. provides the set of inherited widgets for this location in the tree. A
  106. given widget might be built with multiple different <a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a>
  107. arguments over time if the widget is moved around the tree or if the
  108. widget is inserted into the tree in multiple places at once.</p>
  109. <p>The implementation of this method must only depend on:</p>
  110. <ul>
  111. <li>the fields of the widget, which themselves must not change over time,
  112. and</li>
  113. <li>any ambient state obtained from the <code>context</code> using
  114. <a href="https://api.flutter.dev/flutter/widgets/BuildContext/dependOnInheritedWidgetOfExactType.html">BuildContext.dependOnInheritedWidgetOfExactType</a>.</li>
  115. </ul>
  116. <p>If a widget's <a href="../../screens_note/ViewScreen/build.html">build</a> method is to depend on anything else, use a
  117. <a href="https://api.flutter.dev/flutter/widgets/StatefulWidget-class.html">StatefulWidget</a> instead.</p>
  118. <p>See also:</p>
  119. <ul>
  120. <li><a href="https://api.flutter.dev/flutter/widgets/StatelessWidget-class.html">StatelessWidget</a>, which contains the discussion on performance considerations.</li>
  121. </ul>
  122. </section>
  123. <section class="summary source-code" id="source">
  124. <h2><span>Implementation</span></h2>
  125. <pre class="language-dart"><code class="language-dart">@override
  126. Widget build(BuildContext context) {
  127. return Column(
  128. children: [
  129. CustomToolbar(
  130. title: &#39;View Note&#39;,
  131. icon: FontAwesomeIcons.trash,
  132. onPressed: () {
  133. handleDelete();
  134. },
  135. additionalBack: widget.saveObBackBtn,
  136. ),
  137. GestureDetector(
  138. onTap: () =&gt; mSetState(),
  139. child: ReadingTextField(
  140. text: getText(),
  141. fontWeight: FontWeight.w400,
  142. fontSize: 22,
  143. ),
  144. ),
  145. ],
  146. );
  147. }</code></pre>
  148. </section>
  149. </div> <!-- /.main-content -->
  150. <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
  151. </div><!--/.sidebar-offcanvas-->
  152. </main>
  153. <footer>
  154. <span class="no-break">
  155. trpp
  156. 2.0.0+2
  157. </span>
  158. </footer>
  159. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  160. <script src="../../static-assets/typeahead.bundle.min.js"></script>
  161. <script src="../../static-assets/highlight.pack.js"></script>
  162. <script src="../../static-assets/script.js"></script>
  163. </body>
  164. </html>