Compare commits

..

4 Commits

+11 -11
View File
@@ -1,6 +1,6 @@
<application> <application>
<component name="Translation.Cache"> <component name="Translation.Cache">
<option name="lastTrimTime" value="1718077261161" /> <option name="lastTrimTime" value="1718869841413" />
</component> </component>
<component name="Translation.Settings"> <component name="Translation.Settings">
<option name="primaryLanguage" value="CHINESE" /> <option name="primaryLanguage" value="CHINESE" />
@@ -11,6 +11,14 @@
<option name="translationDialogLocationY" value="536" /> <option name="translationDialogLocationY" value="536" />
<option name="translationDialogWidth" value="1253" /> <option name="translationDialogWidth" value="1253" />
<histories> <histories>
<item value="A [TapRegion] that adds its children to the tap region group for widgets based on the [EditableText] text editing widget, such as [TextField] and [CupertinoTextField]. Widgets that are wrapped with a [TextFieldTapRegion] are considered to be part of a text field for purposes of unfocus behavior. So, when the user taps on them, the currently focused text field won't be unfocused by default. This allows controls like spinners, copy buttons, and formatting buttons to be associated with a text field without causing the text field to lose focus when they are interacted with. {@tool dartpad} This example shows how to use a [TextFieldTapRegion] to wrap a set of &quot;spinner&quot; buttons that increment and decrement a value in the text field without causing the text field to lose keyboard focus. This example includes a generic `SpinnerField&lt;T&gt;` class that you can copypaste into your own project and customize. See code in examplesapilibwidgetstap_regiontext_field_tap_region.0.dart {@end-tool} See also: [TapRegion], the widget that this widget uses to add widgets to the group of text fields." />
<item value="An interface for implementing text input controls that receive text editing state changes and visual input control requests. Editing state changes and input control requests are sent by the framework when the editing state of the attached text input client changes, or it requests the input control to be shown or hidden, for example. The input control can be installed with [TextInput.setInputControl], and the default platform text input control can be restored with [TextInput.restorePlatformInputControl]. The [TextInputControl] class must be extended. [TextInputControl] implementations should call [TextInput.updateEditingValue] to send user input to the attached input client." />
<item value="A widget that absorbs pointers during hit testing. When [absorbing] is true, this widget prevents its subtree from receiving pointer events by terminating hit testing at itself. It still consumes space during layout and paints its child as usual. It just prevents its children from being the target of located events, because it returns true from [RenderBox.hitTest]." />
<item value="raw gesture detector" />
<item value="A pointer device with a stylus that has been inverted." />
<item value="A pointer device with a stylus." />
<item value="Configuration of offset passed to [DragStartDetails]. See also: [DragGestureRecognizer.dragStartBehavior], which gives an example for the different behaviors." />
<item value="Set the initial position at the position where this gesture recognizer won the arena." />
<item value="{@template flutter.widgets.list_view.prototypeItem} If non-null, forces the children to have the same extent as the given widget in the scroll direction. Specifying an [prototypeItem] is more efficient than letting the children determine their own extent because the scrolling machinery can make use of the foreknowledge of the children's extent to save work, for example when the scroll position changes drastically. See also: [SliverPrototypeExtentList], the sliver used internally when this property is provided. It constrains its box children to have the same extent as a prototype item along the main axis. The [itemExtent] property, which allows forcing the children's extent to a given value. The [itemExtentBuilder] property, which allows forcing the children's extent to be the value returned by the callback. {@endtemplate}" /> <item value="{@template flutter.widgets.list_view.prototypeItem} If non-null, forces the children to have the same extent as the given widget in the scroll direction. Specifying an [prototypeItem] is more efficient than letting the children determine their own extent because the scrolling machinery can make use of the foreknowledge of the children's extent to save work, for example when the scroll position changes drastically. See also: [SliverPrototypeExtentList], the sliver used internally when this property is provided. It constrains its box children to have the same extent as a prototype item along the main axis. The [itemExtent] property, which allows forcing the children's extent to a given value. The [itemExtentBuilder] property, which allows forcing the children's extent to be the value returned by the callback. {@endtemplate}" />
<item value="A material expansion panel. It has a header and a body and can be either expanded or collapsed. The body of the panel is only visible when it is expanded. {@youtube 560 315 https:www.youtube.comwatch?v=2aJZzRMziJc} Expansion panels are only intended to be used as children for [ExpansionPanelList]." /> <item value="A material expansion panel. It has a header and a body and can be either expanded or collapsed. The body of the panel is only visible when it is expanded. {@youtube 560 315 https:www.youtube.comwatch?v=2aJZzRMziJc} Expansion panels are only intended to be used as children for [ExpansionPanelList]." />
<item value="reduced map ids" /> <item value="reduced map ids" />
@@ -53,19 +61,11 @@
<item value="An optional maximum number of lines for the text to span, wrapping if necessary. If the text exceeds the given number of lines, it will be truncated according to [overflow]. If this is 1, text will not wrap. Otherwise, text will be wrapped at the edge of the box. If this is null, but there is an ambient [DefaultTextStyle] that specifies an explicit number for its [DefaultTextStyle.maxLines], then the [DefaultTextStyle] value will take precedence. You can use a [RichText] widget directly to entirely override the [DefaultTextStyle]." /> <item value="An optional maximum number of lines for the text to span, wrapping if necessary. If the text exceeds the given number of lines, it will be truncated according to [overflow]. If this is 1, text will not wrap. Otherwise, text will be wrapped at the edge of the box. If this is null, but there is an ambient [DefaultTextStyle] that specifies an explicit number for its [DefaultTextStyle.maxLines], then the [DefaultTextStyle] value will take precedence. You can use a [RichText] widget directly to entirely override the [DefaultTextStyle]." />
<item value="Whether to show or hide a child. By default, the [visible] property controls whether the [child] is included in the subtree or not; when it is not [visible], the [replacement] child (typically a zero-sized box) is included instead. A variety of flags can be used to tweak exactly how the child is hidden. (Changing the flags dynamically is discouraged, as it can cause the [child] subtree to be rebuilt, with any state in the subtree being discarded. Typically, only the [visible] flag is changed dynamically.)" /> <item value="Whether to show or hide a child. By default, the [visible] property controls whether the [child] is included in the subtree or not; when it is not [visible], the [replacement] child (typically a zero-sized box) is included instead. A variety of flags can be used to tweak exactly how the child is hidden. (Changing the flags dynamically is discouraged, as it can cause the [child] subtree to be rebuilt, with any state in the subtree being discarded. Typically, only the [visible] flag is changed dynamically.)" />
<item value="An optional maximum number of lines for the text to span, wrapping if necessary. If the text exceeds the given number of lines, it will be truncated according to [overflow]. If this is 1, text will not wrap. Otherwise, text will be wrapped at the edge of the box. If this is non-null, it will override even explicit null values of [Text.maxLines]." /> <item value="An optional maximum number of lines for the text to span, wrapping if necessary. If the text exceeds the given number of lines, it will be truncated according to [overflow]. If this is 1, text will not wrap. Otherwise, text will be wrapped at the edge of the box. If this is non-null, it will override even explicit null values of [Text.maxLines]." />
<item value="{@template dart.ui.textHeightBehavior} Defines how to apply [TextStyle.height] over and under text. [TextHeightBehavior.applyHeightToFirstAscent] and [TextHeightBehavior.applyHeightToLastDescent] represent whether the [TextStyle.height] modifier will be applied to the corresponding metric. By default both properties are true, and [TextStyle.height] is applied as normal. When set to false, the font's default ascent will be used. [TextHeightBehavior.leadingDistribution] determines how the leading is distributed over and under text. This property applies before [TextHeightBehavior.applyHeightToFirstAscent] and [TextHeightBehavior.applyHeightToLastDescent]. {@endtemplate}" />
<item value="An unmodifiable list of the UTF-16 code units of this string." />
<item value="Spacer creates an adjustable, empty spacer that can be used to tune the spacing between widgets in a [Flex] container, like [Row] or [Column]. The [Spacer] widget will take up any available space, so setting the [Flex.mainAxisAlignment] on a flex container that contains a [Spacer] to [MainAxisAlignment.spaceAround], [MainAxisAlignment.spaceBetween], or [MainAxisAlignment.spaceEvenly] will not have any visible effect: the [Spacer] has taken up all of the additional space, therefore there is none left to redistribute." />
<item value="A widget that controls how a child of a [Row], [Column], or [Flex] flexes. Using a [Flexible] widget gives a child of a [Row], [Column], or [Flex] the flexibility to expand to fill the available space in the main axis (e.g., horizontally for a [Row] or vertically for a [Column]), but, unlike [Expanded], [Flexible] does not require the child to fill the available space. A [Flexible] widget must be a descendant of a [Row], [Column], or [Flex], and the path from the [Flexible] widget to its enclosing [Row], [Column], or [Flex] must contain only [StatelessWidget]s or [StatefulWidget]s (not other kinds of widgets, like [RenderObjectWidget]s)." />
<item value="![This results in two thin blue boxes with a larger amber box in between.](https:flutter.github.ioassets-for-api-docsassetswidgetsexpanded_column.png)" />
<item value="{@tool dartpad} This example shows how to use an [Expanded] widget in a [Column] so that its middle child, a [Container] here, expands to fill the space." />
<item value="An [Expanded] widget must be a descendant of a [Row], [Column], or [Flex], and the path from the [Expanded] widget to its enclosing [Row], [Column], or [Flex] must contain only [StatelessWidget]s or [StatefulWidget]s (not other kinds of widgets, like [RenderObjectWidget]s)." />
<item value="Using an [Expanded] widget makes a child of a [Row], [Column], or [Flex] expand to fill the available space along the main axis (e.g., horizontally for a [Row] or vertically for a [Column]). If multiple children are expanded, the available space is divided among them according to the [flex] factor." />
</histories> </histories>
<option name="languageScores"> <option name="languageScores">
<map> <map>
<entry key="CHINESE" value="475" /> <entry key="CHINESE" value="482" />
<entry key="ENGLISH" value="476" /> <entry key="ENGLISH" value="483" />
<entry key="HAWAIIAN" value="1" /> <entry key="HAWAIIAN" value="1" />
<entry key="POLISH" value="1" /> <entry key="POLISH" value="1" />
<entry key="ROMANIAN" value="1" /> <entry key="ROMANIAN" value="1" />