scripting-cli 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +6 -0
- package/dist/build.js +32 -0
- package/dist/config/AppJsonPlugin.js +72 -0
- package/dist/config/webpack.config.js +79 -0
- package/dist/createApp.js +178 -0
- package/dist/index.js +23 -0
- package/dist/startDevServer.js +113 -0
- package/dist/utils.js +29 -0
- package/package.json +41 -0
- package/public/scripting.d.ts +3478 -0
- package/src/build.ts +31 -0
- package/src/config/AppJsonPlugin.ts +96 -0
- package/src/config/webpack.config.ts +80 -0
- package/src/createApp.ts +206 -0
- package/src/index.ts +20 -0
- package/src/startDevServer.ts +136 -0
- package/src/utils.ts +30 -0
- package/tsconfig.json +98 -0
|
@@ -0,0 +1,3478 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* scripting-js v1.0.0
|
|
3
|
+
* Copyright (c) 2024-present thomfang <tilfon9017@gmail.com>
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type RefObject<T> = {
|
|
8
|
+
readonly current: T | null;
|
|
9
|
+
};
|
|
10
|
+
type MutableRefObject<T> = {
|
|
11
|
+
current: T;
|
|
12
|
+
};
|
|
13
|
+
declare function useRef<T>(initialValue: T): MutableRefObject<T>;
|
|
14
|
+
declare function useRef<T>(initialValue: T | null): RefObject<T>;
|
|
15
|
+
declare function useRef<T = undefined>(): MutableRefObject<T | undefined>;
|
|
16
|
+
|
|
17
|
+
declare function runApp(node: VirtualNode): void;
|
|
18
|
+
|
|
19
|
+
declare function createElement<P = {}>(type: FunctionComponent<P>, props: ComponentProps<P>, ...children: VirtualNode[]): VirtualNode;
|
|
20
|
+
|
|
21
|
+
declare function useCallback<T extends Function>(callback: T, deps: any[]): T;
|
|
22
|
+
|
|
23
|
+
type ProviderProps<T> = {
|
|
24
|
+
value: T;
|
|
25
|
+
children: VirtualNode;
|
|
26
|
+
};
|
|
27
|
+
type ConsumerProps<T> = {
|
|
28
|
+
children: (value: T) => VirtualNode;
|
|
29
|
+
};
|
|
30
|
+
type Provider<T> = (props: ProviderProps<T>) => VirtualNode;
|
|
31
|
+
type Consumer<T> = (props: ConsumerProps<T>) => VirtualNode;
|
|
32
|
+
type Context<T> = {
|
|
33
|
+
readonly id: number;
|
|
34
|
+
readonly Provider: Provider<T>;
|
|
35
|
+
readonly Consumer: Consumer<T>;
|
|
36
|
+
};
|
|
37
|
+
declare function createContext<T>(): Context<T>;
|
|
38
|
+
|
|
39
|
+
declare function useContext<T>(context: Context<T>): T;
|
|
40
|
+
declare function useSelector<T, R>(context: Context<T>, selector: (context: T) => R): R;
|
|
41
|
+
|
|
42
|
+
declare function useEffect(callback: EffectCallback, deps: any[]): void;
|
|
43
|
+
|
|
44
|
+
declare function useMemo<T>(factory: () => T, deps: any[]): T;
|
|
45
|
+
|
|
46
|
+
declare function useReducer<R extends Reducer<any, any>, I>(reducer: R, initializerArg: I & ReducerState<R>, initializer: (arg: I & ReducerState<R>) => ReducerState<R>): [ReducerState<R>, Dispatch<ReducerAction<R>>];
|
|
47
|
+
declare function useReducer<R extends Reducer<any, any>>(reducer: R, initialState: ReducerState<R>, initializer?: undefined): [ReducerState<R>, Dispatch<ReducerAction<R>>];
|
|
48
|
+
|
|
49
|
+
declare function useState<T = undefined>(): [T | undefined, (state: SetStateAction<T | undefined>) => void];
|
|
50
|
+
declare function useState<T>(value: T | StateInitializer<T>): [T, (state: SetStateAction<T>) => void];
|
|
51
|
+
|
|
52
|
+
type RenderObjectShowOnScreenOptions = {
|
|
53
|
+
rect?: {
|
|
54
|
+
left: number;
|
|
55
|
+
top: number;
|
|
56
|
+
width: number;
|
|
57
|
+
height: number;
|
|
58
|
+
};
|
|
59
|
+
duration?: number;
|
|
60
|
+
curve?: Curve;
|
|
61
|
+
};
|
|
62
|
+
declare function __createRenderObjectRef(refKey: string): {
|
|
63
|
+
renderObject: {
|
|
64
|
+
showOnScreen(options?: RenderObjectShowOnScreenOptions): void;
|
|
65
|
+
getPaintBounds(): Promise<PaintRect | null>;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
type RenderObject = ReturnType<typeof __createRenderObjectRef>;
|
|
69
|
+
|
|
70
|
+
type KeyProps = {
|
|
71
|
+
key?: string;
|
|
72
|
+
};
|
|
73
|
+
type RefProps<T extends RenderObject = RenderObject> = {
|
|
74
|
+
ref?: RefObject<T>;
|
|
75
|
+
};
|
|
76
|
+
type Brightness = 'light' | 'dark';
|
|
77
|
+
type Offset = {
|
|
78
|
+
x: number;
|
|
79
|
+
y: number;
|
|
80
|
+
};
|
|
81
|
+
type RelativeRect = {
|
|
82
|
+
left: number;
|
|
83
|
+
top: number;
|
|
84
|
+
right: number;
|
|
85
|
+
bottom: number;
|
|
86
|
+
} | {
|
|
87
|
+
rect: {
|
|
88
|
+
left: number;
|
|
89
|
+
top: number;
|
|
90
|
+
width: number;
|
|
91
|
+
height: number;
|
|
92
|
+
};
|
|
93
|
+
size: {
|
|
94
|
+
width: number;
|
|
95
|
+
height: number;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
type Color = string | {
|
|
99
|
+
r: number;
|
|
100
|
+
g: number;
|
|
101
|
+
b: number;
|
|
102
|
+
/**
|
|
103
|
+
*透明度, 0 ~ 1
|
|
104
|
+
*/
|
|
105
|
+
o: number;
|
|
106
|
+
} | {
|
|
107
|
+
hex: string;
|
|
108
|
+
opacity: number;
|
|
109
|
+
};
|
|
110
|
+
type BoxFit = 'contain' | 'cover' | 'fill' | 'fitHeight' | 'fitWidth' | 'scaleDown' | 'none';
|
|
111
|
+
type ImageRepeat = 'noRepeat' | 'repeat' | 'repeatX' | 'repeatY';
|
|
112
|
+
/**
|
|
113
|
+
* margin和padding使用的描述
|
|
114
|
+
*/
|
|
115
|
+
type EdgeInsets = {
|
|
116
|
+
horizontal?: number;
|
|
117
|
+
vertical?: number;
|
|
118
|
+
left?: number;
|
|
119
|
+
right?: number;
|
|
120
|
+
top?: number;
|
|
121
|
+
bottom?: number;
|
|
122
|
+
};
|
|
123
|
+
type EdgeInsetsDirectional = {
|
|
124
|
+
horizontal?: number;
|
|
125
|
+
vertical?: number;
|
|
126
|
+
start?: number;
|
|
127
|
+
end?: number;
|
|
128
|
+
top?: number;
|
|
129
|
+
bottom?: number;
|
|
130
|
+
};
|
|
131
|
+
type FontWeight = 300 | 400 | 500 | 600 | 700 | 800 | 900 | 'w300' | 'w400' | 'w500' | 'w600' | 'w700' | 'w800' | 'w900' | 'normal' | 'bold';
|
|
132
|
+
type FontStyle = 'normal' | 'italic';
|
|
133
|
+
type TextBaseLine = 'alphabetic' | 'ideographic';
|
|
134
|
+
type TextDecoration = 'none' | 'underline' | 'overline' | 'lineThrough';
|
|
135
|
+
type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed' | 'wavy';
|
|
136
|
+
type TextOverflow = 'clip' | 'fade' | 'ellipsis' | 'visible';
|
|
137
|
+
type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'start' | 'end';
|
|
138
|
+
type TextDirection = 'rtl' | 'ltr';
|
|
139
|
+
type TextWidthBasis = 'parent' | 'longestLine';
|
|
140
|
+
type TextLeadingDistribution = 'proportional' | 'even';
|
|
141
|
+
type TextHeightBehavior = {
|
|
142
|
+
applyHeightToFirstAscent?: boolean;
|
|
143
|
+
applyHeightToLastDescent?: boolean;
|
|
144
|
+
leadingDistribution?: TextLeadingDistribution;
|
|
145
|
+
};
|
|
146
|
+
type StackFit = 'loose' | 'expand' | 'passthrough';
|
|
147
|
+
/**
|
|
148
|
+
* 对齐方式
|
|
149
|
+
*
|
|
150
|
+
* topLeft: {x: -1, y: -1}
|
|
151
|
+
*
|
|
152
|
+
* center: {x: 0, y: 0}
|
|
153
|
+
*
|
|
154
|
+
* bottomRight: {x: 1, y: 1}
|
|
155
|
+
*/
|
|
156
|
+
type Alignment = Offset | 'topLeft' | 'topCenter' | 'topRight' | 'centerLeft' | 'center' | 'centerRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
157
|
+
type WrapAlignment = 'start' | 'end' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly';
|
|
158
|
+
type WrapCrossAlignment = 'start' | 'end' | 'center';
|
|
159
|
+
type BorderSide = {
|
|
160
|
+
color?: Color;
|
|
161
|
+
width?: number;
|
|
162
|
+
style?: 'none' | 'solid';
|
|
163
|
+
};
|
|
164
|
+
type BorderRadius = {
|
|
165
|
+
topLeft?: number;
|
|
166
|
+
topRight?: number;
|
|
167
|
+
bottomLeft?: number;
|
|
168
|
+
bottomRight?: number;
|
|
169
|
+
};
|
|
170
|
+
type BlurStyle = 'normal' | 'solid' | 'outer' | 'inner';
|
|
171
|
+
type BoxShadow = {
|
|
172
|
+
color: Color;
|
|
173
|
+
blurRadius: number;
|
|
174
|
+
offset?: Offset;
|
|
175
|
+
spreadRadius?: number;
|
|
176
|
+
blurStyle?: BlurStyle;
|
|
177
|
+
};
|
|
178
|
+
type TileMode = 'clamp' | 'repeated' | 'mirror' | 'decal';
|
|
179
|
+
type BoxDecoration = {
|
|
180
|
+
color?: Color;
|
|
181
|
+
border?: BorderSide | {
|
|
182
|
+
left?: BorderSide;
|
|
183
|
+
right?: BorderSide;
|
|
184
|
+
top?: BorderSide;
|
|
185
|
+
bottom?: BorderSide;
|
|
186
|
+
};
|
|
187
|
+
/** 设置数值则全部都生效 */
|
|
188
|
+
borderRadius?: number | BorderRadius;
|
|
189
|
+
boxShadow?: BoxShadow[];
|
|
190
|
+
gradient?: LinearGradient | RadialGradient;
|
|
191
|
+
};
|
|
192
|
+
type BoxConstraints = {
|
|
193
|
+
minWidth?: number;
|
|
194
|
+
maxWidth?: number | 'infinity';
|
|
195
|
+
minHeight?: number;
|
|
196
|
+
maxHeight?: number | 'infinity';
|
|
197
|
+
};
|
|
198
|
+
type LinearGradient = {
|
|
199
|
+
begin?: Alignment;
|
|
200
|
+
end?: Alignment;
|
|
201
|
+
colors: Color[];
|
|
202
|
+
/** 如果不为空,必须和colors的数组长度一致,表示每个颜色在 0 ~ 1 中的分布 */
|
|
203
|
+
stops?: number[];
|
|
204
|
+
tileMode?: TileMode;
|
|
205
|
+
};
|
|
206
|
+
type RadialGradient = {
|
|
207
|
+
colors: Color[];
|
|
208
|
+
center?: Alignment;
|
|
209
|
+
radius?: number;
|
|
210
|
+
/** 如果不为空,必须和colors的数组长度一致,表示每个颜色在 0 ~ 1 中的分布 */
|
|
211
|
+
stops?: number[];
|
|
212
|
+
tileMode?: TileMode;
|
|
213
|
+
focal?: Alignment;
|
|
214
|
+
focalRadius?: number;
|
|
215
|
+
};
|
|
216
|
+
type MainAxisAlignment = 'start' | 'end' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly';
|
|
217
|
+
type CrossAxisAlignment = 'start' | 'end' | 'center' | 'stretch' | 'baseline';
|
|
218
|
+
type MainAxisSize = 'max' | 'min';
|
|
219
|
+
type VerticalDirection = 'down' | 'up';
|
|
220
|
+
type EventPosition = {
|
|
221
|
+
dx: number;
|
|
222
|
+
dy: number;
|
|
223
|
+
distance: number;
|
|
224
|
+
distanceSquared: number;
|
|
225
|
+
direction: number;
|
|
226
|
+
};
|
|
227
|
+
type Velocity = {
|
|
228
|
+
pixelsPerSecond: EventPosition;
|
|
229
|
+
};
|
|
230
|
+
type TapDownDetails = {
|
|
231
|
+
localPosition: EventPosition;
|
|
232
|
+
globalPosition: EventPosition;
|
|
233
|
+
};
|
|
234
|
+
type TapUpDetails = TapDownDetails;
|
|
235
|
+
type DragDownDetails = {
|
|
236
|
+
localPosition: EventPosition;
|
|
237
|
+
globalPosition: EventPosition;
|
|
238
|
+
};
|
|
239
|
+
type DragUpdateDetails = DragDownDetails & {
|
|
240
|
+
delta: EventPosition;
|
|
241
|
+
};
|
|
242
|
+
type DragEndDetails = {
|
|
243
|
+
velocity: Velocity;
|
|
244
|
+
};
|
|
245
|
+
type ScaleStartDetails = {
|
|
246
|
+
focalPoint: EventPosition;
|
|
247
|
+
localFocalPoint: EventPosition;
|
|
248
|
+
pointerCount: number;
|
|
249
|
+
};
|
|
250
|
+
type ScaleUpdateDetails = ScaleStartDetails & {
|
|
251
|
+
focalPointDelta: EventPosition;
|
|
252
|
+
/**
|
|
253
|
+
* The scale implied by the average distance between the pointers in contact
|
|
254
|
+
* with the screen.
|
|
255
|
+
*
|
|
256
|
+
* This value must be greater than or equal to zero.
|
|
257
|
+
*
|
|
258
|
+
* See also:
|
|
259
|
+
*
|
|
260
|
+
* * [horizontalScale], which is the scale along the horizontal axis.
|
|
261
|
+
* * [verticalScale], which is the scale along the vertical axis.
|
|
262
|
+
*/
|
|
263
|
+
scale: number;
|
|
264
|
+
horizontalScale: number;
|
|
265
|
+
verticalScale: number;
|
|
266
|
+
rotation: number;
|
|
267
|
+
};
|
|
268
|
+
type ScaleEndDetails = {
|
|
269
|
+
velocity: Velocity;
|
|
270
|
+
pointerCount: number;
|
|
271
|
+
};
|
|
272
|
+
type Axis = 'horizontal' | 'vertical';
|
|
273
|
+
type AixsDirection = 'down' | 'up' | 'left' | 'right';
|
|
274
|
+
type ScrollOrientation =
|
|
275
|
+
/**
|
|
276
|
+
* Place towards the left of the screen.
|
|
277
|
+
*/
|
|
278
|
+
'left'
|
|
279
|
+
/**
|
|
280
|
+
* Place towards the right of the screen.
|
|
281
|
+
*/
|
|
282
|
+
| 'right'
|
|
283
|
+
/**
|
|
284
|
+
* Place on top of the screen.
|
|
285
|
+
*/
|
|
286
|
+
| 'top'
|
|
287
|
+
/**
|
|
288
|
+
* Place on the bottom of the screen.
|
|
289
|
+
*/
|
|
290
|
+
| 'bottom';
|
|
291
|
+
type ScrollPhysics = 'AlwaysScrollable' | 'Bouncing' | 'Clamping' | 'NeverScrollable' | 'FixedExtent' | 'RangeMaintaining' | 'Page';
|
|
292
|
+
type Clip = 'none' | 'hardEdge' | 'antiAlias' | 'antiAliasWithSaveLayer';
|
|
293
|
+
type ScrollViewKeyboardDismissBehavior = 'manual' | 'onDrag';
|
|
294
|
+
type TextStyle = {
|
|
295
|
+
inherit?: boolean;
|
|
296
|
+
color?: Color;
|
|
297
|
+
backgroundColor?: Color;
|
|
298
|
+
fontSize?: number;
|
|
299
|
+
fontWeight?: FontWeight;
|
|
300
|
+
fontFamily?: string;
|
|
301
|
+
fontStyle?: FontStyle;
|
|
302
|
+
letterSpacing?: number;
|
|
303
|
+
wordSpacing?: number;
|
|
304
|
+
textBaseLine?: TextBaseLine;
|
|
305
|
+
height?: number;
|
|
306
|
+
decoration?: TextDecoration | TextDecoration[];
|
|
307
|
+
decorationColor?: Color;
|
|
308
|
+
decorationStyle?: TextDecorationStyle;
|
|
309
|
+
overflow?: TextOverflow;
|
|
310
|
+
leadingDistribution?: TextLeadingDistribution;
|
|
311
|
+
fontFeatures?: string[];
|
|
312
|
+
fontFamilyFallback?: string[];
|
|
313
|
+
};
|
|
314
|
+
type StrutStyle = {
|
|
315
|
+
fontFamily?: string;
|
|
316
|
+
fontSize?: number;
|
|
317
|
+
fontWeight?: FontWeight;
|
|
318
|
+
fontStyle?: FontStyle;
|
|
319
|
+
height?: number;
|
|
320
|
+
leading?: number;
|
|
321
|
+
forceStrutHeight?: boolean;
|
|
322
|
+
};
|
|
323
|
+
type TextInputType = 'none' | 'text' | 'number' | 'decimal' | 'signedNumber' | 'signedDecimal' | 'datetime' | 'emailAddress' | 'multiline' | 'name' | 'phone' | 'streetAddress' | 'url' | 'visiblePassword';
|
|
324
|
+
type TabBarIndicatorSize = 'label' | 'tab';
|
|
325
|
+
type NormalCurve = 'bounceIn' | 'bounceInOut' | 'bounceOut' | 'decelerate' | 'ease' | 'easeIn' | 'easeInBack' | 'easeInCirc' | 'easeInExpo' | 'easeInOut' | 'easeInOutBack' | 'easeInOutCirc' | 'easeInOutCubic' | 'easeInOutCubicEmphasized' | 'easeInOutExpo' | 'easeInOutQuad' | 'easeInOutQuart' | 'easeInOutQuint' | 'easeInOutSine' | 'easeInQuad' | 'easeInQuart' | 'easeInQuint' | 'easeInSine' | 'easeInToLinear' | 'easeOut' | 'easeOutBack' | 'easeOutCirc' | 'easeOutCubic' | 'easeOutExpo' | 'easeOutQuad' | 'easeOutQuart' | 'easeOutQuint' | 'easeOutSine' | 'elasticIn' | 'elasticInOut' | 'elasticOut' | 'fastLinearToSlowEaseIn' | 'fastOutSlowIn' | 'linear' | 'linearToEaseOut' | 'slowMiddle';
|
|
326
|
+
/**
|
|
327
|
+
* 开始到结束的时间
|
|
328
|
+
*/
|
|
329
|
+
type IntervalCurve = {
|
|
330
|
+
/**
|
|
331
|
+
* 0.0 ~ 1.0
|
|
332
|
+
*/
|
|
333
|
+
begin: number;
|
|
334
|
+
/**
|
|
335
|
+
* 0.0 ~ 1.0
|
|
336
|
+
*/
|
|
337
|
+
end: number;
|
|
338
|
+
curve?: NormalCurve;
|
|
339
|
+
};
|
|
340
|
+
type Curve = NormalCurve | IntervalCurve;
|
|
341
|
+
type FilterQuality = 'high' | 'medium' | 'low' | 'none';
|
|
342
|
+
type StrokeCap = 'butt' | 'round' | 'square';
|
|
343
|
+
type ScrollMetrics = {
|
|
344
|
+
/**
|
|
345
|
+
* The current scroll position, in logical pixels along the [axisDirection]
|
|
346
|
+
*/
|
|
347
|
+
pixels: number;
|
|
348
|
+
/**
|
|
349
|
+
* The maximum in-range value for [pixels].
|
|
350
|
+
*
|
|
351
|
+
* The actual [pixels] value might be [outOfRange].
|
|
352
|
+
*
|
|
353
|
+
* This value should typically be non-null and greater than or equal to [minScrollExtent]. It can be infinity, if the scroll is unbounded.
|
|
354
|
+
*/
|
|
355
|
+
maxScrollExtent: number;
|
|
356
|
+
/**
|
|
357
|
+
* The minimum in-range value for [pixels].
|
|
358
|
+
*
|
|
359
|
+
* The actual [pixels] value might be [outOfRange].
|
|
360
|
+
*
|
|
361
|
+
* This value should typically be non-null and less than or equal to [maxScrollExtent]. It can be negative infinity, if the scroll is unbounded.
|
|
362
|
+
*/
|
|
363
|
+
minScrollExtent: number;
|
|
364
|
+
/**
|
|
365
|
+
* The extent of the viewport along the [axisDirection].
|
|
366
|
+
*/
|
|
367
|
+
viewportDimension: number;
|
|
368
|
+
/**
|
|
369
|
+
* The quantity of content conceptually "below" the viewport in the scrollable.
|
|
370
|
+
*
|
|
371
|
+
* This is the content below the content described by [extentInside].
|
|
372
|
+
*/
|
|
373
|
+
extentAfter: number;
|
|
374
|
+
/**
|
|
375
|
+
* The quantity of content conceptually "above" the viewport in the scrollable.
|
|
376
|
+
*
|
|
377
|
+
* This is the content above the content described by [extentInside].
|
|
378
|
+
*/
|
|
379
|
+
extentBefore: number;
|
|
380
|
+
/**
|
|
381
|
+
* The quantity of content conceptually "inside" the viewport in the scrollable.
|
|
382
|
+
*
|
|
383
|
+
* The value is typically the height of the viewport when [outOfRange] is false. It could be less if there is less content visible than the size of the viewport, such as when overscrolling.
|
|
384
|
+
*
|
|
385
|
+
* The value is always non-negative, and less than or equal to [viewportDimension].
|
|
386
|
+
*/
|
|
387
|
+
extentInside: number;
|
|
388
|
+
/**
|
|
389
|
+
* Whether the [pixels] value is exactly at the [minScrollExtent] or the [maxScrollExtent]
|
|
390
|
+
*/
|
|
391
|
+
atEdge: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Whether the [pixels] value is outside the [minScrollExtent] and [maxScrollExtent].
|
|
394
|
+
*/
|
|
395
|
+
outOfRange: boolean;
|
|
396
|
+
/**
|
|
397
|
+
* The direction in which the scroll view scrolls.
|
|
398
|
+
*/
|
|
399
|
+
axisDirection: AixsDirection;
|
|
400
|
+
};
|
|
401
|
+
type ScrollNotification = {
|
|
402
|
+
/**
|
|
403
|
+
* The number of viewports that this notification has bubbled through.
|
|
404
|
+
*
|
|
405
|
+
* Typically listeners only respond to notifications with a [depth] of zero.
|
|
406
|
+
*
|
|
407
|
+
* Specifically, this is the number of [Widget]s representing [RenderAbstractViewport] render objects through which this notification has bubbled.
|
|
408
|
+
*/
|
|
409
|
+
depth: number;
|
|
410
|
+
/**
|
|
411
|
+
* A description of a [Scrollable]'s contents, useful for modeling the state of its viewport.
|
|
412
|
+
*/
|
|
413
|
+
metrics: ScrollMetrics;
|
|
414
|
+
};
|
|
415
|
+
type ScrollStartNotification = ScrollNotification & {
|
|
416
|
+
dragDetails?: DragDownDetails;
|
|
417
|
+
};
|
|
418
|
+
type ScrollUpdateNotification = ScrollNotification & {
|
|
419
|
+
dragDetails?: DragUpdateDetails;
|
|
420
|
+
scrollDelta?: number;
|
|
421
|
+
};
|
|
422
|
+
type ScrollEndNotification = ScrollNotification & {
|
|
423
|
+
dragDetails?: DragEndDetails;
|
|
424
|
+
};
|
|
425
|
+
type OverScrollNotification = ScrollNotification & {
|
|
426
|
+
dragDetails?: DragUpdateDetails;
|
|
427
|
+
/**
|
|
428
|
+
* The number of logical pixels that the [Scrollable] avoided scrolling.
|
|
429
|
+
*
|
|
430
|
+
* This will be negative for overscroll on the "start" side and positive for overscroll on the "end" side.
|
|
431
|
+
*/
|
|
432
|
+
overscroll: number;
|
|
433
|
+
velocity: number;
|
|
434
|
+
};
|
|
435
|
+
type UserScrollNotification = ScrollNotification & {
|
|
436
|
+
direction: 'idle' | 'forward' | 'reverse';
|
|
437
|
+
};
|
|
438
|
+
type PaintSize = {
|
|
439
|
+
width: number;
|
|
440
|
+
height: number;
|
|
441
|
+
aspectRatio: number;
|
|
442
|
+
isEmpty: boolean;
|
|
443
|
+
isFinite: boolean;
|
|
444
|
+
isInfinite: boolean;
|
|
445
|
+
longestSide: number;
|
|
446
|
+
shortestSide: number;
|
|
447
|
+
};
|
|
448
|
+
type PaintRect = {
|
|
449
|
+
left: number;
|
|
450
|
+
top: number;
|
|
451
|
+
right: number;
|
|
452
|
+
bottom: number;
|
|
453
|
+
topLeft: EventPosition;
|
|
454
|
+
topRight: EventPosition;
|
|
455
|
+
topCenter: EventPosition;
|
|
456
|
+
centerLeft: EventPosition;
|
|
457
|
+
center: EventPosition;
|
|
458
|
+
centerRight: EventPosition;
|
|
459
|
+
bottomLeft: EventPosition;
|
|
460
|
+
bottomCenter: EventPosition;
|
|
461
|
+
bottomRight: EventPosition;
|
|
462
|
+
width: number;
|
|
463
|
+
height: number;
|
|
464
|
+
size: PaintSize;
|
|
465
|
+
isEmpty: boolean;
|
|
466
|
+
isFinite: boolean;
|
|
467
|
+
isInfinite: boolean;
|
|
468
|
+
};
|
|
469
|
+
type DismissDirection = 'none' | 'horizontal' | 'startToEnd' | 'endToStart' | 'up' | 'down' | 'endToStart';
|
|
470
|
+
type BlendMode = 'clear' | 'src' | 'dst' | 'srcOver' | 'dstOver' | 'srcIn' | 'dstIn' | 'srcOut' | 'dstOut' | 'srcATop' | 'dstATop' | 'xor' | 'plus' | 'modulate' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'colorDodge' | 'colorBurn' | 'hardLight' | 'softLight' | 'difference' | 'exclusion' | 'multiply' | 'hue' | 'saturation' | 'color' | 'luminosity';
|
|
471
|
+
type ImageFilterBlur = {
|
|
472
|
+
type: 'blur';
|
|
473
|
+
tileMode?: TileMode;
|
|
474
|
+
sigmaX?: number;
|
|
475
|
+
sigmaY?: number;
|
|
476
|
+
};
|
|
477
|
+
type ImageFilterDilate = {
|
|
478
|
+
type: 'dilate';
|
|
479
|
+
radiusX?: number;
|
|
480
|
+
radiusY?: number;
|
|
481
|
+
};
|
|
482
|
+
type ImageFilterErode = {
|
|
483
|
+
type: 'erode';
|
|
484
|
+
radiusX?: number;
|
|
485
|
+
radiusY?: number;
|
|
486
|
+
};
|
|
487
|
+
type ImageFilterMaxtrix = {
|
|
488
|
+
type: 'matrix';
|
|
489
|
+
/**
|
|
490
|
+
* value.length times 8 bytes.
|
|
491
|
+
*/
|
|
492
|
+
value: number[];
|
|
493
|
+
};
|
|
494
|
+
type ImageFilterCompose = {
|
|
495
|
+
type: 'compose';
|
|
496
|
+
outer: ImageFilter;
|
|
497
|
+
inner: ImageFilter;
|
|
498
|
+
};
|
|
499
|
+
type ImageFilter = ImageFilterBlur | ImageFilterDilate | ImageFilterErode | ImageFilterMaxtrix | ImageFilterCompose;
|
|
500
|
+
type OverlayVisibilityMode =
|
|
501
|
+
/**
|
|
502
|
+
* Overlay will never appear regardless of the text entry state.
|
|
503
|
+
*/
|
|
504
|
+
'never'
|
|
505
|
+
/**
|
|
506
|
+
* Overlay will only appear when the current text entry is not empty.
|
|
507
|
+
*
|
|
508
|
+
* This includes prefilled text that the user did not type in manually. But
|
|
509
|
+
* does not include text in placeholders.
|
|
510
|
+
*/
|
|
511
|
+
| 'editing'
|
|
512
|
+
/**
|
|
513
|
+
* Overlay will only appear when the current text entry is empty.
|
|
514
|
+
*
|
|
515
|
+
* This also includes not having prefilled text that the user did not type
|
|
516
|
+
* in manually. Texts in placeholders are ignored.
|
|
517
|
+
*/
|
|
518
|
+
| 'notEditing'
|
|
519
|
+
/**
|
|
520
|
+
* Always show the overlay regardless of the text entry state.
|
|
521
|
+
*/
|
|
522
|
+
| 'always';
|
|
523
|
+
type TabAlignment = 'start' | 'startOffset' | 'fill' | 'center';
|
|
524
|
+
|
|
525
|
+
type InternalWidgetRender<P = {}> = (props: P) => RenderNode;
|
|
526
|
+
type RenderNode = {
|
|
527
|
+
isInternal: boolean;
|
|
528
|
+
type?: string;
|
|
529
|
+
id?: string;
|
|
530
|
+
props?: any;
|
|
531
|
+
key?: string;
|
|
532
|
+
ref?: string;
|
|
533
|
+
};
|
|
534
|
+
type ComponentProps<T = {}> = T & KeyProps & RefProps & {
|
|
535
|
+
children?: VirtualNode | string | number | boolean | undefined | null | Array<string | number | boolean | undefined | null | VirtualNode>;
|
|
536
|
+
};
|
|
537
|
+
type VirtualNode = KeyProps & {
|
|
538
|
+
isInternal: boolean;
|
|
539
|
+
props: ComponentProps<any>;
|
|
540
|
+
render: FunctionComponent<any> | InternalWidgetRender;
|
|
541
|
+
};
|
|
542
|
+
type FunctionComponent<P = {}> = (props: P) => VirtualNode;
|
|
543
|
+
type SetStateAction<S> = S | ((preState: S) => S);
|
|
544
|
+
type StateInitializer<S> = () => S;
|
|
545
|
+
type EffectDestructor = () => void;
|
|
546
|
+
type EffectCallback = () => EffectDestructor | void | undefined;
|
|
547
|
+
type ComponentEffect = [any[], EffectCallback, boolean, ReturnType<EffectCallback>];
|
|
548
|
+
type ComponentCallback<T extends Function> = [T, any[]];
|
|
549
|
+
type ComponentMemo = [any, any[]];
|
|
550
|
+
type Reducer<S, A> = (preState: S, action: A) => S;
|
|
551
|
+
type ReducerState<R extends Reducer<any, any>> = R extends Reducer<infer S, any> ? S : never;
|
|
552
|
+
type ReducerAction<R extends Reducer<any, any>> = R extends Reducer<any, infer A> ? A : never;
|
|
553
|
+
type Dispatch<A> = (action: A) => void;
|
|
554
|
+
declare enum ChildrenRule {
|
|
555
|
+
none = 0,
|
|
556
|
+
single = 1,
|
|
557
|
+
multiple = 2
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
type PagePushEvent = {
|
|
561
|
+
pageId: string;
|
|
562
|
+
path: string;
|
|
563
|
+
params: RouteParams | undefined | null;
|
|
564
|
+
};
|
|
565
|
+
type PagePopEvent<T> = {
|
|
566
|
+
pageId: string;
|
|
567
|
+
};
|
|
568
|
+
type PageParamsUpdateEvent<T extends object = {}> = {
|
|
569
|
+
pageId: string;
|
|
570
|
+
params: T | undefined;
|
|
571
|
+
};
|
|
572
|
+
type PagePopResultEvent<T> = {
|
|
573
|
+
pageId: string;
|
|
574
|
+
result: {
|
|
575
|
+
value?: T | null;
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
type PageInfo = {
|
|
579
|
+
path: string | undefined;
|
|
580
|
+
params: RouteParams | undefined | null;
|
|
581
|
+
pageId: string;
|
|
582
|
+
navigator: string | undefined;
|
|
583
|
+
element: VirtualNode;
|
|
584
|
+
isPushByJs: boolean;
|
|
585
|
+
pageRoute: PageRoute | undefined;
|
|
586
|
+
};
|
|
587
|
+
type RouteParams = {
|
|
588
|
+
[key: string]: any;
|
|
589
|
+
};
|
|
590
|
+
type NormalRouteObject = {
|
|
591
|
+
pageRoute?: PageRoute;
|
|
592
|
+
path: string;
|
|
593
|
+
element: VirtualNode;
|
|
594
|
+
params?: {
|
|
595
|
+
[key: string]: TypedParams;
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
type IndexRouteObject = NormalRouteObject & {
|
|
599
|
+
index: true;
|
|
600
|
+
};
|
|
601
|
+
type OtherwiseRouteObject = NormalRouteObject & {
|
|
602
|
+
otherwise: true;
|
|
603
|
+
};
|
|
604
|
+
type RouteObject = NormalRouteObject | IndexRouteObject | OtherwiseRouteObject;
|
|
605
|
+
type TypedParams = {
|
|
606
|
+
type: 'String' | 'Number' | 'Boolean';
|
|
607
|
+
isRequired: boolean;
|
|
608
|
+
} | {
|
|
609
|
+
type: 'Map';
|
|
610
|
+
isRequired: boolean;
|
|
611
|
+
items?: {
|
|
612
|
+
[key: string]: TypedParams;
|
|
613
|
+
};
|
|
614
|
+
} | {
|
|
615
|
+
type: 'Array';
|
|
616
|
+
isRequired: boolean;
|
|
617
|
+
items?: TypedParams;
|
|
618
|
+
};
|
|
619
|
+
type MaterialPageRoute = {
|
|
620
|
+
type: 'MaterialPageRoute';
|
|
621
|
+
fullscreenDialog?: boolean;
|
|
622
|
+
allowSnapshotting?: boolean;
|
|
623
|
+
};
|
|
624
|
+
type DialogRoute = {
|
|
625
|
+
type: 'DialogRoute';
|
|
626
|
+
barrierColor?: Color;
|
|
627
|
+
barrierDismissible?: boolean;
|
|
628
|
+
};
|
|
629
|
+
type ModalBottomSheetRoute = {
|
|
630
|
+
type: 'ModalBottomSheetRoute';
|
|
631
|
+
isScrollControlled: boolean;
|
|
632
|
+
barrierLabel?: string;
|
|
633
|
+
backgroundColor?: Color;
|
|
634
|
+
elevation?: number;
|
|
635
|
+
clipBehavior?: Clip;
|
|
636
|
+
modalBarrierColor?: Color;
|
|
637
|
+
isDismissible?: boolean;
|
|
638
|
+
enableDrag?: boolean;
|
|
639
|
+
anchorPoint?: Offset;
|
|
640
|
+
useSafeArea?: boolean;
|
|
641
|
+
constraints?: BoxConstraints;
|
|
642
|
+
};
|
|
643
|
+
type CupertinoModalPopupRoute = {
|
|
644
|
+
type: 'CupertinoModalPopupRoute';
|
|
645
|
+
barrierLabel?: string;
|
|
646
|
+
barrierColor?: Color;
|
|
647
|
+
barrierDismissible?: boolean;
|
|
648
|
+
semanticsDismissible?: boolean;
|
|
649
|
+
anchorPoint?: Offset;
|
|
650
|
+
};
|
|
651
|
+
type CupertinoDialogRoute = {
|
|
652
|
+
type: 'CupertinoDialogRoute';
|
|
653
|
+
barrierDismissible?: boolean;
|
|
654
|
+
barrierColor?: Color;
|
|
655
|
+
barrierLabel?: string;
|
|
656
|
+
anchorPoint?: Offset;
|
|
657
|
+
};
|
|
658
|
+
type CupertinoPageRoute = {
|
|
659
|
+
type: 'CupertinoPageRoute';
|
|
660
|
+
title?: string;
|
|
661
|
+
fullscreenDialog?: boolean;
|
|
662
|
+
allowSnapshotting?: boolean;
|
|
663
|
+
};
|
|
664
|
+
type PageRoute = MaterialPageRoute | ModalBottomSheetRoute | DialogRoute | CupertinoDialogRoute | CupertinoModalPopupRoute | CupertinoPageRoute;
|
|
665
|
+
type PushRouteOptions<P extends RouteParams> = {
|
|
666
|
+
element: VirtualNode;
|
|
667
|
+
params?: P;
|
|
668
|
+
pageRoute?: PageRoute;
|
|
669
|
+
};
|
|
670
|
+
type PushNamedRouteOptions<P extends RouteParams> = {
|
|
671
|
+
path: string;
|
|
672
|
+
params?: P;
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
type PageInfoSubscriber = (pages: PageInfo[]) => void;
|
|
676
|
+
declare class Router {
|
|
677
|
+
routes: RouteObject[];
|
|
678
|
+
constructor(routes: RouteObject[]);
|
|
679
|
+
private _pages;
|
|
680
|
+
private _callbacks;
|
|
681
|
+
private _isInited;
|
|
682
|
+
private _navigatorKey?;
|
|
683
|
+
get pages(): PageInfo[];
|
|
684
|
+
private _onPageCheck;
|
|
685
|
+
private _onPagePush;
|
|
686
|
+
private _onPageParamsUpdate;
|
|
687
|
+
private _onPagePop;
|
|
688
|
+
init(navigatorKey?: string): void;
|
|
689
|
+
reset(): void;
|
|
690
|
+
hasIndexRoute(): boolean;
|
|
691
|
+
private _notify;
|
|
692
|
+
push<T, P extends RouteParams>(options: PushRouteOptions<P>): Promise<T | null | undefined>;
|
|
693
|
+
pushNamed<T, P extends RouteParams = object>({ path, params, }: PushNamedRouteOptions<P>): Promise<T | null | undefined>;
|
|
694
|
+
pop<T>(result?: T): void;
|
|
695
|
+
getPageCount(): number;
|
|
696
|
+
subscribe(callback: PageInfoSubscriber): () => void;
|
|
697
|
+
getIndexRouteElement(): VirtualNode | undefined;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
declare function useRouteParams<T extends RouteParams>(): T | undefined | null;
|
|
701
|
+
|
|
702
|
+
type WrappedRouter = {
|
|
703
|
+
push: <T, P extends RouteParams>(options: PushRouteOptions<P>) => Promise<T | null | undefined>;
|
|
704
|
+
pushNamed: <T, P extends RouteParams>(options: PushNamedRouteOptions<P>) => Promise<T | null | undefined>;
|
|
705
|
+
pop: <T>(result?: T | undefined) => void;
|
|
706
|
+
getPageCount: () => number;
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
declare function useRouter(): WrappedRouter;
|
|
710
|
+
declare function RouterProvider({ router }: {
|
|
711
|
+
router: Router;
|
|
712
|
+
}): JSX.Element;
|
|
713
|
+
|
|
714
|
+
type MediaQueryData = {
|
|
715
|
+
size: {
|
|
716
|
+
width: number;
|
|
717
|
+
height: number;
|
|
718
|
+
};
|
|
719
|
+
devicePixelRatio: number;
|
|
720
|
+
textScaleFactor: number;
|
|
721
|
+
platformBrightness: 'dark' | 'light';
|
|
722
|
+
padding: {
|
|
723
|
+
left: number;
|
|
724
|
+
right: number;
|
|
725
|
+
top: number;
|
|
726
|
+
bottom: number;
|
|
727
|
+
};
|
|
728
|
+
viewPadding: {
|
|
729
|
+
left: number;
|
|
730
|
+
right: number;
|
|
731
|
+
top: number;
|
|
732
|
+
bottom: number;
|
|
733
|
+
};
|
|
734
|
+
viewInsets: {
|
|
735
|
+
left: number;
|
|
736
|
+
right: number;
|
|
737
|
+
top: number;
|
|
738
|
+
bottom: number;
|
|
739
|
+
};
|
|
740
|
+
alwaysUse24HourFormat: boolean;
|
|
741
|
+
accessibleNavigation: boolean;
|
|
742
|
+
highContrast: boolean;
|
|
743
|
+
disableAnimations: boolean;
|
|
744
|
+
invertColors: boolean;
|
|
745
|
+
boldText: boolean;
|
|
746
|
+
navigationMode: 'traditional' | 'directional';
|
|
747
|
+
};
|
|
748
|
+
type ScriptingDeviceInfo = {
|
|
749
|
+
appVersion: string;
|
|
750
|
+
isIOS: boolean;
|
|
751
|
+
isAndroid: boolean;
|
|
752
|
+
brand: string;
|
|
753
|
+
model: string;
|
|
754
|
+
timeZone: string;
|
|
755
|
+
locale: string;
|
|
756
|
+
systemLocale: string;
|
|
757
|
+
systemLocales: string[];
|
|
758
|
+
systemLanguageTag: string;
|
|
759
|
+
systemLanguageCode: string;
|
|
760
|
+
systemCountryCode?: string;
|
|
761
|
+
systemScriptCode?: string;
|
|
762
|
+
};
|
|
763
|
+
type ThemeState = {
|
|
764
|
+
isDarkMode: boolean;
|
|
765
|
+
themeMode: 'light' | 'dark';
|
|
766
|
+
};
|
|
767
|
+
type LocaleState = {
|
|
768
|
+
locale: string;
|
|
769
|
+
};
|
|
770
|
+
type ShareResultStatus = 'success' | 'dismissed' | 'unavailable';
|
|
771
|
+
type AppLifeCycleState = 'resumed' | 'inactive' | 'paused' | 'detached' | 'hidden';
|
|
772
|
+
|
|
773
|
+
declare const isApiEnabled: boolean;
|
|
774
|
+
declare function addAppEvent<T extends Function>(type: string, handler: T): void;
|
|
775
|
+
|
|
776
|
+
declare function useByTheme<T>({ dark, light }: {
|
|
777
|
+
dark: T;
|
|
778
|
+
light: T;
|
|
779
|
+
}): T;
|
|
780
|
+
|
|
781
|
+
declare function useLocale(): string;
|
|
782
|
+
|
|
783
|
+
declare function useThemeState(): {
|
|
784
|
+
isDarkMode: boolean;
|
|
785
|
+
themeMode: "dark" | "light";
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
declare function useMediaQuery(): MediaQueryData;
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Scripting app events
|
|
792
|
+
*/
|
|
793
|
+
declare const ScriptingAppEvents: {
|
|
794
|
+
mediaQueryDataChanged: string;
|
|
795
|
+
themeModeChanged: string;
|
|
796
|
+
localeChanged: string;
|
|
797
|
+
appLifeCycleStateChanged: string;
|
|
798
|
+
appDispose: string;
|
|
799
|
+
};
|
|
800
|
+
|
|
801
|
+
type FileMode = 'read' | 'write' | 'writeOnly' | 'append' | 'writeOnlyAppend';
|
|
802
|
+
type Encoding = 'utf-8' | 'ascii' | 'latin1';
|
|
803
|
+
type FileStat = {
|
|
804
|
+
changed: number;
|
|
805
|
+
accessed: number;
|
|
806
|
+
modified: number;
|
|
807
|
+
size: number;
|
|
808
|
+
mode: number;
|
|
809
|
+
type: string;
|
|
810
|
+
modeString: string;
|
|
811
|
+
};
|
|
812
|
+
declare const enum FileSystemEvent {
|
|
813
|
+
create = 1,
|
|
814
|
+
modify = 2,
|
|
815
|
+
delete = 4,
|
|
816
|
+
move = 8,
|
|
817
|
+
/**
|
|
818
|
+
* create | modify | delete | move
|
|
819
|
+
*/
|
|
820
|
+
all = 15
|
|
821
|
+
}
|
|
822
|
+
type FileSystemCommonEventDetails = {
|
|
823
|
+
isDirectory: boolean;
|
|
824
|
+
path: string;
|
|
825
|
+
};
|
|
826
|
+
type FileSystemCreateEventDetails = FileSystemCommonEventDetails & {
|
|
827
|
+
type: FileSystemEvent.create;
|
|
828
|
+
};
|
|
829
|
+
type FileSystemDeleteEventDetails = FileSystemCommonEventDetails & {
|
|
830
|
+
type: FileSystemEvent.delete;
|
|
831
|
+
};
|
|
832
|
+
type FileSystemModifyEventDetails = FileSystemCommonEventDetails & {
|
|
833
|
+
type: FileSystemEvent.modify;
|
|
834
|
+
contentChanged: boolean;
|
|
835
|
+
};
|
|
836
|
+
type FileSystemMoveEventDetails = FileSystemCommonEventDetails & {
|
|
837
|
+
type: FileSystemEvent.move;
|
|
838
|
+
destination?: string;
|
|
839
|
+
};
|
|
840
|
+
type FileSystemEventDetails = FileSystemCreateEventDetails | FileSystemDeleteEventDetails | FileSystemModifyEventDetails | FileSystemMoveEventDetails;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* 复制文件
|
|
844
|
+
*/
|
|
845
|
+
declare function copyFile(path: string, newPath: string): Promise<void>;
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* 创建文件夹
|
|
849
|
+
*/
|
|
850
|
+
declare function createDirectory(path: string, recursive?: boolean): Promise<void>;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* 创建link
|
|
854
|
+
*/
|
|
855
|
+
declare function createLink(path: string, target: string, recursive?: boolean): Promise<void>;
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* 获取documentsDirectory目录
|
|
859
|
+
*/
|
|
860
|
+
declare function documentsDirectory(): Promise<string>;
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* 判断File/Directory/Link是否存在
|
|
864
|
+
*/
|
|
865
|
+
declare function exists(path: string): Promise<boolean>;
|
|
866
|
+
|
|
867
|
+
declare function isDirectory(path: string): Promise<boolean>;
|
|
868
|
+
|
|
869
|
+
declare function isFile(path: string): Promise<boolean>;
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* 读取文件
|
|
873
|
+
*/
|
|
874
|
+
declare function readAsString(path: string, encoding?: Encoding): Promise<string>;
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* 读取文件
|
|
878
|
+
*/
|
|
879
|
+
declare function readAsBytes(path: string): Promise<string>;
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* 读取目录列表
|
|
883
|
+
*/
|
|
884
|
+
declare function readDirectory(path: string, options?: {
|
|
885
|
+
recursive?: boolean;
|
|
886
|
+
followLinks?: boolean;
|
|
887
|
+
}): Promise<string[]>;
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* 移除File/Directory/Link
|
|
891
|
+
*/
|
|
892
|
+
declare function remove$1(path: string, recursive?: boolean): Promise<void>;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* 重命名文件或目录
|
|
896
|
+
*/
|
|
897
|
+
declare function rename(path: string, newPath: string): Promise<void>;
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* 获取临时文件目录
|
|
901
|
+
*/
|
|
902
|
+
declare function temporaryDirectory(): Promise<string>;
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* 监听文件或目录
|
|
906
|
+
* @param path 文件路径
|
|
907
|
+
* @param events 事件,多个事件使用或运算拼接
|
|
908
|
+
* @param listener 回调
|
|
909
|
+
* @returns 取消监听的函数
|
|
910
|
+
*/
|
|
911
|
+
declare function watch(path: string, events: FileSystemEvent, listener: (event: FileSystemEventDetails) => void): () => void;
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* 写入文件
|
|
915
|
+
*/
|
|
916
|
+
declare function writeAsString(path: string, contents: string, options?: {
|
|
917
|
+
mode?: FileMode;
|
|
918
|
+
encoding?: Encoding;
|
|
919
|
+
flush?: boolean;
|
|
920
|
+
}): Promise<void>;
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* 写入文件
|
|
924
|
+
*/
|
|
925
|
+
declare function writeAsBytes(path: string, contents: number[], options?: {
|
|
926
|
+
mode?: FileMode;
|
|
927
|
+
flush?: boolean;
|
|
928
|
+
}): Promise<void>;
|
|
929
|
+
|
|
930
|
+
type index$1_Encoding = Encoding;
|
|
931
|
+
type index$1_FileMode = FileMode;
|
|
932
|
+
type index$1_FileStat = FileStat;
|
|
933
|
+
type index$1_FileSystemCommonEventDetails = FileSystemCommonEventDetails;
|
|
934
|
+
type index$1_FileSystemCreateEventDetails = FileSystemCreateEventDetails;
|
|
935
|
+
type index$1_FileSystemDeleteEventDetails = FileSystemDeleteEventDetails;
|
|
936
|
+
type index$1_FileSystemEvent = FileSystemEvent;
|
|
937
|
+
declare const index$1_FileSystemEvent: typeof FileSystemEvent;
|
|
938
|
+
type index$1_FileSystemEventDetails = FileSystemEventDetails;
|
|
939
|
+
type index$1_FileSystemModifyEventDetails = FileSystemModifyEventDetails;
|
|
940
|
+
type index$1_FileSystemMoveEventDetails = FileSystemMoveEventDetails;
|
|
941
|
+
declare const index$1_copyFile: typeof copyFile;
|
|
942
|
+
declare const index$1_createDirectory: typeof createDirectory;
|
|
943
|
+
declare const index$1_createLink: typeof createLink;
|
|
944
|
+
declare const index$1_documentsDirectory: typeof documentsDirectory;
|
|
945
|
+
declare const index$1_exists: typeof exists;
|
|
946
|
+
declare const index$1_isDirectory: typeof isDirectory;
|
|
947
|
+
declare const index$1_isFile: typeof isFile;
|
|
948
|
+
declare const index$1_readAsBytes: typeof readAsBytes;
|
|
949
|
+
declare const index$1_readAsString: typeof readAsString;
|
|
950
|
+
declare const index$1_readDirectory: typeof readDirectory;
|
|
951
|
+
declare const index$1_rename: typeof rename;
|
|
952
|
+
declare const index$1_temporaryDirectory: typeof temporaryDirectory;
|
|
953
|
+
declare const index$1_watch: typeof watch;
|
|
954
|
+
declare const index$1_writeAsBytes: typeof writeAsBytes;
|
|
955
|
+
declare const index$1_writeAsString: typeof writeAsString;
|
|
956
|
+
declare namespace index$1 {
|
|
957
|
+
export { type index$1_Encoding as Encoding, type index$1_FileMode as FileMode, type index$1_FileStat as FileStat, type index$1_FileSystemCommonEventDetails as FileSystemCommonEventDetails, type index$1_FileSystemCreateEventDetails as FileSystemCreateEventDetails, type index$1_FileSystemDeleteEventDetails as FileSystemDeleteEventDetails, index$1_FileSystemEvent as FileSystemEvent, type index$1_FileSystemEventDetails as FileSystemEventDetails, type index$1_FileSystemModifyEventDetails as FileSystemModifyEventDetails, type index$1_FileSystemMoveEventDetails as FileSystemMoveEventDetails, index$1_copyFile as copyFile, index$1_createDirectory as createDirectory, index$1_createLink as createLink, index$1_documentsDirectory as documentsDirectory, index$1_exists as exists, index$1_isDirectory as isDirectory, index$1_isFile as isFile, index$1_readAsBytes as readAsBytes, index$1_readAsString as readAsString, index$1_readDirectory as readDirectory, remove$1 as remove, index$1_rename as rename, index$1_temporaryDirectory as temporaryDirectory, index$1_watch as watch, index$1_writeAsBytes as writeAsBytes, index$1_writeAsString as writeAsString };
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
declare function hapticFeedback(type: 'heavyImpact' | 'lightImpact' | 'mediumImpact' | 'selectionClick'): void;
|
|
961
|
+
|
|
962
|
+
declare const Device: {
|
|
963
|
+
readonly isIOS: boolean;
|
|
964
|
+
readonly isAndroid: boolean;
|
|
965
|
+
readonly brand: string;
|
|
966
|
+
readonly model: string;
|
|
967
|
+
readonly locale: string;
|
|
968
|
+
readonly systemLocale: string;
|
|
969
|
+
readonly systemLocales: string[];
|
|
970
|
+
readonly systemLanguageTag: string;
|
|
971
|
+
readonly sysmtemLanguageCode: string;
|
|
972
|
+
readonly systemCountryCode: string | undefined;
|
|
973
|
+
readonly systemScriptCode: string | undefined;
|
|
974
|
+
hapticFeedback: typeof hapticFeedback;
|
|
975
|
+
};
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Share base64 image
|
|
979
|
+
* @param options
|
|
980
|
+
* @param options.image base64 format, e.g. data:image/png;base64,xxxxx...
|
|
981
|
+
* @param options.text Share text content
|
|
982
|
+
* @param options.subject Share subject
|
|
983
|
+
*/
|
|
984
|
+
declare function shareBase64Image(options: {
|
|
985
|
+
image: string;
|
|
986
|
+
text?: string;
|
|
987
|
+
subject?: string;
|
|
988
|
+
}): Promise<{
|
|
989
|
+
status: ShareResultStatus;
|
|
990
|
+
}>;
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Share files
|
|
994
|
+
* @param options
|
|
995
|
+
* @param options.files Files path
|
|
996
|
+
* @param options.text Share text content
|
|
997
|
+
* @param options.subject Share subject
|
|
998
|
+
*/
|
|
999
|
+
declare function shareFiles(options: {
|
|
1000
|
+
files: string[];
|
|
1001
|
+
text: string;
|
|
1002
|
+
subject?: string;
|
|
1003
|
+
}): Promise<{
|
|
1004
|
+
status: ShareResultStatus;
|
|
1005
|
+
}>;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Share text
|
|
1009
|
+
* @param options
|
|
1010
|
+
* @param options.text Share text content
|
|
1011
|
+
* @param options.subject Share subject
|
|
1012
|
+
*/
|
|
1013
|
+
declare function shareText(options: {
|
|
1014
|
+
text: string;
|
|
1015
|
+
subject?: string;
|
|
1016
|
+
}): Promise<{
|
|
1017
|
+
status: ShareResultStatus;
|
|
1018
|
+
}>;
|
|
1019
|
+
|
|
1020
|
+
declare const Share: {
|
|
1021
|
+
shareText: typeof shareText;
|
|
1022
|
+
shareBase64Image: typeof shareBase64Image;
|
|
1023
|
+
shareFiles: typeof shareFiles;
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* Copy text to clipboard.
|
|
1028
|
+
* @param text Text content
|
|
1029
|
+
* @returns
|
|
1030
|
+
*/
|
|
1031
|
+
declare function copyText(text: string): Promise<boolean>;
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Get text form clipboard.
|
|
1035
|
+
* @returns
|
|
1036
|
+
*/
|
|
1037
|
+
declare function getClipboardText(): Promise<string | null>;
|
|
1038
|
+
|
|
1039
|
+
declare const Clipboard: {
|
|
1040
|
+
copyText: typeof copyText;
|
|
1041
|
+
getText: typeof getClipboardText;
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* 关闭全屏loading
|
|
1046
|
+
*/
|
|
1047
|
+
declare function hideLoading(): void;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* 打开Alert弹窗
|
|
1051
|
+
* @param options
|
|
1052
|
+
* @param options.content 弹窗内容
|
|
1053
|
+
* @param options.title 弹窗标题(可选)
|
|
1054
|
+
* @param options.buttonLabel 按钮文案(可选)
|
|
1055
|
+
*/
|
|
1056
|
+
declare function showAlert(options: {
|
|
1057
|
+
content: string;
|
|
1058
|
+
title?: string;
|
|
1059
|
+
buttonLabel?: string;
|
|
1060
|
+
}): Promise<void>;
|
|
1061
|
+
|
|
1062
|
+
type VstarBottomSheetOptions = {
|
|
1063
|
+
/** 标题 */
|
|
1064
|
+
title?: string;
|
|
1065
|
+
/** 是否显示取消按钮,默认不显示 */
|
|
1066
|
+
cancelButton?: boolean;
|
|
1067
|
+
/** 是否可往下拖动关闭,默认可以 */
|
|
1068
|
+
dragDownDissmisible?: boolean;
|
|
1069
|
+
/** action选项 */
|
|
1070
|
+
actions: {
|
|
1071
|
+
/** 文本内容 */
|
|
1072
|
+
label: string;
|
|
1073
|
+
/** 是否选中 */
|
|
1074
|
+
selected?: boolean;
|
|
1075
|
+
}[];
|
|
1076
|
+
};
|
|
1077
|
+
/**
|
|
1078
|
+
* 展示bottom sheet 弹窗,类似iOS的选项功能
|
|
1079
|
+
* @param options
|
|
1080
|
+
* @param options.title 标题(可选)
|
|
1081
|
+
* @param options.cancelButton 是否展示取消按钮,默认展示(可选)
|
|
1082
|
+
* @param options.dragDownDissmisible 是否可以下拉关闭弹窗,默认可以(可选)
|
|
1083
|
+
* @param options.actions 选项列表
|
|
1084
|
+
* @param options.actions.label 选项文本
|
|
1085
|
+
* @param options.actions.selected 是否选中,设置为true改选项展示选中状态(可选)
|
|
1086
|
+
* @returns 点击某个选项后返回其下标,取消的话返回null
|
|
1087
|
+
*/
|
|
1088
|
+
declare function showBottomSheet({ title, cancelButton, dragDownDissmisible, actions, }: VstarBottomSheetOptions): Promise<number | null>;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* 展示Confirm弹窗
|
|
1092
|
+
* @param options
|
|
1093
|
+
* @param options.content 提示内容
|
|
1094
|
+
* @param options.title 提示标题(可选)
|
|
1095
|
+
* @param options.cancelLabel 取消按钮文案(可选)
|
|
1096
|
+
* @param options.confirmLabel 确认按钮文案(可选)
|
|
1097
|
+
* @returns 返回true或false的promise
|
|
1098
|
+
*/
|
|
1099
|
+
declare function showConfirm(options: {
|
|
1100
|
+
content: string;
|
|
1101
|
+
title?: string;
|
|
1102
|
+
cancelLabel?: string;
|
|
1103
|
+
confirmLabel?: string;
|
|
1104
|
+
}): Promise<boolean>;
|
|
1105
|
+
|
|
1106
|
+
declare function showLoading(options: {
|
|
1107
|
+
message?: string;
|
|
1108
|
+
color?: string;
|
|
1109
|
+
}): void;
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* 展示提醒弹窗
|
|
1113
|
+
* @param options
|
|
1114
|
+
* @param options.title 标题
|
|
1115
|
+
* @param options.obscureText 是否使用晦涩文本模式,用于密码之类(可选)
|
|
1116
|
+
* @param options.hintText 提示placeholder文案(可选)
|
|
1117
|
+
* @param options.cancelLabel 取消按钮文案(可选)
|
|
1118
|
+
* @param options.confirmLabel 确认按钮文案(可选)
|
|
1119
|
+
* @returns 用户输入确认后返回字符串,用户取消后返回null
|
|
1120
|
+
*/
|
|
1121
|
+
declare function showPrompt(options: {
|
|
1122
|
+
title: string;
|
|
1123
|
+
obscureText?: boolean;
|
|
1124
|
+
hintText?: string;
|
|
1125
|
+
cancelLabel?: string;
|
|
1126
|
+
confirmLabel?: string;
|
|
1127
|
+
}): Promise<string | null>;
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* 展示Toast弹窗
|
|
1131
|
+
* @param options
|
|
1132
|
+
* @param options.content toast消息
|
|
1133
|
+
* @param options.duration 展示时间(可选),单位毫秒,默认2000毫秒(2秒)
|
|
1134
|
+
*/
|
|
1135
|
+
declare function showToast(options: {
|
|
1136
|
+
content: string;
|
|
1137
|
+
duration?: number;
|
|
1138
|
+
}): Promise<void>;
|
|
1139
|
+
|
|
1140
|
+
declare const Dialog: {
|
|
1141
|
+
showLoading: typeof showLoading;
|
|
1142
|
+
hideLoading: typeof hideLoading;
|
|
1143
|
+
showAlert: typeof showAlert;
|
|
1144
|
+
showPrompt: typeof showPrompt;
|
|
1145
|
+
showConfirm: typeof showConfirm;
|
|
1146
|
+
showToast: typeof showToast;
|
|
1147
|
+
showBottomSheet: typeof showBottomSheet;
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1150
|
+
type PickFileOptions = {
|
|
1151
|
+
maxWidth?: number;
|
|
1152
|
+
maxHeight?: number;
|
|
1153
|
+
/**
|
|
1154
|
+
* 1 - 100
|
|
1155
|
+
*/
|
|
1156
|
+
imageQuality?: number;
|
|
1157
|
+
requestFullMetadata?: boolean;
|
|
1158
|
+
};
|
|
1159
|
+
declare function pickImage(options?: PickFileOptions): Promise<string | null>;
|
|
1160
|
+
declare function pickMultipleImage(options?: PickFileOptions): Promise<string[]>;
|
|
1161
|
+
|
|
1162
|
+
declare function pickMedia(options?: PickFileOptions): Promise<string | null>;
|
|
1163
|
+
declare function pickMultipleMedia(options?: PickFileOptions): Promise<string[]>;
|
|
1164
|
+
|
|
1165
|
+
type TakePhotoOptions = PickFileOptions & {
|
|
1166
|
+
preferredCameraDevice?: 'front' | 'rear';
|
|
1167
|
+
};
|
|
1168
|
+
declare function takePhoto(options?: TakePhotoOptions): Promise<string | null>;
|
|
1169
|
+
|
|
1170
|
+
declare const FilePicker: {
|
|
1171
|
+
pickImage: typeof pickImage;
|
|
1172
|
+
pickMultipleImage: typeof pickMultipleImage;
|
|
1173
|
+
pickMedia: typeof pickMedia;
|
|
1174
|
+
pickMultipleMedia: typeof pickMultipleMedia;
|
|
1175
|
+
takePhoto: typeof takePhoto;
|
|
1176
|
+
};
|
|
1177
|
+
|
|
1178
|
+
declare const ImageSaver: {
|
|
1179
|
+
saveBytesImage(options: {
|
|
1180
|
+
image: ArrayBuffer;
|
|
1181
|
+
quality?: number;
|
|
1182
|
+
name?: string;
|
|
1183
|
+
}): Promise<boolean>;
|
|
1184
|
+
saveBase64Image(options: {
|
|
1185
|
+
image: string;
|
|
1186
|
+
quality?: number;
|
|
1187
|
+
name?: string;
|
|
1188
|
+
}): Promise<boolean>;
|
|
1189
|
+
saveNetworkImage(options: {
|
|
1190
|
+
url: string;
|
|
1191
|
+
quality?: number;
|
|
1192
|
+
name?: string;
|
|
1193
|
+
}): Promise<boolean>;
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
declare function set<T>(key: string, value: T): Promise<boolean>;
|
|
1197
|
+
declare function get<T>(key: string): Promise<T | null>;
|
|
1198
|
+
declare function remove(key: string): Promise<boolean>;
|
|
1199
|
+
declare const Storage: {
|
|
1200
|
+
set: typeof set;
|
|
1201
|
+
get: typeof get;
|
|
1202
|
+
remove: typeof remove;
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1205
|
+
type PermissionStatus = {
|
|
1206
|
+
isDenied: boolean;
|
|
1207
|
+
isGranted: boolean;
|
|
1208
|
+
isLimited: boolean;
|
|
1209
|
+
isPermanentlyDenied: boolean;
|
|
1210
|
+
isProvisional: boolean;
|
|
1211
|
+
isRestricted: boolean;
|
|
1212
|
+
};
|
|
1213
|
+
type PermissionType = 'accessMediaLocation' | 'accessNotificationPolicy' | 'activityRecognition' | 'appTrackingTransparency' | 'audio' | 'bluetoothAdvertise' | 'bluetoothConnect' | 'bluetoothScan' | 'calendarFullAccess' | 'calendarWriteOnly' | 'camera' | 'contacts' | 'criticalAlerts' | 'ignoreBatteryOptimizations' | 'manageExternalStorage' | 'mediaLibrary' | 'microphone' | 'nearbyWifiDevices' | 'notification' | 'photos' | 'photosAddOnly' | 'reminders' | 'requestInstallPackages' | 'scheduleExactAlarm' | 'sensors' | 'sensorsAlways' | 'sms' | 'speech' | 'storage' | 'systemAlertWindow';
|
|
1214
|
+
declare function getPermissionStatus(type: PermissionType): Promise<PermissionStatus>;
|
|
1215
|
+
declare function requestPermission(type: PermissionType): Promise<PermissionStatus>;
|
|
1216
|
+
|
|
1217
|
+
declare function launchUrl(url: string): Promise<boolean>;
|
|
1218
|
+
|
|
1219
|
+
declare function openScriptingApp<T>(options: {
|
|
1220
|
+
url: string;
|
|
1221
|
+
params?: {
|
|
1222
|
+
[key: string]: any;
|
|
1223
|
+
};
|
|
1224
|
+
}): Promise<T | null>;
|
|
1225
|
+
|
|
1226
|
+
declare const Navigation: {
|
|
1227
|
+
launchUrl: typeof launchUrl;
|
|
1228
|
+
openScriptingApp: typeof openScriptingApp;
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* 取消请求的token
|
|
1233
|
+
*
|
|
1234
|
+
* 同一个token可以用于多个请求
|
|
1235
|
+
*/
|
|
1236
|
+
declare class CancelToken {
|
|
1237
|
+
readonly token: string;
|
|
1238
|
+
private _isCancelled;
|
|
1239
|
+
get isCancelled(): boolean;
|
|
1240
|
+
/**
|
|
1241
|
+
* 调用cancel方法后所有请求都会被取消
|
|
1242
|
+
*/
|
|
1243
|
+
cancel(): void;
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* 网络请求 CancelToken
|
|
1247
|
+
*/
|
|
1248
|
+
declare function useCancelToken(): {
|
|
1249
|
+
get: () => CancelToken | undefined;
|
|
1250
|
+
create: () => CancelToken;
|
|
1251
|
+
};
|
|
1252
|
+
|
|
1253
|
+
declare function loadBytes(options: {
|
|
1254
|
+
url: string;
|
|
1255
|
+
noCache?: boolean;
|
|
1256
|
+
timeout?: number;
|
|
1257
|
+
debugLabel?: string;
|
|
1258
|
+
}): Promise<number[] | null>;
|
|
1259
|
+
|
|
1260
|
+
declare function loadFont(options: {
|
|
1261
|
+
family: string;
|
|
1262
|
+
urls: string[];
|
|
1263
|
+
type?: 'otf' | 'ttf';
|
|
1264
|
+
}): Promise<boolean>;
|
|
1265
|
+
|
|
1266
|
+
declare function loadJson<T>(options: {
|
|
1267
|
+
url: string;
|
|
1268
|
+
noCache?: boolean;
|
|
1269
|
+
timeout?: number;
|
|
1270
|
+
debugLabel?: string;
|
|
1271
|
+
}): Promise<T | null>;
|
|
1272
|
+
|
|
1273
|
+
declare function loadString<T>(options: {
|
|
1274
|
+
url: string;
|
|
1275
|
+
noCache?: boolean;
|
|
1276
|
+
timeout?: number;
|
|
1277
|
+
debugLabel?: string;
|
|
1278
|
+
}): Promise<T | null>;
|
|
1279
|
+
|
|
1280
|
+
declare const Request: {
|
|
1281
|
+
loadString: typeof loadString;
|
|
1282
|
+
loadJson: typeof loadJson;
|
|
1283
|
+
loadBytes: typeof loadBytes;
|
|
1284
|
+
loadFont: typeof loadFont;
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1287
|
+
type SocketIOOptions = {};
|
|
1288
|
+
|
|
1289
|
+
declare class SocketIO {
|
|
1290
|
+
private key;
|
|
1291
|
+
url: string;
|
|
1292
|
+
private _eventMap;
|
|
1293
|
+
constructor(key: string, url: string);
|
|
1294
|
+
connect(): void;
|
|
1295
|
+
isConnected(): Promise<boolean | null>;
|
|
1296
|
+
on<T>(event: string, callback: (data: T) => void): void;
|
|
1297
|
+
once<T>(event: string, callback: (data: T) => void): void;
|
|
1298
|
+
off<T>(event: string, callback: (data: T) => void): void;
|
|
1299
|
+
emit(event: string, data?: any): void;
|
|
1300
|
+
emitWithAck(event: string, data?: any): Promise<unknown>;
|
|
1301
|
+
close(): void;
|
|
1302
|
+
dispose(): void;
|
|
1303
|
+
static open(url: string, options?: SocketIOOptions): Promise<SocketIO>;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
type AnimatedAlignProps = {
|
|
1307
|
+
alignment: Alignment;
|
|
1308
|
+
duration: number;
|
|
1309
|
+
heightFactor?: number;
|
|
1310
|
+
widthFactor?: number;
|
|
1311
|
+
curve?: Curve;
|
|
1312
|
+
onEnd?: () => void;
|
|
1313
|
+
children?: VirtualNode;
|
|
1314
|
+
};
|
|
1315
|
+
declare const AnimatedAlign: FunctionComponent<AnimatedAlignProps>;
|
|
1316
|
+
|
|
1317
|
+
type ContainerProps = BoxDecoration & BoxConstraints & {
|
|
1318
|
+
children?: VirtualNode;
|
|
1319
|
+
width?: number | 'infinity';
|
|
1320
|
+
height?: number | 'infinity';
|
|
1321
|
+
/** 设置数值则left,top,right,bottom都生效 */
|
|
1322
|
+
margin?: EdgeInsets | number;
|
|
1323
|
+
/** 设置数值则left,top,right,bottom都生效 */
|
|
1324
|
+
padding?: EdgeInsets | number;
|
|
1325
|
+
alignment?: Alignment;
|
|
1326
|
+
clipBehavior?: Clip;
|
|
1327
|
+
};
|
|
1328
|
+
declare const Container: FunctionComponent<ContainerProps>;
|
|
1329
|
+
|
|
1330
|
+
type AnimatedContainerProps = ContainerProps & {
|
|
1331
|
+
duration: number;
|
|
1332
|
+
curve?: Curve;
|
|
1333
|
+
onEnd?: () => void;
|
|
1334
|
+
};
|
|
1335
|
+
declare const AnimatedContainer: FunctionComponent<AnimatedContainerProps>;
|
|
1336
|
+
|
|
1337
|
+
type AnimatedOpacityProps = {
|
|
1338
|
+
opacity: number;
|
|
1339
|
+
duration: number;
|
|
1340
|
+
curve?: Curve;
|
|
1341
|
+
onEnd?: () => void;
|
|
1342
|
+
alwaysIncludeSemantics?: boolean;
|
|
1343
|
+
children?: VirtualNode;
|
|
1344
|
+
};
|
|
1345
|
+
declare const AnimatedOpacity: FunctionComponent<AnimatedOpacityProps>;
|
|
1346
|
+
|
|
1347
|
+
type AnimatedPaddingProps = {
|
|
1348
|
+
padding: EdgeInsets | number;
|
|
1349
|
+
duration: number;
|
|
1350
|
+
curve?: Curve;
|
|
1351
|
+
onEnd?: () => void;
|
|
1352
|
+
children?: VirtualNode;
|
|
1353
|
+
};
|
|
1354
|
+
declare const AnimatedPadding: FunctionComponent<AnimatedPaddingProps>;
|
|
1355
|
+
|
|
1356
|
+
type AnimatedPositionedProps = {
|
|
1357
|
+
left?: number;
|
|
1358
|
+
right?: number;
|
|
1359
|
+
top?: number;
|
|
1360
|
+
bottom?: number;
|
|
1361
|
+
width?: number;
|
|
1362
|
+
height?: number;
|
|
1363
|
+
curve?: Curve;
|
|
1364
|
+
onEnd?: () => void;
|
|
1365
|
+
duration: number;
|
|
1366
|
+
children: VirtualNode;
|
|
1367
|
+
};
|
|
1368
|
+
declare const AnimatedPositioned: FunctionComponent<AnimatedPositionedProps>;
|
|
1369
|
+
|
|
1370
|
+
type AnimatedRotationProps = {
|
|
1371
|
+
turns: number;
|
|
1372
|
+
duration: number;
|
|
1373
|
+
alignment?: Alignment;
|
|
1374
|
+
curve?: Curve;
|
|
1375
|
+
filterQuality?: FilterQuality;
|
|
1376
|
+
onEnd?: () => void;
|
|
1377
|
+
children?: VirtualNode;
|
|
1378
|
+
};
|
|
1379
|
+
declare const AnimatedRotation: FunctionComponent<AnimatedRotationProps>;
|
|
1380
|
+
|
|
1381
|
+
type AnimatedScaleProps = {
|
|
1382
|
+
scale: number;
|
|
1383
|
+
duration: number;
|
|
1384
|
+
curve?: Curve;
|
|
1385
|
+
alignment?: Alignment;
|
|
1386
|
+
filterQuality?: FilterQuality;
|
|
1387
|
+
onEnd?: () => void;
|
|
1388
|
+
children?: VirtualNode;
|
|
1389
|
+
};
|
|
1390
|
+
declare const AnimatedScale: FunctionComponent<AnimatedScaleProps>;
|
|
1391
|
+
|
|
1392
|
+
type AnimatedSizeProps = {
|
|
1393
|
+
alignment?: Alignment;
|
|
1394
|
+
duration: number;
|
|
1395
|
+
reverseDuration?: number;
|
|
1396
|
+
curve?: Curve;
|
|
1397
|
+
clipBehavior?: Clip;
|
|
1398
|
+
children?: VirtualNode;
|
|
1399
|
+
};
|
|
1400
|
+
declare const AnimatedSize: FunctionComponent<AnimatedSizeProps>;
|
|
1401
|
+
|
|
1402
|
+
type AnimatedSlideProps = {
|
|
1403
|
+
/**
|
|
1404
|
+
* The target offset.
|
|
1405
|
+
* The child will be translated horizontally by width * x and vertically by height * y
|
|
1406
|
+
*/
|
|
1407
|
+
offset: Offset;
|
|
1408
|
+
duration: number;
|
|
1409
|
+
curve?: Curve;
|
|
1410
|
+
onEnd?: () => void;
|
|
1411
|
+
children?: VirtualNode;
|
|
1412
|
+
};
|
|
1413
|
+
declare const AnimatedSlide: FunctionComponent<AnimatedSlideProps>;
|
|
1414
|
+
|
|
1415
|
+
type AnimationValue = number | Offset | RelativeRect | BoxDecoration;
|
|
1416
|
+
type TweenType = 'double' | 'Offset' | 'RelativeRect' | 'BoxDecoration';
|
|
1417
|
+
type Tween<T extends AnimationValue> = {
|
|
1418
|
+
begin: T;
|
|
1419
|
+
end: T;
|
|
1420
|
+
curve?: Curve;
|
|
1421
|
+
reverseCurve?: Curve;
|
|
1422
|
+
};
|
|
1423
|
+
type TweenSequenceItem<T extends AnimationValue> = {
|
|
1424
|
+
begin: T;
|
|
1425
|
+
end: T;
|
|
1426
|
+
curve?: Curve;
|
|
1427
|
+
/**
|
|
1428
|
+
* 0 - 100
|
|
1429
|
+
*/
|
|
1430
|
+
weight: number;
|
|
1431
|
+
};
|
|
1432
|
+
type TweenSequenceConstantItem<T extends AnimationValue> = {
|
|
1433
|
+
value: T;
|
|
1434
|
+
curve?: Curve;
|
|
1435
|
+
/**
|
|
1436
|
+
* 0 - 100
|
|
1437
|
+
*/
|
|
1438
|
+
weight: number;
|
|
1439
|
+
};
|
|
1440
|
+
type TweenSequence<T extends AnimationValue> = Array<TweenSequenceItem<T> | TweenSequenceConstantItem<T>>;
|
|
1441
|
+
type AnimationInitalOptions<T extends AnimationValue> = Tween<T> | TweenSequence<T>;
|
|
1442
|
+
type AnimationStatus = 'dismissed' | 'forward' | 'reverse' | 'completed';
|
|
1443
|
+
type AnimationStatusListener = (status: AnimationStatus) => void;
|
|
1444
|
+
type AnimationControllerIntialOptions = {
|
|
1445
|
+
value?: number;
|
|
1446
|
+
duration?: number;
|
|
1447
|
+
reverseDuration?: number;
|
|
1448
|
+
lowerBound?: number;
|
|
1449
|
+
upperBound?: number;
|
|
1450
|
+
auto?: 'forward' | 'repeat' | 'reverseRepeat';
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
declare class _AnimationBase {
|
|
1454
|
+
private _statusListeners;
|
|
1455
|
+
addStatusListener(listener: AnimationStatusListener): this;
|
|
1456
|
+
removeStatusListener(listener: AnimationStatusListener): this;
|
|
1457
|
+
removeAllStatusListener(): this;
|
|
1458
|
+
private __triggerStatusListener__;
|
|
1459
|
+
protected _checkCallInEffect(methodName: string): void;
|
|
1460
|
+
protected _checkCallInRenderLoop(methodName: string): void;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
declare class Animation<T extends AnimationValue> extends _AnimationBase {
|
|
1464
|
+
readonly key: string;
|
|
1465
|
+
readonly controllerKey: string;
|
|
1466
|
+
readonly tickerProviderKey: string;
|
|
1467
|
+
readonly options: AnimationInitalOptions<T>;
|
|
1468
|
+
readonly isSequence: boolean;
|
|
1469
|
+
constructor(key: string, controllerKey: string, tickerProviderKey: string, options: AnimationInitalOptions<T>, isSequence: boolean);
|
|
1470
|
+
private _getTweenType;
|
|
1471
|
+
readonly type: TweenType;
|
|
1472
|
+
toJson(): {
|
|
1473
|
+
animationKey: string;
|
|
1474
|
+
controllerKey: string;
|
|
1475
|
+
tickerProviderKey: string;
|
|
1476
|
+
};
|
|
1477
|
+
toTweenJson(): {
|
|
1478
|
+
begin: T;
|
|
1479
|
+
end: T;
|
|
1480
|
+
curve?: Curve | undefined;
|
|
1481
|
+
reverseCurve?: Curve | undefined;
|
|
1482
|
+
animationKey: string;
|
|
1483
|
+
controllerKey: string;
|
|
1484
|
+
tickerProviderKey: string;
|
|
1485
|
+
type: TweenType;
|
|
1486
|
+
};
|
|
1487
|
+
toTweenSequenceJson(): {
|
|
1488
|
+
animationKey: string;
|
|
1489
|
+
controllerKey: string;
|
|
1490
|
+
tickerProviderKey: string;
|
|
1491
|
+
type: TweenType;
|
|
1492
|
+
options: TweenSequence<T>;
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
declare class AnimationController extends _AnimationBase {
|
|
1497
|
+
readonly key: string;
|
|
1498
|
+
readonly tickerProviderKey: string;
|
|
1499
|
+
constructor(key: string, tickerProviderKey: string);
|
|
1500
|
+
private _animtions;
|
|
1501
|
+
forward(from?: number): Promise<boolean>;
|
|
1502
|
+
reverse(from?: number): Promise<boolean>;
|
|
1503
|
+
animateTo(target: number, duration?: number): Promise<boolean>;
|
|
1504
|
+
repeat(options?: {
|
|
1505
|
+
min?: number;
|
|
1506
|
+
max?: number;
|
|
1507
|
+
period?: number;
|
|
1508
|
+
reverse?: boolean;
|
|
1509
|
+
}): Promise<boolean>;
|
|
1510
|
+
reset(): Promise<boolean>;
|
|
1511
|
+
stop(canceled?: boolean): Promise<boolean>;
|
|
1512
|
+
useTween<T extends AnimationValue>(options: Tween<T>): Animation<T>;
|
|
1513
|
+
useTweenSequence<T extends AnimationValue>(options: TweenSequence<T>): Animation<T>;
|
|
1514
|
+
private _createAnimation;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
declare function useAnimationController(options?: AnimationControllerIntialOptions): AnimationController;
|
|
1518
|
+
|
|
1519
|
+
type CupertinoActionSheetProps = {
|
|
1520
|
+
title?: VirtualNode;
|
|
1521
|
+
message?: VirtualNode;
|
|
1522
|
+
actions?: VirtualNode[];
|
|
1523
|
+
cancelButton?: VirtualNode;
|
|
1524
|
+
};
|
|
1525
|
+
declare const CupertinoActionSheet: FunctionComponent<CupertinoActionSheetProps>;
|
|
1526
|
+
|
|
1527
|
+
type CupertinoActionSheetActionProps = {
|
|
1528
|
+
isDefaultAction?: boolean;
|
|
1529
|
+
isDestructiveAction?: boolean;
|
|
1530
|
+
onPressed: () => void;
|
|
1531
|
+
children: VirtualNode;
|
|
1532
|
+
};
|
|
1533
|
+
declare const CupertinoActionSheetAction: FunctionComponent<CupertinoActionSheetActionProps>;
|
|
1534
|
+
|
|
1535
|
+
type CupertinoActivityIndicatorProps = {
|
|
1536
|
+
color?: Color;
|
|
1537
|
+
animating?: boolean;
|
|
1538
|
+
radius?: number;
|
|
1539
|
+
partiallyRevealed?: boolean;
|
|
1540
|
+
};
|
|
1541
|
+
declare const CupertinoActivityIndicator: FunctionComponent<CupertinoActivityIndicatorProps>;
|
|
1542
|
+
|
|
1543
|
+
type CupertinoAlertDialogProps = {
|
|
1544
|
+
title?: VirtualNode;
|
|
1545
|
+
content?: VirtualNode;
|
|
1546
|
+
actions?: VirtualNode[];
|
|
1547
|
+
insetAnimationDuration?: number;
|
|
1548
|
+
insetAnimationCurve?: Curve;
|
|
1549
|
+
};
|
|
1550
|
+
declare const CupertinoAlertDialog: FunctionComponent<CupertinoAlertDialogProps>;
|
|
1551
|
+
|
|
1552
|
+
type CupertinoButtonProps = {
|
|
1553
|
+
filled?: boolean;
|
|
1554
|
+
padding?: number | EdgeInsets;
|
|
1555
|
+
color?: Color;
|
|
1556
|
+
disabledColor?: Color;
|
|
1557
|
+
minSize?: number;
|
|
1558
|
+
pressedOpacity?: number;
|
|
1559
|
+
borderRadius?: BorderRadius;
|
|
1560
|
+
alignment?: Alignment;
|
|
1561
|
+
onPressed?: () => void;
|
|
1562
|
+
children: VirtualNode;
|
|
1563
|
+
};
|
|
1564
|
+
declare const CupertinoButton: FunctionComponent<CupertinoButtonProps>;
|
|
1565
|
+
|
|
1566
|
+
type CupertinoContextMenuProps = {
|
|
1567
|
+
enableHapticFeedback?: boolean;
|
|
1568
|
+
actions: VirtualNode[];
|
|
1569
|
+
children: VirtualNode;
|
|
1570
|
+
};
|
|
1571
|
+
declare const CupertinoContextMenu: FunctionComponent<CupertinoContextMenuProps>;
|
|
1572
|
+
|
|
1573
|
+
type CupertinoIcons = "left_chevron" | "right_chevron" | "share" | "share_solid" | "book" | "book_solid" | "bookmark" | "bookmark_solid" | "info" | "reply" | "conversation_bubble" | "profile_circled" | "plus_circled" | "minus_circled" | "flag" | "search" | "check_mark" | "check_mark_circled" | "check_mark_circled_solid" | "circle" | "circle_filled" | "back" | "forward" | "home" | "shopping_cart" | "ellipsis" | "phone" | "phone_solid" | "down_arrow" | "up_arrow" | "battery_charging" | "battery_empty" | "battery_full" | "battery_75_percent" | "battery_25_percent" | "bluetooth" | "restart" | "reply_all" | "reply_thick_solid" | "share_up" | "shuffle" | "shuffle_medium" | "shuffle_thick" | "photo_camera" | "photo_camera_solid" | "video_camera" | "video_camera_solid" | "switch_camera" | "switch_camera_solid" | "collections" | "collections_solid" | "folder" | "folder_solid" | "folder_open" | "delete" | "delete_solid" | "delete_simple" | "pen" | "pencil" | "create" | "create_solid" | "refresh" | "refresh_circled" | "refresh_circled_solid" | "refresh_thin" | "refresh_thick" | "refresh_bold" | "clear_thick" | "clear_thick_circled" | "clear" | "clear_circled" | "clear_circled_solid" | "add" | "add_circled" | "add_circled_solid" | "gear" | "gear_solid" | "gear_big" | "settings" | "settings_solid" | "music_note" | "double_music_note" | "play_arrow" | "play_arrow_solid" | "pause" | "pause_solid" | "loop" | "loop_thick" | "volume_down" | "volume_mute" | "volume_off" | "volume_up" | "fullscreen" | "fullscreen_exit" | "mic_off" | "mic" | "mic_solid" | "clock" | "clock_solid" | "time" | "time_solid" | "padlock" | "padlock_solid" | "eye" | "eye_solid" | "person" | "person_solid" | "person_add" | "person_add_solid" | "group" | "group_solid" | "mail" | "mail_solid" | "location" | "location_solid" | "tag" | "tag_solid" | "tags" | "tags_solid" | "bus" | "car" | "car_detailed" | "train_style_one" | "train_style_two" | "paw" | "paw_solid" | "game_controller" | "game_controller_solid" | "lab_flask" | "lab_flask_solid" | "heart" | "heart_solid" | "bell" | "bell_solid" | "news" | "news_solid" | "brightness" | "brightness_solid" | "airplane" | "alarm" | "alarm_fill" | "alt" | "ant" | "ant_circle" | "ant_circle_fill" | "ant_fill" | "antenna_radiowaves_left_right" | "app" | "app_badge" | "app_badge_fill" | "app_fill" | "archivebox" | "archivebox_fill" | "arrow_2_circlepath" | "arrow_2_circlepath_circle" | "arrow_2_circlepath_circle_fill" | "arrow_2_squarepath" | "arrow_3_trianglepath" | "arrow_branch" | "arrow_clockwise" | "arrow_clockwise_circle" | "arrow_clockwise_circle_fill" | "arrow_counterclockwise" | "arrow_counterclockwise_circle" | "arrow_counterclockwise_circle_fill" | "arrow_down" | "arrow_down_circle" | "arrow_down_circle_fill" | "arrow_down_doc" | "arrow_down_doc_fill" | "arrow_down_left" | "arrow_down_left_circle" | "arrow_down_left_circle_fill" | "arrow_down_left_square" | "arrow_down_left_square_fill" | "arrow_down_right" | "arrow_down_right_arrow_up_left" | "arrow_down_right_circle" | "arrow_down_right_circle_fill" | "arrow_down_right_square" | "arrow_down_right_square_fill" | "arrow_down_square" | "arrow_down_square_fill" | "arrow_down_to_line" | "arrow_down_to_line_alt" | "arrow_left" | "arrow_left_circle" | "arrow_left_circle_fill" | "arrow_left_right" | "arrow_left_right_circle" | "arrow_left_right_circle_fill" | "arrow_left_right_square" | "arrow_left_right_square_fill" | "arrow_left_square" | "arrow_left_square_fill" | "arrow_left_to_line" | "arrow_left_to_line_alt" | "arrow_merge" | "arrow_right" | "arrow_right_arrow_left" | "arrow_right_arrow_left_circle" | "arrow_right_arrow_left_circle_fill" | "arrow_right_arrow_left_square" | "arrow_right_arrow_left_square_fill" | "arrow_right_circle" | "arrow_right_circle_fill" | "arrow_right_square" | "arrow_right_square_fill" | "arrow_right_to_line" | "arrow_right_to_line_alt" | "arrow_swap" | "arrow_turn_down_left" | "arrow_turn_down_right" | "arrow_turn_left_down" | "arrow_turn_left_up" | "arrow_turn_right_down" | "arrow_turn_right_up" | "arrow_turn_up_left" | "arrow_turn_up_right" | "arrow_up" | "arrow_up_arrow_down" | "arrow_up_arrow_down_circle" | "arrow_up_arrow_down_circle_fill" | "arrow_up_arrow_down_square" | "arrow_up_arrow_down_square_fill" | "arrow_up_bin" | "arrow_up_bin_fill" | "arrow_up_circle" | "arrow_up_circle_fill" | "arrow_up_doc" | "arrow_up_doc_fill" | "arrow_up_down" | "arrow_up_down_circle" | "arrow_up_down_circle_fill" | "arrow_up_down_square" | "arrow_up_down_square_fill" | "arrow_up_left" | "arrow_up_left_arrow_down_right" | "arrow_up_left_circle" | "arrow_up_left_circle_fill" | "arrow_up_left_square" | "arrow_up_left_square_fill" | "arrow_up_right" | "arrow_up_right_circle" | "arrow_up_right_circle_fill" | "arrow_up_right_diamond" | "arrow_up_right_diamond_fill" | "arrow_up_right_square" | "arrow_up_right_square_fill" | "arrow_up_square" | "arrow_up_square_fill" | "arrow_up_to_line" | "arrow_up_to_line_alt" | "arrow_uturn_down" | "arrow_uturn_down_circle" | "arrow_uturn_down_circle_fill" | "arrow_uturn_down_square" | "arrow_uturn_down_square_fill" | "arrow_uturn_left" | "arrow_uturn_left_circle" | "arrow_uturn_left_circle_fill" | "arrow_uturn_left_square" | "arrow_uturn_left_square_fill" | "arrow_uturn_right" | "arrow_uturn_right_circle" | "arrow_uturn_right_circle_fill" | "arrow_uturn_right_square" | "arrow_uturn_right_square_fill" | "arrow_uturn_up" | "arrow_uturn_up_circle" | "arrow_uturn_up_circle_fill" | "arrow_uturn_up_square" | "arrow_uturn_up_square_fill" | "arrowshape_turn_up_left" | "arrowshape_turn_up_left_2" | "arrowshape_turn_up_left_2_fill" | "arrowshape_turn_up_left_circle" | "arrowshape_turn_up_left_circle_fill" | "arrowshape_turn_up_left_fill" | "arrowshape_turn_up_right" | "arrowshape_turn_up_right_circle" | "arrowshape_turn_up_right_circle_fill" | "arrowshape_turn_up_right_fill" | "arrowtriangle_down" | "arrowtriangle_down_circle" | "arrowtriangle_down_circle_fill" | "arrowtriangle_down_fill" | "arrowtriangle_down_square" | "arrowtriangle_down_square_fill" | "arrowtriangle_left" | "arrowtriangle_left_circle" | "arrowtriangle_left_circle_fill" | "arrowtriangle_left_fill" | "arrowtriangle_left_square" | "arrowtriangle_left_square_fill" | "arrowtriangle_right" | "arrowtriangle_right_circle" | "arrowtriangle_right_circle_fill" | "arrowtriangle_right_fill" | "arrowtriangle_right_square" | "arrowtriangle_right_square_fill" | "arrowtriangle_up" | "arrowtriangle_up_circle" | "arrowtriangle_up_circle_fill" | "arrowtriangle_up_fill" | "arrowtriangle_up_square" | "arrowtriangle_up_square_fill" | "asterisk_circle" | "asterisk_circle_fill" | "at" | "at_badge_minus" | "at_badge_plus" | "at_circle" | "at_circle_fill" | "backward" | "backward_end" | "backward_end_alt" | "backward_end_alt_fill" | "backward_end_fill" | "backward_fill" | "badge_plus_radiowaves_right" | "bag" | "bag_badge_minus" | "bag_badge_plus" | "bag_fill" | "bag_fill_badge_minus" | "bag_fill_badge_plus" | "bandage" | "bandage_fill" | "barcode" | "barcode_viewfinder" | "bars" | "battery_0" | "battery_100" | "battery_25" | "bed_double" | "bed_double_fill" | "bell_circle" | "bell_circle_fill" | "bell_fill" | "bell_slash" | "bell_slash_fill" | "bin_xmark" | "bin_xmark_fill" | "bitcoin" | "bitcoin_circle" | "bitcoin_circle_fill" | "bold" | "bold_italic_underline" | "bold_underline" | "bolt" | "bolt_badge_a" | "bolt_badge_a_fill" | "bolt_circle" | "bolt_circle_fill" | "bolt_fill" | "bolt_horizontal" | "bolt_horizontal_circle" | "bolt_horizontal_circle_fill" | "bolt_horizontal_fill" | "bolt_slash" | "bolt_slash_fill" | "book_circle" | "book_circle_fill" | "book_fill" | "bookmark_fill" | "briefcase" | "briefcase_fill" | "bubble_left" | "bubble_left_bubble_right" | "bubble_left_bubble_right_fill" | "bubble_left_fill" | "bubble_middle_bottom" | "bubble_middle_bottom_fill" | "bubble_middle_top" | "bubble_middle_top_fill" | "bubble_right" | "bubble_right_fill" | "building_2_fill" | "burn" | "burst" | "burst_fill" | "calendar" | "calendar_badge_minus" | "calendar_badge_plus" | "calendar_circle" | "calendar_circle_fill" | "calendar_today" | "camera" | "camera_circle" | "camera_circle_fill" | "camera_fill" | "camera_on_rectangle" | "camera_on_rectangle_fill" | "camera_rotate" | "camera_rotate_fill" | "camera_viewfinder" | "capslock" | "capslock_fill" | "capsule" | "capsule_fill" | "captions_bubble" | "captions_bubble_fill" | "car_fill" | "cart" | "cart_badge_minus" | "cart_badge_plus" | "cart_fill" | "cart_fill_badge_minus" | "cart_fill_badge_plus" | "chart_bar" | "chart_bar_alt_fill" | "chart_bar_circle" | "chart_bar_circle_fill" | "chart_bar_fill" | "chart_bar_square" | "chart_bar_square_fill" | "chart_pie" | "chart_pie_fill" | "chat_bubble" | "chat_bubble_2" | "chat_bubble_2_fill" | "chat_bubble_fill" | "chat_bubble_text" | "chat_bubble_text_fill" | "checkmark" | "checkmark_alt" | "checkmark_alt_circle" | "checkmark_alt_circle_fill" | "checkmark_circle" | "checkmark_circle_fill" | "checkmark_rectangle" | "checkmark_rectangle_fill" | "checkmark_seal" | "checkmark_seal_fill" | "checkmark_shield" | "checkmark_shield_fill" | "checkmark_square" | "checkmark_square_fill" | "chevron_back" | "chevron_compact_down" | "chevron_compact_left" | "chevron_compact_right" | "chevron_compact_up" | "chevron_down" | "chevron_down_circle" | "chevron_down_circle_fill" | "chevron_down_square" | "chevron_down_square_fill" | "chevron_forward" | "chevron_left" | "chevron_left_2" | "chevron_left_circle" | "chevron_left_circle_fill" | "chevron_left_slash_chevron_right" | "chevron_left_square" | "chevron_left_square_fill" | "chevron_right" | "chevron_right_2" | "chevron_right_circle" | "chevron_right_circle_fill" | "chevron_right_square" | "chevron_right_square_fill" | "chevron_up" | "chevron_up_chevron_down" | "chevron_up_circle" | "chevron_up_circle_fill" | "chevron_up_square" | "chevron_up_square_fill" | "circle_bottomthird_split" | "circle_fill" | "circle_grid_3x3" | "circle_grid_3x3_fill" | "circle_grid_hex" | "circle_grid_hex_fill" | "circle_lefthalf_fill" | "circle_righthalf_fill" | "clear_fill" | "clock_fill" | "cloud" | "cloud_bolt" | "cloud_bolt_fill" | "cloud_bolt_rain" | "cloud_bolt_rain_fill" | "cloud_download" | "cloud_download_fill" | "cloud_drizzle" | "cloud_drizzle_fill" | "cloud_fill" | "cloud_fog" | "cloud_fog_fill" | "cloud_hail" | "cloud_hail_fill" | "cloud_heavyrain" | "cloud_heavyrain_fill" | "cloud_moon" | "cloud_moon_bolt" | "cloud_moon_bolt_fill" | "cloud_moon_fill" | "cloud_moon_rain" | "cloud_moon_rain_fill" | "cloud_rain" | "cloud_rain_fill" | "cloud_sleet" | "cloud_sleet_fill" | "cloud_snow" | "cloud_snow_fill" | "cloud_sun" | "cloud_sun_bolt" | "cloud_sun_bolt_fill" | "cloud_sun_fill" | "cloud_sun_rain" | "cloud_sun_rain_fill" | "cloud_upload" | "cloud_upload_fill" | "color_filter" | "color_filter_fill" | "command" | "compass" | "compass_fill" | "control" | "creditcard" | "creditcard_fill" | "crop" | "crop_rotate" | "cube" | "cube_box" | "cube_box_fill" | "cube_fill" | "cursor_rays" | "decrease_indent" | "decrease_quotelevel" | "delete_left" | "delete_left_fill" | "delete_right" | "delete_right_fill" | "desktopcomputer" | "device_desktop" | "device_laptop" | "device_phone_landscape" | "device_phone_portrait" | "dial" | "dial_fill" | "divide" | "divide_circle" | "divide_circle_fill" | "divide_square" | "divide_square_fill" | "doc" | "doc_append" | "doc_chart" | "doc_chart_fill" | "doc_checkmark" | "doc_checkmark_fill" | "doc_circle" | "doc_circle_fill" | "doc_fill" | "doc_on_clipboard" | "doc_on_clipboard_fill" | "doc_on_doc" | "doc_on_doc_fill" | "doc_person" | "doc_person_fill" | "doc_plaintext" | "doc_richtext" | "doc_text" | "doc_text_fill" | "doc_text_search" | "doc_text_viewfinder" | "dot_radiowaves_left_right" | "dot_radiowaves_right" | "dot_square" | "dot_square_fill" | "download_circle" | "download_circle_fill" | "drop" | "drop_fill" | "drop_triangle" | "drop_triangle_fill" | "ear" | "eject" | "eject_fill" | "ellipses_bubble" | "ellipses_bubble_fill" | "ellipsis_circle" | "ellipsis_circle_fill" | "ellipsis_vertical" | "ellipsis_vertical_circle" | "ellipsis_vertical_circle_fill" | "envelope" | "envelope_badge" | "envelope_badge_fill" | "envelope_circle" | "envelope_circle_fill" | "envelope_fill" | "envelope_open" | "envelope_open_fill" | "equal" | "equal_circle" | "equal_circle_fill" | "equal_square" | "equal_square_fill" | "escape" | "exclamationmark" | "exclamationmark_bubble" | "exclamationmark_bubble_fill" | "exclamationmark_circle" | "exclamationmark_circle_fill" | "exclamationmark_octagon" | "exclamationmark_octagon_fill" | "exclamationmark_shield" | "exclamationmark_shield_fill" | "exclamationmark_square" | "exclamationmark_square_fill" | "exclamationmark_triangle" | "exclamationmark_triangle_fill" | "eye_fill" | "eye_slash" | "eye_slash_fill" | "eyedropper" | "eyedropper_full" | "eyedropper_halffull" | "eyeglasses" | "f_cursive" | "f_cursive_circle" | "f_cursive_circle_fill" | "film" | "film_fill" | "flag_circle" | "flag_circle_fill" | "flag_fill" | "flag_slash" | "flag_slash_fill" | "flame" | "flame_fill" | "floppy_disk" | "flowchart" | "flowchart_fill" | "folder_badge_minus" | "folder_badge_person_crop" | "folder_badge_plus" | "folder_circle" | "folder_circle_fill" | "folder_fill" | "folder_fill_badge_minus" | "folder_fill_badge_person_crop" | "folder_fill_badge_plus" | "forward_end" | "forward_end_alt" | "forward_end_alt_fill" | "forward_end_fill" | "forward_fill" | "function" | "fx" | "gamecontroller" | "gamecontroller_alt_fill" | "gamecontroller_fill" | "gauge" | "gauge_badge_minus" | "gauge_badge_plus" | "gear_alt" | "gear_alt_fill" | "gift" | "gift_alt" | "gift_alt_fill" | "gift_fill" | "globe" | "gobackward" | "gobackward_10" | "gobackward_15" | "gobackward_30" | "gobackward_45" | "gobackward_60" | "gobackward_75" | "gobackward_90" | "gobackward_minus" | "goforward" | "goforward_10" | "goforward_15" | "goforward_30" | "goforward_45" | "goforward_60" | "goforward_75" | "goforward_90" | "goforward_plus" | "graph_circle" | "graph_circle_fill" | "graph_square" | "graph_square_fill" | "greaterthan" | "greaterthan_circle" | "greaterthan_circle_fill" | "greaterthan_square" | "greaterthan_square_fill" | "grid" | "grid_circle" | "grid_circle_fill" | "guitars" | "hammer" | "hammer_fill" | "hand_draw" | "hand_draw_fill" | "hand_point_left" | "hand_point_left_fill" | "hand_point_right" | "hand_point_right_fill" | "hand_raised" | "hand_raised_fill" | "hand_raised_slash" | "hand_raised_slash_fill" | "hand_thumbsdown" | "hand_thumbsdown_fill" | "hand_thumbsup" | "hand_thumbsup_fill" | "hare" | "hare_fill" | "headphones" | "heart_circle" | "heart_circle_fill" | "heart_fill" | "heart_slash" | "heart_slash_circle" | "heart_slash_circle_fill" | "heart_slash_fill" | "helm" | "hexagon" | "hexagon_fill" | "hifispeaker" | "hifispeaker_fill" | "hourglass" | "hourglass_bottomhalf_fill" | "hourglass_tophalf_fill" | "house" | "house_alt" | "house_alt_fill" | "house_fill" | "hurricane" | "increase_indent" | "increase_quotelevel" | "infinite" | "info_circle" | "info_circle_fill" | "italic" | "keyboard" | "keyboard_chevron_compact_down" | "largecircle_fill_circle" | "lasso" | "layers" | "layers_alt" | "layers_alt_fill" | "layers_fill" | "leaf_arrow_circlepath" | "lessthan" | "lessthan_circle" | "lessthan_circle_fill" | "lessthan_square" | "lessthan_square_fill" | "light_max" | "light_min" | "lightbulb" | "lightbulb_fill" | "lightbulb_slash" | "lightbulb_slash_fill" | "line_horizontal_3" | "line_horizontal_3_decrease" | "line_horizontal_3_decrease_circle" | "line_horizontal_3_decrease_circle_fill" | "link" | "link_circle" | "link_circle_fill" | "list_bullet" | "list_bullet_below_rectangle" | "list_bullet_indent" | "list_dash" | "list_number" | "list_number_rtl" | "location_circle" | "location_circle_fill" | "location_fill" | "location_north" | "location_north_fill" | "location_north_line" | "location_north_line_fill" | "location_slash" | "location_slash_fill" | "lock" | "lock_circle" | "lock_circle_fill" | "lock_fill" | "lock_open" | "lock_open_fill" | "lock_rotation" | "lock_rotation_open" | "lock_shield" | "lock_shield_fill" | "lock_slash" | "lock_slash_fill" | "macwindow" | "map" | "map_fill" | "map_pin" | "map_pin_ellipse" | "map_pin_slash" | "memories" | "memories_badge_minus" | "memories_badge_plus" | "metronome" | "mic_circle" | "mic_circle_fill" | "mic_fill" | "mic_slash" | "mic_slash_fill" | "minus" | "minus_circle" | "minus_circle_fill" | "minus_rectangle" | "minus_rectangle_fill" | "minus_slash_plus" | "minus_square" | "minus_square_fill" | "money_dollar" | "money_dollar_circle" | "money_dollar_circle_fill" | "money_euro" | "money_euro_circle" | "money_euro_circle_fill" | "money_pound" | "money_pound_circle" | "money_pound_circle_fill" | "money_rubl" | "money_rubl_circle" | "money_rubl_circle_fill" | "money_yen" | "money_yen_circle" | "money_yen_circle_fill" | "moon" | "moon_circle" | "moon_circle_fill" | "moon_fill" | "moon_stars" | "moon_stars_fill" | "moon_zzz" | "moon_zzz_fill" | "move" | "multiply" | "multiply_circle" | "multiply_circle_fill" | "multiply_square" | "multiply_square_fill" | "music_albums" | "music_albums_fill" | "music_house" | "music_house_fill" | "music_mic" | "music_note_2" | "music_note_list" | "nosign" | "number" | "number_circle" | "number_circle_fill" | "number_square" | "number_square_fill" | "option" | "paintbrush" | "paintbrush_fill" | "pano" | "pano_fill" | "paperclip" | "paperplane" | "paperplane_fill" | "paragraph" | "pause_circle" | "pause_circle_fill" | "pause_fill" | "pause_rectangle" | "pause_rectangle_fill" | "pencil_circle" | "pencil_circle_fill" | "pencil_ellipsis_rectangle" | "pencil_outline" | "pencil_slash" | "percent" | "person_2" | "person_2_alt" | "person_2_fill" | "person_2_square_stack" | "person_2_square_stack_fill" | "person_3" | "person_3_fill" | "person_alt" | "person_alt_circle" | "person_alt_circle_fill" | "person_badge_minus" | "person_badge_minus_fill" | "person_badge_plus" | "person_badge_plus_fill" | "person_circle" | "person_circle_fill" | "person_crop_circle" | "person_crop_circle_badge_checkmark" | "person_crop_circle_badge_exclam" | "person_crop_circle_badge_minus" | "person_crop_circle_badge_plus" | "person_crop_circle_badge_xmark" | "person_crop_circle_fill" | "person_crop_circle_fill_badge_checkmark" | "person_crop_circle_fill_badge_exclam" | "person_crop_circle_fill_badge_minus" | "person_crop_circle_fill_badge_plus" | "person_crop_circle_fill_badge_xmark" | "person_crop_rectangle" | "person_crop_rectangle_fill" | "person_crop_square" | "person_crop_square_fill" | "person_fill" | "personalhotspot" | "perspective" | "phone_arrow_down_left" | "phone_arrow_right" | "phone_arrow_up_right" | "phone_badge_plus" | "phone_circle" | "phone_circle_fill" | "phone_down" | "phone_down_circle" | "phone_down_circle_fill" | "phone_down_fill" | "phone_fill" | "phone_fill_arrow_down_left" | "phone_fill_arrow_right" | "phone_fill_arrow_up_right" | "phone_fill_badge_plus" | "photo" | "photo_fill" | "photo_fill_on_rectangle_fill" | "photo_on_rectangle" | "piano" | "pin" | "pin_fill" | "pin_slash" | "pin_slash_fill" | "placemark" | "placemark_fill" | "play" | "play_circle" | "play_circle_fill" | "play_fill" | "play_rectangle" | "play_rectangle_fill" | "playpause" | "playpause_fill" | "plus" | "plus_app" | "plus_app_fill" | "plus_bubble" | "plus_bubble_fill" | "plus_circle" | "plus_circle_fill" | "plus_rectangle" | "plus_rectangle_fill" | "plus_rectangle_fill_on_rectangle_fill" | "plus_rectangle_on_rectangle" | "plus_slash_minus" | "plus_square" | "plus_square_fill" | "plus_square_fill_on_square_fill" | "plus_square_on_square" | "plusminus" | "plusminus_circle" | "plusminus_circle_fill" | "power" | "printer" | "printer_fill" | "projective" | "purchased" | "purchased_circle" | "purchased_circle_fill" | "qrcode" | "qrcode_viewfinder" | "question" | "question_circle" | "question_circle_fill" | "question_diamond" | "question_diamond_fill" | "question_square" | "question_square_fill" | "quote_bubble" | "quote_bubble_fill" | "radiowaves_left" | "radiowaves_right" | "rays" | "recordingtape" | "rectangle" | "rectangle_3_offgrid" | "rectangle_3_offgrid_fill" | "rectangle_arrow_up_right_arrow_down_left" | "rectangle_arrow_up_right_arrow_down_left_slash" | "rectangle_badge_checkmark" | "rectangle_badge_xmark" | "rectangle_compress_vertical" | "rectangle_dock" | "rectangle_expand_vertical" | "rectangle_fill" | "rectangle_fill_badge_checkmark" | "rectangle_fill_badge_xmark" | "rectangle_fill_on_rectangle_angled_fill" | "rectangle_fill_on_rectangle_fill" | "rectangle_grid_1x2" | "rectangle_grid_1x2_fill" | "rectangle_grid_2x2" | "rectangle_grid_2x2_fill" | "rectangle_grid_3x2" | "rectangle_grid_3x2_fill" | "rectangle_on_rectangle" | "rectangle_on_rectangle_angled" | "rectangle_paperclip" | "rectangle_split_3x1" | "rectangle_split_3x1_fill" | "rectangle_split_3x3" | "rectangle_split_3x3_fill" | "rectangle_stack" | "rectangle_stack_badge_minus" | "rectangle_stack_badge_person_crop" | "rectangle_stack_badge_plus" | "rectangle_stack_fill" | "rectangle_stack_fill_badge_minus" | "rectangle_stack_fill_badge_person_crop" | "rectangle_stack_fill_badge_plus" | "rectangle_stack_person_crop" | "rectangle_stack_person_crop_fill" | "repeat" | "repeat_1" | "resize" | "resize_h" | "resize_v" | "return_icon" | "rhombus" | "rhombus_fill" | "rocket" | "rocket_fill" | "rosette" | "rotate_left" | "rotate_left_fill" | "rotate_right" | "rotate_right_fill" | "scissors" | "scissors_alt" | "scope" | "scribble" | "search_circle" | "search_circle_fill" | "selection_pin_in_out" | "shield" | "shield_fill" | "shield_lefthalf_fill" | "shield_slash" | "shield_slash_fill" | "shift" | "shift_fill" | "sidebar_left" | "sidebar_right" | "signature" | "skew" | "slash_circle" | "slash_circle_fill" | "slider_horizontal_3" | "slider_horizontal_below_rectangle" | "slowmo" | "smallcircle_circle" | "smallcircle_circle_fill" | "smallcircle_fill_circle" | "smallcircle_fill_circle_fill" | "smiley" | "smiley_fill" | "smoke" | "smoke_fill" | "snow" | "sort_down" | "sort_down_circle" | "sort_down_circle_fill" | "sort_up" | "sort_up_circle" | "sort_up_circle_fill" | "sparkles" | "speaker" | "speaker_1" | "speaker_1_fill" | "speaker_2" | "speaker_2_fill" | "speaker_3" | "speaker_3_fill" | "speaker_fill" | "speaker_slash" | "speaker_slash_fill" | "speaker_slash_fill_rtl" | "speaker_slash_rtl" | "speaker_zzz" | "speaker_zzz_fill" | "speaker_zzz_fill_rtl" | "speaker_zzz_rtl" | "speedometer" | "sportscourt" | "sportscourt_fill" | "square" | "square_arrow_down" | "square_arrow_down_fill" | "square_arrow_down_on_square" | "square_arrow_down_on_square_fill" | "square_arrow_left" | "square_arrow_left_fill" | "square_arrow_right" | "square_arrow_right_fill" | "square_arrow_up" | "square_arrow_up_fill" | "square_arrow_up_on_square" | "square_arrow_up_on_square_fill" | "square_favorites" | "square_favorites_alt" | "square_favorites_alt_fill" | "square_favorites_fill" | "square_fill" | "square_fill_line_vertical_square" | "square_fill_line_vertical_square_fill" | "square_fill_on_circle_fill" | "square_fill_on_square_fill" | "square_grid_2x2" | "square_grid_2x2_fill" | "square_grid_3x2" | "square_grid_3x2_fill" | "square_grid_4x3_fill" | "square_lefthalf_fill" | "square_line_vertical_square" | "square_line_vertical_square_fill" | "square_list" | "square_list_fill" | "square_on_circle" | "square_on_square" | "square_pencil" | "square_pencil_fill" | "square_righthalf_fill" | "square_split_1x2" | "square_split_1x2_fill" | "square_split_2x1" | "square_split_2x1_fill" | "square_split_2x2" | "square_split_2x2_fill" | "square_stack" | "square_stack_3d_down_dottedline" | "square_stack_3d_down_right" | "square_stack_3d_down_right_fill" | "square_stack_3d_up" | "square_stack_3d_up_fill" | "square_stack_3d_up_slash" | "square_stack_3d_up_slash_fill" | "square_stack_fill" | "squares_below_rectangle" | "star" | "star_circle" | "star_circle_fill" | "star_fill" | "star_lefthalf_fill" | "star_slash" | "star_slash_fill" | "staroflife" | "staroflife_fill" | "stop" | "stop_circle" | "stop_circle_fill" | "stop_fill" | "stopwatch" | "stopwatch_fill" | "strikethrough" | "suit_club" | "suit_club_fill" | "suit_diamond" | "suit_diamond_fill" | "suit_heart" | "suit_heart_fill" | "suit_spade" | "suit_spade_fill" | "sum" | "sun_dust" | "sun_dust_fill" | "sun_haze" | "sun_haze_fill" | "sun_max" | "sun_max_fill" | "sun_min" | "sun_min_fill" | "sunrise" | "sunrise_fill" | "sunset" | "sunset_fill" | "t_bubble" | "t_bubble_fill" | "table" | "table_badge_more" | "table_badge_more_fill" | "table_fill" | "tag_circle" | "tag_circle_fill" | "tag_fill" | "text_aligncenter" | "text_alignleft" | "text_alignright" | "text_append" | "text_badge_checkmark" | "text_badge_minus" | "text_badge_plus" | "text_badge_star" | "text_badge_xmark" | "text_bubble" | "text_bubble_fill" | "text_cursor" | "text_insert" | "text_justify" | "text_justifyleft" | "text_justifyright" | "text_quote" | "textbox" | "textformat" | "textformat_123" | "textformat_abc" | "textformat_abc_dottedunderline" | "textformat_alt" | "textformat_size" | "textformat_subscript" | "textformat_superscript" | "thermometer" | "thermometer_snowflake" | "thermometer_sun" | "ticket" | "ticket_fill" | "tickets" | "tickets_fill" | "timelapse" | "timer" | "timer_fill" | "today" | "today_fill" | "tornado" | "tortoise" | "tortoise_fill" | "tram_fill" | "trash" | "trash_circle" | "trash_circle_fill" | "trash_fill" | "trash_slash" | "trash_slash_fill" | "tray" | "tray_2" | "tray_2_fill" | "tray_arrow_down" | "tray_arrow_down_fill" | "tray_arrow_up" | "tray_arrow_up_fill" | "tray_fill" | "tray_full" | "tray_full_fill" | "tree" | "triangle" | "triangle_fill" | "triangle_lefthalf_fill" | "triangle_righthalf_fill" | "tropicalstorm" | "tuningfork" | "tv" | "tv_circle" | "tv_circle_fill" | "tv_fill" | "tv_music_note" | "tv_music_note_fill" | "uiwindow_split_2x1" | "umbrella" | "umbrella_fill" | "underline" | "upload_circle" | "upload_circle_fill" | "videocam" | "videocam_circle" | "videocam_circle_fill" | "videocam_fill" | "view_2d" | "view_3d" | "viewfinder" | "viewfinder_circle" | "viewfinder_circle_fill" | "wand_rays" | "wand_rays_inverse" | "wand_stars" | "wand_stars_inverse" | "waveform" | "waveform_circle" | "waveform_circle_fill" | "waveform_path" | "waveform_path_badge_minus" | "waveform_path_badge_plus" | "waveform_path_ecg" | "wifi" | "wifi_exclamationmark" | "wifi_slash" | "wind" | "wind_snow" | "wrench" | "wrench_fill" | "xmark" | "xmark_circle" | "xmark_circle_fill" | "xmark_octagon" | "xmark_octagon_fill" | "xmark_rectangle" | "xmark_rectangle_fill" | "xmark_seal" | "xmark_seal_fill" | "xmark_shield" | "xmark_shield_fill" | "xmark_square" | "xmark_square_fill" | "zoom_in" | "zoom_out" | "zzz";
|
|
1574
|
+
|
|
1575
|
+
type CupertinoContextMenuActionProps = {
|
|
1576
|
+
isDefaultAction?: boolean;
|
|
1577
|
+
isDestructiveAction?: boolean;
|
|
1578
|
+
onPressed?: () => void;
|
|
1579
|
+
trailingIcon?: CupertinoIcons;
|
|
1580
|
+
children: VirtualNode;
|
|
1581
|
+
};
|
|
1582
|
+
declare const CupertinoContextMenuAction: FunctionComponent<CupertinoContextMenuActionProps>;
|
|
1583
|
+
|
|
1584
|
+
type CupertinoDatePickerMode = 'date' | 'dateAndTime' | 'monthYear' | 'time';
|
|
1585
|
+
type DatePickerDateOrder =
|
|
1586
|
+
/**
|
|
1587
|
+
* Order of the columns, from left to right: day, month, year.
|
|
1588
|
+
*
|
|
1589
|
+
* Example: 12 | March | 1996.
|
|
1590
|
+
*/
|
|
1591
|
+
'dmy'
|
|
1592
|
+
/**
|
|
1593
|
+
* Order of the columns, from left to right: month, day, year.
|
|
1594
|
+
*
|
|
1595
|
+
* Example: March | 12 | 1996.
|
|
1596
|
+
*/
|
|
1597
|
+
| 'mdy'
|
|
1598
|
+
/**
|
|
1599
|
+
* Order of the columns, from left to right: year, month, day.
|
|
1600
|
+
*
|
|
1601
|
+
* Example: 1996 | March | 12.
|
|
1602
|
+
*/
|
|
1603
|
+
| 'ymd'
|
|
1604
|
+
/**
|
|
1605
|
+
* Order of the columns, from left to right: year, day, month.
|
|
1606
|
+
*
|
|
1607
|
+
* Example: 1996 | 12 | March.
|
|
1608
|
+
*/
|
|
1609
|
+
| 'ydm';
|
|
1610
|
+
type CupertinoDatePickerProps = {
|
|
1611
|
+
mode?: CupertinoDatePickerMode;
|
|
1612
|
+
onDateTimeChanged?: (timestamp: number) => void;
|
|
1613
|
+
/**
|
|
1614
|
+
* timestamp
|
|
1615
|
+
*/
|
|
1616
|
+
initialDateTime?: number;
|
|
1617
|
+
/**
|
|
1618
|
+
* timestamp
|
|
1619
|
+
*/
|
|
1620
|
+
minimumDate?: number;
|
|
1621
|
+
/**
|
|
1622
|
+
* timestamp
|
|
1623
|
+
*/
|
|
1624
|
+
maximumDate?: number;
|
|
1625
|
+
/**
|
|
1626
|
+
* [int] Default: 1
|
|
1627
|
+
*/
|
|
1628
|
+
minimumYear?: number;
|
|
1629
|
+
/**
|
|
1630
|
+
* [int]
|
|
1631
|
+
*/
|
|
1632
|
+
maximumYear?: number;
|
|
1633
|
+
/**
|
|
1634
|
+
* [int] Default: 1
|
|
1635
|
+
*/
|
|
1636
|
+
minuteInterval?: number;
|
|
1637
|
+
use24hFormat?: boolean;
|
|
1638
|
+
dateOrder?: DatePickerDateOrder;
|
|
1639
|
+
backgroundColor?: Color;
|
|
1640
|
+
showDayOfWeek?: boolean;
|
|
1641
|
+
/**
|
|
1642
|
+
* The uniform height of all children.
|
|
1643
|
+
*
|
|
1644
|
+
* All children will be given the [BoxConstraints] to match this exact height. Must be a positive value.
|
|
1645
|
+
*
|
|
1646
|
+
* Defaults to a value that matches the default iOS date picker wheel.
|
|
1647
|
+
*/
|
|
1648
|
+
itemExtent?: number;
|
|
1649
|
+
};
|
|
1650
|
+
declare const CupertinoDatePicker: FunctionComponent<CupertinoDatePickerProps>;
|
|
1651
|
+
|
|
1652
|
+
type CupertinoDialogActionProps = {
|
|
1653
|
+
isDefaultAction?: boolean;
|
|
1654
|
+
isDestructiveAction?: boolean;
|
|
1655
|
+
textStyle?: TextStyle;
|
|
1656
|
+
onPressed?: () => void;
|
|
1657
|
+
children: VirtualNode;
|
|
1658
|
+
};
|
|
1659
|
+
declare const CupertinoDialogAction: FunctionComponent<CupertinoDialogActionProps>;
|
|
1660
|
+
|
|
1661
|
+
type CupertinoFormRowProps = {
|
|
1662
|
+
padding?: EdgeInsets | number;
|
|
1663
|
+
prefix?: VirtualNode;
|
|
1664
|
+
helper?: VirtualNode;
|
|
1665
|
+
error?: VirtualNode;
|
|
1666
|
+
children: VirtualNode;
|
|
1667
|
+
};
|
|
1668
|
+
declare const CupertinoFormRow: FunctionComponent<CupertinoFormRowProps>;
|
|
1669
|
+
|
|
1670
|
+
type CupertinoFormSectionProps = BoxDecoration & {
|
|
1671
|
+
insetGrouped?: boolean;
|
|
1672
|
+
margin?: EdgeInsets | number;
|
|
1673
|
+
clipBehavior?: Clip;
|
|
1674
|
+
backgroundColor?: Color;
|
|
1675
|
+
header?: VirtualNode;
|
|
1676
|
+
footer?: VirtualNode;
|
|
1677
|
+
children: (VirtualNode | undefined | null | (VirtualNode | undefined | null)[])[] | VirtualNode;
|
|
1678
|
+
};
|
|
1679
|
+
declare const CupertinoFormSection: FunctionComponent<CupertinoFormSectionProps>;
|
|
1680
|
+
|
|
1681
|
+
type CupertinoListSectionProps = BoxDecoration & {
|
|
1682
|
+
insetGrouped?: boolean;
|
|
1683
|
+
margin?: number | EdgeInsets;
|
|
1684
|
+
backgroundColor?: Color;
|
|
1685
|
+
clipBehavior?: Clip;
|
|
1686
|
+
dividerMargin?: number;
|
|
1687
|
+
additionalDividerMargin?: number;
|
|
1688
|
+
topMargin?: number;
|
|
1689
|
+
hasLeading?: boolean;
|
|
1690
|
+
separatorColor?: Color;
|
|
1691
|
+
header?: VirtualNode;
|
|
1692
|
+
footer?: VirtualNode;
|
|
1693
|
+
children?: (VirtualNode | undefined | null | (VirtualNode | undefined | null)[])[] | VirtualNode;
|
|
1694
|
+
};
|
|
1695
|
+
declare const CupertinoListSection: FunctionComponent<CupertinoListSectionProps>;
|
|
1696
|
+
|
|
1697
|
+
type CupertinoListTileProps = {
|
|
1698
|
+
notched?: boolean;
|
|
1699
|
+
padding?: number | EdgeInsets;
|
|
1700
|
+
backgroundColor?: Color;
|
|
1701
|
+
backgroundColorActivated?: Color;
|
|
1702
|
+
onTap?: () => void;
|
|
1703
|
+
subtitle?: VirtualNode;
|
|
1704
|
+
additionalInfo?: VirtualNode;
|
|
1705
|
+
leading?: VirtualNode;
|
|
1706
|
+
leadingSize?: number;
|
|
1707
|
+
leadingToTitle?: number;
|
|
1708
|
+
trailing?: VirtualNode;
|
|
1709
|
+
title: VirtualNode;
|
|
1710
|
+
};
|
|
1711
|
+
declare const CupertinoListTile: FunctionComponent<CupertinoListTileProps>;
|
|
1712
|
+
|
|
1713
|
+
declare const CupertinoListTileChevron: FunctionComponent<{}>;
|
|
1714
|
+
|
|
1715
|
+
type CupertinoNavigationBarProps = {
|
|
1716
|
+
automaticallyImplyLeading?: boolean;
|
|
1717
|
+
automaticallyImplyMiddle?: boolean;
|
|
1718
|
+
previousPageTitle?: string;
|
|
1719
|
+
border?: BoxDecoration['border'];
|
|
1720
|
+
backgroundColor?: Color;
|
|
1721
|
+
brightness?: Brightness;
|
|
1722
|
+
padding?: number | EdgeInsetsDirectional;
|
|
1723
|
+
transitionBetweenRoutes?: boolean;
|
|
1724
|
+
leading?: VirtualNode;
|
|
1725
|
+
middle?: VirtualNode;
|
|
1726
|
+
trailing?: VirtualNode;
|
|
1727
|
+
};
|
|
1728
|
+
declare const CupertinoNavigationBar: FunctionComponent<CupertinoNavigationBarProps>;
|
|
1729
|
+
|
|
1730
|
+
type CupertinoNavigationBarBackButtonProps = {
|
|
1731
|
+
color?: Color;
|
|
1732
|
+
previousPageTitle?: string;
|
|
1733
|
+
onPressed?: () => void;
|
|
1734
|
+
};
|
|
1735
|
+
declare const CupertinoNavigationBarBackButton: FunctionComponent<CupertinoNavigationBarBackButtonProps>;
|
|
1736
|
+
|
|
1737
|
+
type CupertinoPageScaffoldProps = {
|
|
1738
|
+
backgroundColor?: Color;
|
|
1739
|
+
resizeToAvoidBottomInset?: boolean;
|
|
1740
|
+
/**
|
|
1741
|
+
* Must use `<CupertinoNavigationBar />`
|
|
1742
|
+
*/
|
|
1743
|
+
navigationBar?: VirtualNode;
|
|
1744
|
+
children: VirtualNode;
|
|
1745
|
+
};
|
|
1746
|
+
declare const CupertinoPageScaffold: FunctionComponent<CupertinoPageScaffoldProps>;
|
|
1747
|
+
|
|
1748
|
+
type CupertinoPickerProps = {
|
|
1749
|
+
diameterRatio?: number;
|
|
1750
|
+
backgroundColor?: Color;
|
|
1751
|
+
offAxisFraction?: number;
|
|
1752
|
+
useMagnifier?: boolean;
|
|
1753
|
+
magnification?: number;
|
|
1754
|
+
squeeze?: number;
|
|
1755
|
+
looping?: boolean;
|
|
1756
|
+
itemExtent: number;
|
|
1757
|
+
selectionOverlay?: VirtualNode;
|
|
1758
|
+
onSelectedItemChanged?: (index: number) => void;
|
|
1759
|
+
children: (VirtualNode | undefined | null | (VirtualNode | undefined | null)[])[] | VirtualNode;
|
|
1760
|
+
};
|
|
1761
|
+
declare const CupertinoPicker: FunctionComponent<CupertinoPickerProps>;
|
|
1762
|
+
|
|
1763
|
+
type CupertinoPickerDefaultSelectionOverlayProps = {
|
|
1764
|
+
background?: Color;
|
|
1765
|
+
capStartEdge?: boolean;
|
|
1766
|
+
capEndEdge?: boolean;
|
|
1767
|
+
};
|
|
1768
|
+
declare const CupertinoPickerDefaultSelectionOverlay: FunctionComponent<CupertinoPickerDefaultSelectionOverlayProps>;
|
|
1769
|
+
|
|
1770
|
+
type CupertinoScrollerBarProps = {
|
|
1771
|
+
thumbVisibility?: boolean;
|
|
1772
|
+
thickness?: number;
|
|
1773
|
+
thicknessWhileDragging?: number;
|
|
1774
|
+
radius?: number;
|
|
1775
|
+
radiusWhileDragging?: number;
|
|
1776
|
+
scrollbarOrientation?: ScrollOrientation;
|
|
1777
|
+
children: VirtualNode;
|
|
1778
|
+
};
|
|
1779
|
+
declare const CupertinoScrollerBar: FunctionComponent<CupertinoScrollerBarProps>;
|
|
1780
|
+
|
|
1781
|
+
type CupertinoSearchTextFieldProps = {
|
|
1782
|
+
value?: string;
|
|
1783
|
+
placeholder?: string;
|
|
1784
|
+
tapOutsideUnfocus?: boolean;
|
|
1785
|
+
onChanged?: (value: string) => void;
|
|
1786
|
+
autofocus?: boolean;
|
|
1787
|
+
autocorrect?: boolean;
|
|
1788
|
+
decoration?: BoxDecoration;
|
|
1789
|
+
backgroundColor?: Color;
|
|
1790
|
+
borderRadius?: BorderRadius;
|
|
1791
|
+
padding?: number | EdgeInsets;
|
|
1792
|
+
enabled?: boolean;
|
|
1793
|
+
onFocus?: () => void;
|
|
1794
|
+
onBlur?: () => void;
|
|
1795
|
+
onSubmitted?: (value: string) => void;
|
|
1796
|
+
keyboardType?: TextInputType;
|
|
1797
|
+
textStyle?: TextStyle;
|
|
1798
|
+
placeholderStyle?: TextStyle;
|
|
1799
|
+
itemColor?: Color;
|
|
1800
|
+
itemSize?: number;
|
|
1801
|
+
};
|
|
1802
|
+
declare const CupertinoSearchTextField: FunctionComponent<CupertinoSearchTextFieldProps>;
|
|
1803
|
+
|
|
1804
|
+
type CupertinoSegmentedControlProps = {
|
|
1805
|
+
children: (VirtualNode | undefined | null | (VirtualNode | undefined | null)[])[] | VirtualNode;
|
|
1806
|
+
groupValue?: number;
|
|
1807
|
+
onValueChanged: (value: number) => void;
|
|
1808
|
+
unselectedColor?: Color;
|
|
1809
|
+
selectedColor?: Color;
|
|
1810
|
+
borderColor?: Color;
|
|
1811
|
+
pressedColor?: Color;
|
|
1812
|
+
padding?: number | EdgeInsets;
|
|
1813
|
+
};
|
|
1814
|
+
declare const CupertinoSegmentedControl: FunctionComponent<CupertinoSegmentedControlProps>;
|
|
1815
|
+
|
|
1816
|
+
type CupertinoSliderProps = {
|
|
1817
|
+
value: number;
|
|
1818
|
+
onChanged?: (value: number) => void;
|
|
1819
|
+
onChangeStart?: (value: number) => void;
|
|
1820
|
+
onChangeEnd?: (value: number) => void;
|
|
1821
|
+
min?: number;
|
|
1822
|
+
max?: number;
|
|
1823
|
+
divisions?: number;
|
|
1824
|
+
activeColor?: Color;
|
|
1825
|
+
thumbColor?: Color;
|
|
1826
|
+
};
|
|
1827
|
+
declare const CupertinoSlider: FunctionComponent<CupertinoSliderProps>;
|
|
1828
|
+
|
|
1829
|
+
type CupertinoSlidingSegmentedControlProps = {
|
|
1830
|
+
value: number;
|
|
1831
|
+
onChanged: (value: number) => void;
|
|
1832
|
+
children: VirtualNode[];
|
|
1833
|
+
padding?: EdgeInsets | number;
|
|
1834
|
+
thumbColor?: Color;
|
|
1835
|
+
backgroundColor?: Color;
|
|
1836
|
+
};
|
|
1837
|
+
declare const CupertinoSlidingSegmentedControl: FunctionComponent<CupertinoSlidingSegmentedControlProps>;
|
|
1838
|
+
|
|
1839
|
+
type CupertinoSliverNavigationBarProps = {
|
|
1840
|
+
automaticallyImplyLeading?: boolean;
|
|
1841
|
+
automaticallyImplyTitle?: boolean;
|
|
1842
|
+
stretch?: boolean;
|
|
1843
|
+
previousPageTitle?: string;
|
|
1844
|
+
border?: BoxDecoration['border'];
|
|
1845
|
+
backgroundColor?: Color;
|
|
1846
|
+
brightness?: Brightness;
|
|
1847
|
+
padding?: number | EdgeInsetsDirectional;
|
|
1848
|
+
transitionBetweenRoutes?: boolean;
|
|
1849
|
+
leading?: VirtualNode;
|
|
1850
|
+
middle?: VirtualNode;
|
|
1851
|
+
trailing?: VirtualNode;
|
|
1852
|
+
};
|
|
1853
|
+
declare const CupertinoSliverNavigationBar: FunctionComponent<CupertinoSliverNavigationBarProps>;
|
|
1854
|
+
|
|
1855
|
+
type CupertinoSliverRefreshControlProps = {
|
|
1856
|
+
refreshTriggerPullDistance?: number;
|
|
1857
|
+
refreshIndicatorExtent?: number;
|
|
1858
|
+
onRefresh?: () => Promise<void>;
|
|
1859
|
+
};
|
|
1860
|
+
declare const CupertinoSliverRefreshControl: FunctionComponent<CupertinoSliverRefreshControlProps>;
|
|
1861
|
+
|
|
1862
|
+
type CupertinoSwitchProps = {
|
|
1863
|
+
value: boolean;
|
|
1864
|
+
onChanged?: (value: boolean) => void;
|
|
1865
|
+
activeColor?: Color;
|
|
1866
|
+
trackColor?: Color;
|
|
1867
|
+
thumbColor?: Color;
|
|
1868
|
+
focusColor?: Color;
|
|
1869
|
+
onLabelColor?: Color;
|
|
1870
|
+
offLabelColor?: Color;
|
|
1871
|
+
applyTheme?: boolean;
|
|
1872
|
+
autofocus?: boolean;
|
|
1873
|
+
};
|
|
1874
|
+
declare const CupertinoSwitch: FunctionComponent<CupertinoSwitchProps>;
|
|
1875
|
+
|
|
1876
|
+
type CupertinoTabBarProps = {
|
|
1877
|
+
items: (VirtualNode | undefined | null | (VirtualNode | undefined | null)[])[] | VirtualNode;
|
|
1878
|
+
onTap?: (index: number) => void;
|
|
1879
|
+
iconSize?: number;
|
|
1880
|
+
height?: number;
|
|
1881
|
+
currentIndex?: number;
|
|
1882
|
+
backgroundColor?: Color;
|
|
1883
|
+
activeColor?: Color;
|
|
1884
|
+
inactiveColor?: Color;
|
|
1885
|
+
border?: BoxDecoration['border'];
|
|
1886
|
+
};
|
|
1887
|
+
declare const CupertinoTabBar: FunctionComponent<CupertinoTabBarProps>;
|
|
1888
|
+
|
|
1889
|
+
type CupertinoTextFieldProps = {
|
|
1890
|
+
value?: string;
|
|
1891
|
+
placeholder?: string;
|
|
1892
|
+
autocorrect?: boolean;
|
|
1893
|
+
autofocus?: boolean;
|
|
1894
|
+
showCursor?: boolean;
|
|
1895
|
+
readOnly?: boolean;
|
|
1896
|
+
obscureText?: boolean;
|
|
1897
|
+
enabled?: boolean;
|
|
1898
|
+
onChanged?: (value: string) => void;
|
|
1899
|
+
onFocus?: () => void;
|
|
1900
|
+
onBlur?: () => void;
|
|
1901
|
+
keyboardType?: TextInputType;
|
|
1902
|
+
textAlign?: TextAlign;
|
|
1903
|
+
textStyle?: TextStyle;
|
|
1904
|
+
placeholderStyle?: TextStyle;
|
|
1905
|
+
decoration?: BoxDecoration;
|
|
1906
|
+
cursorColor?: Color;
|
|
1907
|
+
cursorHeight?: number;
|
|
1908
|
+
cursorWidth?: number;
|
|
1909
|
+
cursorOpacityAnimates?: boolean;
|
|
1910
|
+
cursorRadius?: number;
|
|
1911
|
+
tapOutsideUnfocus?: boolean;
|
|
1912
|
+
minLines?: number;
|
|
1913
|
+
maxLines?: number;
|
|
1914
|
+
maxLength?: number;
|
|
1915
|
+
enableSuggestions?: boolean;
|
|
1916
|
+
expands?: boolean;
|
|
1917
|
+
obscuringCharacter?: string;
|
|
1918
|
+
prefix?: VirtualNode;
|
|
1919
|
+
suffix?: VirtualNode;
|
|
1920
|
+
prefixMode?: OverlayVisibilityMode;
|
|
1921
|
+
suffixMode?: OverlayVisibilityMode;
|
|
1922
|
+
clearButtonMode?: OverlayVisibilityMode;
|
|
1923
|
+
};
|
|
1924
|
+
declare const CupertinoTextField: FunctionComponent<CupertinoTextFieldProps>;
|
|
1925
|
+
|
|
1926
|
+
type CupertinoTimerPickerMode = 'hm' | 'ms' | 'hms';
|
|
1927
|
+
type CupertinoTimerPickerProps = {
|
|
1928
|
+
mode?: CupertinoTimerPickerMode;
|
|
1929
|
+
onTimerDurationChanged: (durationInMilliseconds: number) => void;
|
|
1930
|
+
initialTimerDuration?: number;
|
|
1931
|
+
minuteInterval?: number;
|
|
1932
|
+
secondInterval?: number;
|
|
1933
|
+
alignment?: Alignment;
|
|
1934
|
+
backgroundColor?: Color;
|
|
1935
|
+
itemExtent?: number;
|
|
1936
|
+
};
|
|
1937
|
+
declare const CupertinoTimerPicker: FunctionComponent<CupertinoTimerPickerProps>;
|
|
1938
|
+
|
|
1939
|
+
type TransformRotateProps = {
|
|
1940
|
+
/**
|
|
1941
|
+
* -math.pi / 12.0,
|
|
1942
|
+
*/
|
|
1943
|
+
angle: number;
|
|
1944
|
+
origin?: Offset;
|
|
1945
|
+
alignment?: Alignment;
|
|
1946
|
+
transformHitTests?: boolean;
|
|
1947
|
+
filterQuality?: FilterQuality;
|
|
1948
|
+
children?: VirtualNode;
|
|
1949
|
+
};
|
|
1950
|
+
declare const TransformRotate: FunctionComponent<TransformRotateProps>;
|
|
1951
|
+
|
|
1952
|
+
type TransformScaleProps = {
|
|
1953
|
+
scale?: number;
|
|
1954
|
+
scaleX?: number;
|
|
1955
|
+
scaleY?: number;
|
|
1956
|
+
origin?: Offset;
|
|
1957
|
+
alignment?: Alignment;
|
|
1958
|
+
transformHitTests?: boolean;
|
|
1959
|
+
filterQuality?: FilterQuality;
|
|
1960
|
+
children?: VirtualNode;
|
|
1961
|
+
};
|
|
1962
|
+
declare const TransformScale: FunctionComponent<TransformScaleProps>;
|
|
1963
|
+
|
|
1964
|
+
type TransformTranslateProps = {
|
|
1965
|
+
offset: Offset;
|
|
1966
|
+
transformHitTests?: boolean;
|
|
1967
|
+
filterQuality?: FilterQuality;
|
|
1968
|
+
children?: VirtualNode;
|
|
1969
|
+
};
|
|
1970
|
+
declare const TransformTranslate: FunctionComponent<TransformTranslateProps>;
|
|
1971
|
+
|
|
1972
|
+
type AbsorbPointerProps = {
|
|
1973
|
+
absorbing?: boolean;
|
|
1974
|
+
children?: VirtualNode;
|
|
1975
|
+
};
|
|
1976
|
+
declare const AbsorbPointer: FunctionComponent<AbsorbPointerProps>;
|
|
1977
|
+
|
|
1978
|
+
type AspectRatioProps = {
|
|
1979
|
+
aspectRatio: number;
|
|
1980
|
+
children?: VirtualNode;
|
|
1981
|
+
};
|
|
1982
|
+
declare const AspectRatio: FunctionComponent<AspectRatioProps>;
|
|
1983
|
+
|
|
1984
|
+
type AutoSizeTextProps = TextStyle & {
|
|
1985
|
+
children: string | number | boolean | Array<string | number | boolean>;
|
|
1986
|
+
textAlign?: TextAlign;
|
|
1987
|
+
textDirection?: TextDirection;
|
|
1988
|
+
softWrap?: boolean;
|
|
1989
|
+
wrapWords?: boolean;
|
|
1990
|
+
textScaleFactor?: number;
|
|
1991
|
+
minFontSize?: number;
|
|
1992
|
+
maxFontSize?: number;
|
|
1993
|
+
maxLines?: number;
|
|
1994
|
+
stepGranularity?: number;
|
|
1995
|
+
presetFontSizes?: number[];
|
|
1996
|
+
semanticsLabel?: string;
|
|
1997
|
+
textWidthBasis?: TextWidthBasis;
|
|
1998
|
+
selectionColor?: Color;
|
|
1999
|
+
structStyle?: StrutStyle;
|
|
2000
|
+
overflowReplacement?: VirtualNode;
|
|
2001
|
+
};
|
|
2002
|
+
declare const AutoSizeText: FunctionComponent<AutoSizeTextProps>;
|
|
2003
|
+
|
|
2004
|
+
type BackdropFilterProps = {
|
|
2005
|
+
filter: ImageFilter;
|
|
2006
|
+
blendMode?: BlendMode;
|
|
2007
|
+
children?: VirtualNode;
|
|
2008
|
+
};
|
|
2009
|
+
declare const BackdropFilter: FunctionComponent<BackdropFilterProps>;
|
|
2010
|
+
|
|
2011
|
+
type BaselineProps = {
|
|
2012
|
+
baseline: number;
|
|
2013
|
+
baselineType: TextBaseLine;
|
|
2014
|
+
children?: VirtualNode;
|
|
2015
|
+
};
|
|
2016
|
+
declare const Baseline: FunctionComponent<BaselineProps>;
|
|
2017
|
+
|
|
2018
|
+
type BottomNavigationBarItemProps = {
|
|
2019
|
+
label?: string;
|
|
2020
|
+
tooltip?: string;
|
|
2021
|
+
icon?: VirtualNode;
|
|
2022
|
+
activeIcon?: VirtualNode;
|
|
2023
|
+
};
|
|
2024
|
+
declare const BottomNavigationBarItem: FunctionComponent<BottomNavigationBarItemProps>;
|
|
2025
|
+
|
|
2026
|
+
type CSSFilterMatrix = {
|
|
2027
|
+
type: 'contrast' | 'blur' | 'brightness' | 'grayscale' | 'hueRotate' | 'invert' | 'opacity' | 'saturate' | 'sepia';
|
|
2028
|
+
value?: number;
|
|
2029
|
+
};
|
|
2030
|
+
type CSSFilterProps = {
|
|
2031
|
+
filters: CSSFilterMatrix[];
|
|
2032
|
+
children: VirtualNode;
|
|
2033
|
+
};
|
|
2034
|
+
declare const CSSFilter: FunctionComponent<CSSFilterProps>;
|
|
2035
|
+
|
|
2036
|
+
type CSSFilterPresetsEffect = 'ins1977' | 'ins1977V2' | 'insAden' | 'insAmaro' | 'insAshby' | 'insBrannan' | 'insBrooklyn' | 'insClarendon' | 'insDogpatch' | 'insEarlybird' | 'insGingham' | 'insHelena' | 'insHudson' | 'insInkwell' | 'insInkwellV2' | 'insJuno' | 'insKelvin' | 'insLark' | 'insLofi' | 'insLudwig' | 'insMaven' | 'insMayfair' | 'insMoon' | 'insMoonV2' | 'insNashville' | 'insNashvilleV2' | 'insPerpetua' | 'insPoprocket' | 'insReyes' | 'insRise' | 'insSierra' | 'insSkyline' | 'insSlumber' | 'insStinson' | 'insSutro' | 'insToaster' | 'insToasterV2' | 'insValencia' | 'insVesper' | 'insWalden' | 'insWaldenV2' | 'insWillow' | 'insXpro2' | 'origin';
|
|
2037
|
+
type CSSFilterPresetsProps = {
|
|
2038
|
+
effect: CSSFilterPresetsEffect;
|
|
2039
|
+
children: VirtualNode;
|
|
2040
|
+
};
|
|
2041
|
+
declare const CSSFilterPresets: FunctionComponent<CSSFilterPresetsProps>;
|
|
2042
|
+
|
|
2043
|
+
type CenterProps = {
|
|
2044
|
+
widthFactor?: number;
|
|
2045
|
+
heightFactor?: number;
|
|
2046
|
+
children?: VirtualNode;
|
|
2047
|
+
};
|
|
2048
|
+
declare const Center: FunctionComponent<CenterProps>;
|
|
2049
|
+
|
|
2050
|
+
type CircularProgressIndicatorProps = {
|
|
2051
|
+
value?: number;
|
|
2052
|
+
backgroundColor?: Color;
|
|
2053
|
+
color?: Color;
|
|
2054
|
+
strokeWidth?: number;
|
|
2055
|
+
/**
|
|
2056
|
+
* -1.0 ~ 1.0
|
|
2057
|
+
*/
|
|
2058
|
+
strokeAlign?: number;
|
|
2059
|
+
strokeCap?: StrokeCap;
|
|
2060
|
+
semanticsLabel?: string;
|
|
2061
|
+
semanticsValue?: string;
|
|
2062
|
+
};
|
|
2063
|
+
declare const CircularProgressIndicator: FunctionComponent<CircularProgressIndicatorProps>;
|
|
2064
|
+
|
|
2065
|
+
type ClipOvalProps = {
|
|
2066
|
+
clipBehavior?: Clip;
|
|
2067
|
+
children?: VirtualNode;
|
|
2068
|
+
};
|
|
2069
|
+
declare const ClipOval: FunctionComponent<ClipOvalProps>;
|
|
2070
|
+
|
|
2071
|
+
type ClipRRectProps = {
|
|
2072
|
+
clipBehavior?: Clip;
|
|
2073
|
+
borderRadius?: number | BorderRadius;
|
|
2074
|
+
children?: VirtualNode;
|
|
2075
|
+
};
|
|
2076
|
+
declare const ClipRRect: FunctionComponent<ClipRRectProps>;
|
|
2077
|
+
|
|
2078
|
+
type ClipRectProps = {
|
|
2079
|
+
clipBehavior?: Clip;
|
|
2080
|
+
children?: VirtualNode;
|
|
2081
|
+
};
|
|
2082
|
+
declare const ClipRect: FunctionComponent<ClipRectProps>;
|
|
2083
|
+
|
|
2084
|
+
type ColumnProps = {
|
|
2085
|
+
mainAxisAlignment?: MainAxisAlignment;
|
|
2086
|
+
crossAxisAlignment?: CrossAxisAlignment;
|
|
2087
|
+
mainAxisSize?: MainAxisSize;
|
|
2088
|
+
textBaseline?: TextBaseLine;
|
|
2089
|
+
textDirection?: TextDirection;
|
|
2090
|
+
verticalDirection?: VerticalDirection;
|
|
2091
|
+
children?: (VirtualNode | undefined | null | (VirtualNode | undefined | null)[])[] | VirtualNode;
|
|
2092
|
+
};
|
|
2093
|
+
declare const Column: FunctionComponent<ColumnProps>;
|
|
2094
|
+
|
|
2095
|
+
declare class LayerLink {
|
|
2096
|
+
readonly key: string;
|
|
2097
|
+
constructor(key: string);
|
|
2098
|
+
}
|
|
2099
|
+
declare function useLayerLink(): LayerLink;
|
|
2100
|
+
type CompositedTransformTargetProps = {
|
|
2101
|
+
link: LayerLink;
|
|
2102
|
+
children?: VirtualNode;
|
|
2103
|
+
};
|
|
2104
|
+
declare const CompositedTransformTarget: FunctionComponent<CompositedTransformTargetProps>;
|
|
2105
|
+
|
|
2106
|
+
type CompositedTransformFollowerProps = {
|
|
2107
|
+
link: LayerLink;
|
|
2108
|
+
showWhenUnlinked?: boolean;
|
|
2109
|
+
offset?: Offset;
|
|
2110
|
+
targetAnchor?: Alignment;
|
|
2111
|
+
followerAnchor?: Alignment;
|
|
2112
|
+
children?: VirtualNode;
|
|
2113
|
+
};
|
|
2114
|
+
declare const CompositedTransformFollower: FunctionComponent<CompositedTransformFollowerProps>;
|
|
2115
|
+
|
|
2116
|
+
type ConstrainedBoxProps = BoxConstraints & {
|
|
2117
|
+
children?: VirtualNode;
|
|
2118
|
+
};
|
|
2119
|
+
declare const ConstrainedBox: FunctionComponent<ConstrainedBoxProps>;
|
|
2120
|
+
|
|
2121
|
+
type CustomScrollViewProps = {
|
|
2122
|
+
scrollDirection?: Axis;
|
|
2123
|
+
reverse?: boolean;
|
|
2124
|
+
primary?: boolean;
|
|
2125
|
+
physics?: ScrollPhysics;
|
|
2126
|
+
shrinkWrap?: boolean;
|
|
2127
|
+
anchor?: number;
|
|
2128
|
+
cacheExtent?: number;
|
|
2129
|
+
clipBehavior?: Clip;
|
|
2130
|
+
keyboardDismissBehavior?: ScrollViewKeyboardDismissBehavior;
|
|
2131
|
+
children: VirtualNode[] | VirtualNode;
|
|
2132
|
+
};
|
|
2133
|
+
declare const CustomScrollView: FunctionComponent<CustomScrollViewProps>;
|
|
2134
|
+
|
|
2135
|
+
type DefaultTabControllerProps = {
|
|
2136
|
+
initialIndex?: number;
|
|
2137
|
+
length: number;
|
|
2138
|
+
animationDuration?: number;
|
|
2139
|
+
children: VirtualNode;
|
|
2140
|
+
};
|
|
2141
|
+
declare const DefaultTabController: FunctionComponent<DefaultTabControllerProps>;
|
|
2142
|
+
|
|
2143
|
+
type DefaultTextStyleProps = TextStyle & {
|
|
2144
|
+
children: VirtualNode;
|
|
2145
|
+
};
|
|
2146
|
+
declare const DefaultTextStyle: FunctionComponent<DefaultTextStyleProps>;
|
|
2147
|
+
|
|
2148
|
+
type DismissableProps = KeyProps & RefProps & {
|
|
2149
|
+
background?: VirtualNode;
|
|
2150
|
+
secondaryBackground?: VirtualNode;
|
|
2151
|
+
direction?: DismissDirection;
|
|
2152
|
+
resizeDuration?: number;
|
|
2153
|
+
movementDuration?: number;
|
|
2154
|
+
dismissThresholds?: {
|
|
2155
|
+
[key in DismissDirection]?: number;
|
|
2156
|
+
};
|
|
2157
|
+
crossAxisEndOffset?: number;
|
|
2158
|
+
confirmDismiss?: (direction: DismissDirection) => Promise<boolean | undefined>;
|
|
2159
|
+
onUpdate?: (details: {
|
|
2160
|
+
direction: DismissDirection;
|
|
2161
|
+
previousReached: boolean;
|
|
2162
|
+
progress: number;
|
|
2163
|
+
reached: boolean;
|
|
2164
|
+
}) => void;
|
|
2165
|
+
onDismissed?: (direction: DismissDirection) => void;
|
|
2166
|
+
children: VirtualNode;
|
|
2167
|
+
};
|
|
2168
|
+
declare const Dismissable: FunctionComponent<DismissableProps>;
|
|
2169
|
+
|
|
2170
|
+
type DottedBorderProps = {
|
|
2171
|
+
color?: Color;
|
|
2172
|
+
strokeWidth?: number;
|
|
2173
|
+
borderType?: 'Rect' | 'RRect' | 'Oval' | 'Circle';
|
|
2174
|
+
/**
|
|
2175
|
+
* Default: [3, 1]
|
|
2176
|
+
*/
|
|
2177
|
+
dashPattern?: number[];
|
|
2178
|
+
padding?: EdgeInsets | number;
|
|
2179
|
+
borderPadding?: EdgeInsets | number;
|
|
2180
|
+
radius?: number;
|
|
2181
|
+
strokeCap?: StrokeCap;
|
|
2182
|
+
children: VirtualNode;
|
|
2183
|
+
};
|
|
2184
|
+
declare const DottedBorder: FunctionComponent<DottedBorderProps>;
|
|
2185
|
+
|
|
2186
|
+
type DottedLineProps = {
|
|
2187
|
+
direction?: Axis;
|
|
2188
|
+
alignment?: WrapAlignment;
|
|
2189
|
+
lineLength?: number | 'infinity';
|
|
2190
|
+
lineThickness?: number;
|
|
2191
|
+
dashLength?: number;
|
|
2192
|
+
dashColor?: Color;
|
|
2193
|
+
dashGradient?: Color[];
|
|
2194
|
+
dashGapLength?: number;
|
|
2195
|
+
dashGapColor?: Color;
|
|
2196
|
+
dashGapGradient?: Color[];
|
|
2197
|
+
dashRadius?: number;
|
|
2198
|
+
dashGapRadius?: number;
|
|
2199
|
+
};
|
|
2200
|
+
declare const DottedLine: FunctionComponent<DottedLineProps>;
|
|
2201
|
+
|
|
2202
|
+
type ExpandedProps = {
|
|
2203
|
+
children: VirtualNode;
|
|
2204
|
+
flex?: number;
|
|
2205
|
+
};
|
|
2206
|
+
declare const Expanded: FunctionComponent<ExpandedProps>;
|
|
2207
|
+
|
|
2208
|
+
type FittedBoxProps = {
|
|
2209
|
+
fit?: BoxFit;
|
|
2210
|
+
alignment?: Alignment;
|
|
2211
|
+
clipBehavior?: Clip;
|
|
2212
|
+
children?: VirtualNode;
|
|
2213
|
+
};
|
|
2214
|
+
declare const FittedBox: FunctionComponent<FittedBoxProps>;
|
|
2215
|
+
|
|
2216
|
+
type GestureDetectorProps = KeyProps & {
|
|
2217
|
+
children?: VirtualNode;
|
|
2218
|
+
onTap?: () => void;
|
|
2219
|
+
onTapDown?: (details: TapDownDetails) => void;
|
|
2220
|
+
onTapUp?: (details: TapUpDetails) => void;
|
|
2221
|
+
onTapCancel?: () => void;
|
|
2222
|
+
onDoubleTap?: () => void;
|
|
2223
|
+
onLongPress?: () => void;
|
|
2224
|
+
onPanDown?: (details: DragDownDetails) => void;
|
|
2225
|
+
onPanStart?: (details: DragDownDetails) => void;
|
|
2226
|
+
onPanUpdate?: (details: DragUpdateDetails) => void;
|
|
2227
|
+
onPanEnd?: (details: DragEndDetails) => void;
|
|
2228
|
+
onPanCancel?: () => void;
|
|
2229
|
+
onScaleStart?: (details: ScaleStartDetails) => void;
|
|
2230
|
+
onScaleUpdate?: (details: ScaleUpdateDetails) => void;
|
|
2231
|
+
onScaleEnd?: (details: ScaleEndDetails) => void;
|
|
2232
|
+
onHorizontalDragDown?: (details: DragDownDetails) => void;
|
|
2233
|
+
onHorizontalDragStart?: (details: DragDownDetails) => void;
|
|
2234
|
+
onHorizontalDragUpdate?: (details: DragUpdateDetails) => void;
|
|
2235
|
+
onHorizontalDragEnd?: (details: DragEndDetails) => void;
|
|
2236
|
+
onHorizontalDragCancel?: () => void;
|
|
2237
|
+
onVerticalDragDown?: (details: DragDownDetails) => void;
|
|
2238
|
+
onVerticalDragStart?: (details: DragDownDetails) => void;
|
|
2239
|
+
onVerticalDragUpdate?: (details: DragUpdateDetails) => void;
|
|
2240
|
+
onVerticalDragEnd?: (details: DragEndDetails) => void;
|
|
2241
|
+
onVerticalDragCancel?: () => void;
|
|
2242
|
+
};
|
|
2243
|
+
declare const GestureDetector: FunctionComponent<GestureDetectorProps>;
|
|
2244
|
+
|
|
2245
|
+
type GifProps = {
|
|
2246
|
+
src: string;
|
|
2247
|
+
duration: number;
|
|
2248
|
+
width?: number;
|
|
2249
|
+
height?: number;
|
|
2250
|
+
repeat?: boolean;
|
|
2251
|
+
};
|
|
2252
|
+
declare const Gif: FunctionComponent<GifProps>;
|
|
2253
|
+
|
|
2254
|
+
type GridDelegateWithFixedCrossAxisCount = {
|
|
2255
|
+
type: 'FixedCrossAxisCount';
|
|
2256
|
+
crossAxisCount: number;
|
|
2257
|
+
};
|
|
2258
|
+
type GridDelegateWithMaxCrossAxisExtent = {
|
|
2259
|
+
type: 'MaxCrossAxisExtent';
|
|
2260
|
+
maxCrossAxisExtent: number;
|
|
2261
|
+
};
|
|
2262
|
+
type GridViewCommonProps = {
|
|
2263
|
+
mainAxisSpacing?: number;
|
|
2264
|
+
crossAxisSpacing?: number;
|
|
2265
|
+
childAspectRatio?: number;
|
|
2266
|
+
mainAxisExtent?: number;
|
|
2267
|
+
scrollDirection?: Axis;
|
|
2268
|
+
reverse?: boolean;
|
|
2269
|
+
primary?: boolean;
|
|
2270
|
+
shrinkWrap?: boolean;
|
|
2271
|
+
physics?: ScrollPhysics;
|
|
2272
|
+
padding?: EdgeInsets | number;
|
|
2273
|
+
addAutomaticKeepAlives?: boolean;
|
|
2274
|
+
addRepaintBoundaries?: boolean;
|
|
2275
|
+
addSemanticIndexes?: boolean;
|
|
2276
|
+
keyboardDismissBehavior?: ScrollViewKeyboardDismissBehavior;
|
|
2277
|
+
clipBehavior?: Clip;
|
|
2278
|
+
cacheExtent?: number;
|
|
2279
|
+
itemCount: number;
|
|
2280
|
+
itemBuilder: (index: number) => VirtualNode | null;
|
|
2281
|
+
onScrollToEnd?: () => void;
|
|
2282
|
+
};
|
|
2283
|
+
type GridViewFixedCrossAxisCountProps = GridDelegateWithFixedCrossAxisCount & GridViewCommonProps;
|
|
2284
|
+
type GridViewMaxCrossAxisExtentProps = GridDelegateWithMaxCrossAxisExtent & GridViewCommonProps;
|
|
2285
|
+
type GridViewProps = GridViewFixedCrossAxisCountProps | GridViewMaxCrossAxisExtentProps;
|
|
2286
|
+
declare const GridView: FunctionComponent<GridViewProps>;
|
|
2287
|
+
|
|
2288
|
+
type HeroProps = {
|
|
2289
|
+
tag: string;
|
|
2290
|
+
children: VirtualNode;
|
|
2291
|
+
};
|
|
2292
|
+
declare const Hero: FunctionComponent<HeroProps>;
|
|
2293
|
+
|
|
2294
|
+
type IconProps = {
|
|
2295
|
+
icon?: CupertinoIcons;
|
|
2296
|
+
size?: number;
|
|
2297
|
+
fill?: number;
|
|
2298
|
+
weight?: number;
|
|
2299
|
+
grade?: number;
|
|
2300
|
+
opticalSize?: number;
|
|
2301
|
+
color?: Color;
|
|
2302
|
+
semanticLabel?: string;
|
|
2303
|
+
textDirection?: TextDirection;
|
|
2304
|
+
};
|
|
2305
|
+
declare const Icon: FunctionComponent<IconProps>;
|
|
2306
|
+
|
|
2307
|
+
type IgnorePointerProps = {
|
|
2308
|
+
ignoring?: boolean;
|
|
2309
|
+
children?: VirtualNode;
|
|
2310
|
+
};
|
|
2311
|
+
declare const IgnorePointer: FunctionComponent<IgnorePointerProps>;
|
|
2312
|
+
|
|
2313
|
+
type ImageProps = {
|
|
2314
|
+
src: string;
|
|
2315
|
+
width?: number | 'infinity';
|
|
2316
|
+
height?: number | 'infinity';
|
|
2317
|
+
color?: Color;
|
|
2318
|
+
fit?: BoxFit;
|
|
2319
|
+
repeat?: ImageRepeat;
|
|
2320
|
+
alignment?: Alignment;
|
|
2321
|
+
};
|
|
2322
|
+
declare const Image: FunctionComponent<ImageProps>;
|
|
2323
|
+
|
|
2324
|
+
type IndexedStackProps = {
|
|
2325
|
+
index?: number;
|
|
2326
|
+
alignment?: Alignment;
|
|
2327
|
+
textDirection?: TextDirection;
|
|
2328
|
+
sizing?: StackFit;
|
|
2329
|
+
children?: VirtualNode[];
|
|
2330
|
+
};
|
|
2331
|
+
declare const IndexedStack: FunctionComponent<IndexedStackProps>;
|
|
2332
|
+
|
|
2333
|
+
type InkWellProps = KeyProps & {
|
|
2334
|
+
highlightColor?: Color;
|
|
2335
|
+
onTap?: () => void;
|
|
2336
|
+
onTapDown?: (details: TapDownDetails) => void;
|
|
2337
|
+
onTapUp?: (details: TapUpDetails) => void;
|
|
2338
|
+
onTapCancel?: () => void;
|
|
2339
|
+
onDoubleTap?: () => void;
|
|
2340
|
+
onLongPress?: () => void;
|
|
2341
|
+
children?: VirtualNode;
|
|
2342
|
+
};
|
|
2343
|
+
declare const InkWell: FunctionComponent<InkWellProps>;
|
|
2344
|
+
|
|
2345
|
+
type IntrinsicHeightProps = {
|
|
2346
|
+
children?: VirtualNode;
|
|
2347
|
+
};
|
|
2348
|
+
declare const IntrinsicHeight: FunctionComponent<IntrinsicHeightProps>;
|
|
2349
|
+
|
|
2350
|
+
type IntrinsicWidthProps = {
|
|
2351
|
+
stepWidth?: number;
|
|
2352
|
+
stepHeight?: number;
|
|
2353
|
+
children?: VirtualNode;
|
|
2354
|
+
};
|
|
2355
|
+
declare const IntrinsicWidth: FunctionComponent<IntrinsicWidthProps>;
|
|
2356
|
+
|
|
2357
|
+
type LinearProgressIndicatorProps = {
|
|
2358
|
+
value?: number;
|
|
2359
|
+
backgroundColor?: Color;
|
|
2360
|
+
color?: Color;
|
|
2361
|
+
minHeight?: number;
|
|
2362
|
+
semanticsLabel?: string;
|
|
2363
|
+
semanticsValue?: string;
|
|
2364
|
+
borderRadius?: BorderRadius | number;
|
|
2365
|
+
};
|
|
2366
|
+
declare const LinearProgressIndicator: FunctionComponent<LinearProgressIndicatorProps>;
|
|
2367
|
+
|
|
2368
|
+
type ListViewProps = {
|
|
2369
|
+
scrollDirection?: Axis;
|
|
2370
|
+
primary?: boolean;
|
|
2371
|
+
physics?: ScrollPhysics;
|
|
2372
|
+
shrinkWrap?: boolean;
|
|
2373
|
+
padding?: EdgeInsets | number;
|
|
2374
|
+
cacheExtent?: number;
|
|
2375
|
+
itemExtent?: number;
|
|
2376
|
+
itemCount: number;
|
|
2377
|
+
clipBehavior?: Clip;
|
|
2378
|
+
keyboardDismissBehavior?: ScrollViewKeyboardDismissBehavior;
|
|
2379
|
+
prototypeItem?: VirtualNode;
|
|
2380
|
+
itemBuilder: (index: number) => VirtualNode | null;
|
|
2381
|
+
onScrollToEnd?: () => void;
|
|
2382
|
+
};
|
|
2383
|
+
declare const ListView: FunctionComponent<ListViewProps>;
|
|
2384
|
+
|
|
2385
|
+
type MaterialProps = {
|
|
2386
|
+
color?: Color;
|
|
2387
|
+
shadowColor?: Color;
|
|
2388
|
+
surfaceTintColor?: Color;
|
|
2389
|
+
elevation?: number;
|
|
2390
|
+
textStyle?: TextStyle;
|
|
2391
|
+
borderRadius?: number | BorderRadius;
|
|
2392
|
+
clipBehavior?: Clip;
|
|
2393
|
+
children?: VirtualNode;
|
|
2394
|
+
};
|
|
2395
|
+
declare const Material: FunctionComponent<MaterialProps>;
|
|
2396
|
+
|
|
2397
|
+
type NavigatorRef = RenderObject & {
|
|
2398
|
+
navigator: WrappedRouter;
|
|
2399
|
+
};
|
|
2400
|
+
type NavigatorProps = {
|
|
2401
|
+
router: Router;
|
|
2402
|
+
ref?: RefObject<NavigatorRef>;
|
|
2403
|
+
};
|
|
2404
|
+
declare function Navigator({ router, ref, }: NavigatorProps): JSX.Element;
|
|
2405
|
+
declare function useNavigator(): WrappedRouter;
|
|
2406
|
+
|
|
2407
|
+
type NestedScrollViewProps = {
|
|
2408
|
+
scrollDirection?: Axis;
|
|
2409
|
+
reverse?: boolean;
|
|
2410
|
+
physics?: ScrollPhysics;
|
|
2411
|
+
floatHeaderSlivers?: boolean;
|
|
2412
|
+
clipBehavior?: Clip;
|
|
2413
|
+
headerSlivers: VirtualNode[];
|
|
2414
|
+
children: VirtualNode;
|
|
2415
|
+
};
|
|
2416
|
+
declare const NestedScrollView: FunctionComponent<NestedScrollViewProps>;
|
|
2417
|
+
|
|
2418
|
+
type NetworkImageProps = KeyProps & {
|
|
2419
|
+
imageUrl: string;
|
|
2420
|
+
httpHeaders?: {
|
|
2421
|
+
[key: string]: string;
|
|
2422
|
+
};
|
|
2423
|
+
width?: number | 'infinity';
|
|
2424
|
+
height?: number | 'infinity';
|
|
2425
|
+
color?: Color;
|
|
2426
|
+
fit?: BoxFit;
|
|
2427
|
+
repeat?: ImageRepeat;
|
|
2428
|
+
alignment?: Alignment;
|
|
2429
|
+
fadeInDuration?: number;
|
|
2430
|
+
fadeOutDuration?: number;
|
|
2431
|
+
};
|
|
2432
|
+
declare const NetworkImage: FunctionComponent<NetworkImageProps>;
|
|
2433
|
+
|
|
2434
|
+
type OpacityProps = {
|
|
2435
|
+
opacity: number;
|
|
2436
|
+
alwaysIncludeSemantics?: boolean;
|
|
2437
|
+
children?: VirtualNode;
|
|
2438
|
+
};
|
|
2439
|
+
declare const Opacity: FunctionComponent<OpacityProps>;
|
|
2440
|
+
|
|
2441
|
+
type OverflowBoxProps = BoxConstraints & {
|
|
2442
|
+
alignment?: Alignment;
|
|
2443
|
+
children?: VirtualNode;
|
|
2444
|
+
};
|
|
2445
|
+
declare const OverflowBox: FunctionComponent<OverflowBoxProps>;
|
|
2446
|
+
|
|
2447
|
+
type OverlayProps = KeyProps & {
|
|
2448
|
+
target: VirtualNode;
|
|
2449
|
+
follower: VirtualNode;
|
|
2450
|
+
visible: boolean;
|
|
2451
|
+
onBarrierDismiss?: () => void;
|
|
2452
|
+
maskColor?: Color;
|
|
2453
|
+
offset?: Offset;
|
|
2454
|
+
targetAnchor?: Alignment;
|
|
2455
|
+
followerAnchor?: Alignment;
|
|
2456
|
+
};
|
|
2457
|
+
declare const Overlay: FunctionComponent<OverlayProps>;
|
|
2458
|
+
|
|
2459
|
+
type PaddingProps = KeyProps & EdgeInsets & {
|
|
2460
|
+
children?: VirtualNode;
|
|
2461
|
+
};
|
|
2462
|
+
declare const Padding: FunctionComponent<PaddingProps>;
|
|
2463
|
+
|
|
2464
|
+
type PageViewProps = {
|
|
2465
|
+
scrollDirection?: Axis;
|
|
2466
|
+
reverse?: boolean;
|
|
2467
|
+
physics?: ScrollPhysics;
|
|
2468
|
+
pageSnapping?: boolean;
|
|
2469
|
+
allowImplicitScrolling?: boolean;
|
|
2470
|
+
clipBehavior?: Clip;
|
|
2471
|
+
padEnds?: boolean;
|
|
2472
|
+
onPageChanged?: (index: number) => void;
|
|
2473
|
+
children: VirtualNode[] | VirtualNode;
|
|
2474
|
+
};
|
|
2475
|
+
declare const PageView: FunctionComponent<PageViewProps>;
|
|
2476
|
+
|
|
2477
|
+
type PopScopeProps = {
|
|
2478
|
+
canPop?: boolean;
|
|
2479
|
+
onPopInvoked?: (didPop: boolean) => void;
|
|
2480
|
+
children: VirtualNode;
|
|
2481
|
+
};
|
|
2482
|
+
declare const PopScope: FunctionComponent<PopScopeProps>;
|
|
2483
|
+
|
|
2484
|
+
type PositionedProps = {
|
|
2485
|
+
children: VirtualNode;
|
|
2486
|
+
left?: number;
|
|
2487
|
+
right?: number;
|
|
2488
|
+
top?: number;
|
|
2489
|
+
bottom?: number;
|
|
2490
|
+
width?: number | 'infinity';
|
|
2491
|
+
height?: number | 'infinity';
|
|
2492
|
+
fill?: true;
|
|
2493
|
+
};
|
|
2494
|
+
declare const Positioned: FunctionComponent<PositionedProps>;
|
|
2495
|
+
|
|
2496
|
+
type QrImageProps = {
|
|
2497
|
+
data: string;
|
|
2498
|
+
size?: number;
|
|
2499
|
+
padding?: EdgeInsets | number;
|
|
2500
|
+
backgroundColor?: Color;
|
|
2501
|
+
eyeStyle?: {
|
|
2502
|
+
eyeShape?: 'circle' | 'square';
|
|
2503
|
+
color?: Color;
|
|
2504
|
+
};
|
|
2505
|
+
dataModuleStyle?: {
|
|
2506
|
+
dataModuleShape?: 'circle' | 'square';
|
|
2507
|
+
color?: Color;
|
|
2508
|
+
};
|
|
2509
|
+
gapless?: boolean;
|
|
2510
|
+
semanticsLabel?: string;
|
|
2511
|
+
};
|
|
2512
|
+
declare const QrImage: FunctionComponent<QrImageProps>;
|
|
2513
|
+
|
|
2514
|
+
type RefreshIndicatorProps = {
|
|
2515
|
+
displacement?: number;
|
|
2516
|
+
edgeOffset?: number;
|
|
2517
|
+
color?: Color;
|
|
2518
|
+
backgroundColor?: Color;
|
|
2519
|
+
strokeWidth?: number;
|
|
2520
|
+
semanticsValue?: string;
|
|
2521
|
+
semanticsLabel?: string;
|
|
2522
|
+
triggerMode?: 'anywhere' | 'onEdge';
|
|
2523
|
+
onRefresh: () => Promise<void>;
|
|
2524
|
+
children: VirtualNode;
|
|
2525
|
+
};
|
|
2526
|
+
declare const RefreshIndicator: FunctionComponent<RefreshIndicatorProps>;
|
|
2527
|
+
|
|
2528
|
+
type ReorderableListViewProps = {
|
|
2529
|
+
padding?: EdgeInsets | number;
|
|
2530
|
+
scrollDirection?: Axis;
|
|
2531
|
+
reverse?: boolean;
|
|
2532
|
+
primary?: boolean;
|
|
2533
|
+
shrinkWrap?: boolean;
|
|
2534
|
+
anchor?: number;
|
|
2535
|
+
cacheExtent?: number;
|
|
2536
|
+
buildDefaultDragHandles?: boolean;
|
|
2537
|
+
physics?: ScrollPhysics;
|
|
2538
|
+
clipBehavior?: Clip;
|
|
2539
|
+
keyboardDismissBehavior?: ScrollViewKeyboardDismissBehavior;
|
|
2540
|
+
itemExtent?: number;
|
|
2541
|
+
itemCount: number;
|
|
2542
|
+
itemBuilder: (index: number) => VirtualNode | null;
|
|
2543
|
+
prototypeItem?: VirtualNode;
|
|
2544
|
+
header?: VirtualNode;
|
|
2545
|
+
footer?: VirtualNode;
|
|
2546
|
+
onReorderStart?: (index: number) => void;
|
|
2547
|
+
onReorderEnd?: (index: number) => void;
|
|
2548
|
+
onReorder: (details: {
|
|
2549
|
+
oldIndex: number;
|
|
2550
|
+
newIndex: number;
|
|
2551
|
+
}) => void;
|
|
2552
|
+
onScrollToEnd?: () => void;
|
|
2553
|
+
};
|
|
2554
|
+
declare const ReorderableListView: FunctionComponent<ReorderableListViewProps>;
|
|
2555
|
+
|
|
2556
|
+
type ImageByteFormat = 'png' | 'rawRgba' | 'rawStraightRgba' | 'rawUnmodified';
|
|
2557
|
+
type RepaintBoundaryRef = RenderObject & {
|
|
2558
|
+
/**
|
|
2559
|
+
* 获取图片的ArrayBuffer数组
|
|
2560
|
+
*/
|
|
2561
|
+
getImageBytes(format?: ImageByteFormat, pixelRatio?: number): Promise<number[] | null>;
|
|
2562
|
+
/**
|
|
2563
|
+
* 生成图片并分享
|
|
2564
|
+
*/
|
|
2565
|
+
shareImage(pixelRatio?: number): Promise<ShareResultStatus | null>;
|
|
2566
|
+
/**
|
|
2567
|
+
* 生成图片并保存
|
|
2568
|
+
*/
|
|
2569
|
+
saveImage(options?: {
|
|
2570
|
+
format?: ImageByteFormat;
|
|
2571
|
+
/**
|
|
2572
|
+
* 图片质量 0-100
|
|
2573
|
+
*/
|
|
2574
|
+
quality?: number;
|
|
2575
|
+
pixelRatio?: number;
|
|
2576
|
+
/**
|
|
2577
|
+
* 图片名称
|
|
2578
|
+
*/
|
|
2579
|
+
name?: string;
|
|
2580
|
+
}): Promise<boolean | null>;
|
|
2581
|
+
};
|
|
2582
|
+
type RepaintBoundaryProps = {
|
|
2583
|
+
ref?: RefObject<RepaintBoundaryRef>;
|
|
2584
|
+
children?: VirtualNode;
|
|
2585
|
+
};
|
|
2586
|
+
declare const RepaintBoundary: FunctionComponent<RepaintBoundaryProps>;
|
|
2587
|
+
|
|
2588
|
+
type RichTextProps = {
|
|
2589
|
+
textAlign?: TextAlign;
|
|
2590
|
+
textDirection?: TextDirection;
|
|
2591
|
+
softWrap?: boolean;
|
|
2592
|
+
overflow?: TextOverflow;
|
|
2593
|
+
textScaleFactor?: number;
|
|
2594
|
+
maxLines?: number;
|
|
2595
|
+
strutStyle?: StrutStyle;
|
|
2596
|
+
textWidthBasis?: TextWidthBasis;
|
|
2597
|
+
/**
|
|
2598
|
+
* 只能作为 `<RichText />`的子节点
|
|
2599
|
+
*/
|
|
2600
|
+
children: VirtualNode;
|
|
2601
|
+
};
|
|
2602
|
+
type TextSpanProps = TextStyle & {
|
|
2603
|
+
text?: string;
|
|
2604
|
+
spellOut?: boolean;
|
|
2605
|
+
semanticsLabel?: string;
|
|
2606
|
+
/**
|
|
2607
|
+
* 只能作为 `<RichText />`的子节点
|
|
2608
|
+
*/
|
|
2609
|
+
children?: VirtualNode[] | VirtualNode;
|
|
2610
|
+
onTap?: () => void;
|
|
2611
|
+
onTapDown?: (details: TapDownDetails) => void;
|
|
2612
|
+
onTapUp?: (details: TapUpDetails) => void;
|
|
2613
|
+
onTapCancel?: () => void;
|
|
2614
|
+
};
|
|
2615
|
+
/**
|
|
2616
|
+
* 只能作为 `<RichText />`的子节点
|
|
2617
|
+
*
|
|
2618
|
+
* 只能接收 `<TextSpan />` 作为子节点
|
|
2619
|
+
*
|
|
2620
|
+
* ```
|
|
2621
|
+
* <RichText>
|
|
2622
|
+
* <TextSpan>
|
|
2623
|
+
* <TextSpan text="Hello" />
|
|
2624
|
+
* <TextSpan text=" World!" />
|
|
2625
|
+
* </TextSpan>
|
|
2626
|
+
* </RichText>
|
|
2627
|
+
* ```
|
|
2628
|
+
*/
|
|
2629
|
+
declare const TextSpan: FunctionComponent<TextSpanProps>;
|
|
2630
|
+
/**
|
|
2631
|
+
* 只能接收 `<TextSpan />` 作为子节点
|
|
2632
|
+
*
|
|
2633
|
+
* ```
|
|
2634
|
+
* <RichText>
|
|
2635
|
+
* <TextSpan>
|
|
2636
|
+
* <TextSpan text="Hello" />
|
|
2637
|
+
* <TextSpan text=" World!" />
|
|
2638
|
+
* </TextSpan>
|
|
2639
|
+
* </RichText>
|
|
2640
|
+
* ```
|
|
2641
|
+
*/
|
|
2642
|
+
declare const RichText: FunctionComponent<RichTextProps>;
|
|
2643
|
+
|
|
2644
|
+
type RotatedBoxProps = {
|
|
2645
|
+
/**
|
|
2646
|
+
* The number of clockwise quarter turns the child should be rotated.
|
|
2647
|
+
*/
|
|
2648
|
+
quarterTurns: number;
|
|
2649
|
+
children?: VirtualNode;
|
|
2650
|
+
};
|
|
2651
|
+
declare const RotatedBox: FunctionComponent<RotatedBoxProps>;
|
|
2652
|
+
|
|
2653
|
+
type RowProps = {
|
|
2654
|
+
mainAxisAlignment?: MainAxisAlignment;
|
|
2655
|
+
crossAxisAlignment?: CrossAxisAlignment;
|
|
2656
|
+
mainAxisSize?: MainAxisSize;
|
|
2657
|
+
textBaseline?: TextBaseLine;
|
|
2658
|
+
textDirection?: TextDirection;
|
|
2659
|
+
verticalDirection?: VerticalDirection;
|
|
2660
|
+
children?: (VirtualNode | undefined | null | (VirtualNode | undefined | null)[])[] | VirtualNode;
|
|
2661
|
+
};
|
|
2662
|
+
declare const Row: FunctionComponent<RowProps>;
|
|
2663
|
+
|
|
2664
|
+
type SafeAreaProps = KeyProps & {
|
|
2665
|
+
children: VirtualNode;
|
|
2666
|
+
top?: boolean;
|
|
2667
|
+
bottom?: boolean;
|
|
2668
|
+
left?: boolean;
|
|
2669
|
+
right?: boolean;
|
|
2670
|
+
minimum?: EdgeInsets | number;
|
|
2671
|
+
maintainBottomViewPadding?: boolean;
|
|
2672
|
+
};
|
|
2673
|
+
declare const SafeArea: FunctionComponent<SafeAreaProps>;
|
|
2674
|
+
|
|
2675
|
+
type ScrollbarProps = {
|
|
2676
|
+
thickness?: number;
|
|
2677
|
+
thumbVisibility?: boolean;
|
|
2678
|
+
trackVisibility?: boolean;
|
|
2679
|
+
radius?: number;
|
|
2680
|
+
interactive?: boolean;
|
|
2681
|
+
scrollbarOrientation?: ScrollOrientation;
|
|
2682
|
+
children: VirtualNode;
|
|
2683
|
+
};
|
|
2684
|
+
declare const Scrollbar: FunctionComponent<ScrollbarProps>;
|
|
2685
|
+
|
|
2686
|
+
type ScrollNotificationListenerProps = KeyProps & {
|
|
2687
|
+
onScrollStart?: (notification: ScrollStartNotification) => void;
|
|
2688
|
+
onScrollUpdate?: (notification: ScrollUpdateNotification) => void;
|
|
2689
|
+
onScrollEnd?: (notification: ScrollEndNotification) => void;
|
|
2690
|
+
onOverScroll?: (notification: OverScrollNotification) => void;
|
|
2691
|
+
onUserScroll?: (notificaiton: UserScrollNotification) => void;
|
|
2692
|
+
children: VirtualNode;
|
|
2693
|
+
};
|
|
2694
|
+
declare const ScrollNotificationListener: FunctionComponent<ScrollNotificationListenerProps>;
|
|
2695
|
+
|
|
2696
|
+
type SingleChildScrollViewProps = KeyProps & {
|
|
2697
|
+
/**
|
|
2698
|
+
* vertical
|
|
2699
|
+
*/
|
|
2700
|
+
scrollDirection?: Axis;
|
|
2701
|
+
reverse?: boolean;
|
|
2702
|
+
padding?: EdgeInsets | number;
|
|
2703
|
+
primary?: boolean;
|
|
2704
|
+
physics?: ScrollPhysics;
|
|
2705
|
+
/**
|
|
2706
|
+
* 默认: hardEdge
|
|
2707
|
+
*/
|
|
2708
|
+
clipBehavior?: Clip;
|
|
2709
|
+
/**
|
|
2710
|
+
* 默认: manual
|
|
2711
|
+
*/
|
|
2712
|
+
keyboardDismissBehavior?: ScrollViewKeyboardDismissBehavior;
|
|
2713
|
+
children?: VirtualNode;
|
|
2714
|
+
};
|
|
2715
|
+
declare const SingleChildScrollView: FunctionComponent<SingleChildScrollViewProps>;
|
|
2716
|
+
|
|
2717
|
+
type SizedBoxProps = {
|
|
2718
|
+
width?: number | 'infinity';
|
|
2719
|
+
height?: number | 'infinity';
|
|
2720
|
+
children?: VirtualNode;
|
|
2721
|
+
};
|
|
2722
|
+
declare const SizedBox: FunctionComponent<SizedBoxProps>;
|
|
2723
|
+
|
|
2724
|
+
type SliverFillRemainingProps = KeyProps & {
|
|
2725
|
+
hasScrollBody?: boolean;
|
|
2726
|
+
fillOverscroll?: boolean;
|
|
2727
|
+
children: VirtualNode;
|
|
2728
|
+
};
|
|
2729
|
+
declare const SliverFillRemaining: FunctionComponent<SliverFillRemainingProps>;
|
|
2730
|
+
|
|
2731
|
+
type SliverFixedHeightPersistentHeaderProps = KeyProps & {
|
|
2732
|
+
height: number;
|
|
2733
|
+
children: VirtualNode;
|
|
2734
|
+
pinned?: boolean;
|
|
2735
|
+
floating?: boolean;
|
|
2736
|
+
};
|
|
2737
|
+
declare const SliverFixedHeightPersistentHeader: FunctionComponent<SliverFixedHeightPersistentHeaderProps>;
|
|
2738
|
+
|
|
2739
|
+
type SliverToBoxAdapterProps = KeyProps & {
|
|
2740
|
+
children: VirtualNode;
|
|
2741
|
+
};
|
|
2742
|
+
declare const SliverToBoxAdapter: FunctionComponent<SliverToBoxAdapterProps>;
|
|
2743
|
+
|
|
2744
|
+
type SpacerProps = {
|
|
2745
|
+
flex?: number;
|
|
2746
|
+
};
|
|
2747
|
+
declare const Spacer: FunctionComponent<SpacerProps>;
|
|
2748
|
+
|
|
2749
|
+
type StackProps = KeyProps & {
|
|
2750
|
+
alignment?: Alignment;
|
|
2751
|
+
textDirection?: TextDecoration;
|
|
2752
|
+
fit?: StackFit;
|
|
2753
|
+
clipBehavior?: Clip;
|
|
2754
|
+
children?: VirtualNode | (VirtualNode | null | undefined)[];
|
|
2755
|
+
};
|
|
2756
|
+
declare const Stack: FunctionComponent<StackProps>;
|
|
2757
|
+
|
|
2758
|
+
type StickyHeaderProps = {
|
|
2759
|
+
header: VirtualNode;
|
|
2760
|
+
content: VirtualNode;
|
|
2761
|
+
overlapHeaders?: boolean;
|
|
2762
|
+
};
|
|
2763
|
+
declare const StickyHeader: FunctionComponent<StickyHeaderProps>;
|
|
2764
|
+
|
|
2765
|
+
type StringSvgProps = KeyProps & {
|
|
2766
|
+
source: string;
|
|
2767
|
+
};
|
|
2768
|
+
declare const StringSvg: FunctionComponent<StringSvgProps>;
|
|
2769
|
+
|
|
2770
|
+
type SvgProps = KeyProps & {
|
|
2771
|
+
src: string;
|
|
2772
|
+
width?: number;
|
|
2773
|
+
height?: number;
|
|
2774
|
+
size?: number;
|
|
2775
|
+
color?: Color;
|
|
2776
|
+
};
|
|
2777
|
+
declare const Svg: FunctionComponent<SvgProps>;
|
|
2778
|
+
|
|
2779
|
+
type SwiperProps = {
|
|
2780
|
+
autoplay?: boolean;
|
|
2781
|
+
/**
|
|
2782
|
+
* 毫秒,默认3000
|
|
2783
|
+
*/
|
|
2784
|
+
autoplayDelay?: number;
|
|
2785
|
+
autoplayDisableOnInteraction?: boolean;
|
|
2786
|
+
/**
|
|
2787
|
+
* 默认300
|
|
2788
|
+
*/
|
|
2789
|
+
duration?: number;
|
|
2790
|
+
/**
|
|
2791
|
+
* 初始化下标
|
|
2792
|
+
*/
|
|
2793
|
+
index?: number;
|
|
2794
|
+
onIndexChanged?: (index: number) => void;
|
|
2795
|
+
loop?: boolean;
|
|
2796
|
+
curve?: Curve;
|
|
2797
|
+
onTap?: (index: number) => void;
|
|
2798
|
+
scrollDirection?: Axis;
|
|
2799
|
+
axisDirection?: AixsDirection;
|
|
2800
|
+
physics?: ScrollPhysics;
|
|
2801
|
+
containerWidth?: number;
|
|
2802
|
+
containerHeight?: number;
|
|
2803
|
+
itemWidth?: number;
|
|
2804
|
+
itemHeight?: number;
|
|
2805
|
+
viewportFraction?: number;
|
|
2806
|
+
/**
|
|
2807
|
+
* viewportFraction设置并 < 1.0 时,该值不生效
|
|
2808
|
+
*/
|
|
2809
|
+
scale?: number;
|
|
2810
|
+
/**
|
|
2811
|
+
* viewportFraction设置并 < 1.0 时,该值不生效
|
|
2812
|
+
*/
|
|
2813
|
+
fade?: number;
|
|
2814
|
+
/**
|
|
2815
|
+
* Indicator是否在外部
|
|
2816
|
+
*/
|
|
2817
|
+
outer?: boolean;
|
|
2818
|
+
layout?: 'default' | 'stack' | 'tinder';
|
|
2819
|
+
indicatorLayout?: 'none' | 'color' | 'drop' | 'scale' | 'slide' | 'warm';
|
|
2820
|
+
children: VirtualNode[] | VirtualNode;
|
|
2821
|
+
pagination?: VirtualNode;
|
|
2822
|
+
};
|
|
2823
|
+
type SwiperPaginationProps = {
|
|
2824
|
+
alignment?: Alignment;
|
|
2825
|
+
margin?: EdgeInsets | number;
|
|
2826
|
+
children: VirtualNode;
|
|
2827
|
+
};
|
|
2828
|
+
declare const Swiper: FunctionComponent<SwiperProps>;
|
|
2829
|
+
declare const SwiperPagination: FunctionComponent<SwiperPaginationProps>;
|
|
2830
|
+
|
|
2831
|
+
type SwitchProps = {
|
|
2832
|
+
value: boolean;
|
|
2833
|
+
onChanged?: (value: boolean) => void;
|
|
2834
|
+
activeColor?: Color;
|
|
2835
|
+
activeTrackColor?: Color;
|
|
2836
|
+
inactiveThumbColor?: Color;
|
|
2837
|
+
inactiveTrackColor?: Color;
|
|
2838
|
+
hoverColor?: Color;
|
|
2839
|
+
focusColor?: Color;
|
|
2840
|
+
splashRadius?: number;
|
|
2841
|
+
autofocus?: boolean;
|
|
2842
|
+
};
|
|
2843
|
+
declare const Switch: FunctionComponent<SwitchProps>;
|
|
2844
|
+
|
|
2845
|
+
type TabControllerRenderNode = {
|
|
2846
|
+
key: string;
|
|
2847
|
+
initialIndex?: number;
|
|
2848
|
+
length: number;
|
|
2849
|
+
animationDuration?: number;
|
|
2850
|
+
listener?: string;
|
|
2851
|
+
};
|
|
2852
|
+
declare class TabController {
|
|
2853
|
+
readonly key: string;
|
|
2854
|
+
constructor(key: string);
|
|
2855
|
+
private _listeners;
|
|
2856
|
+
private _renderNode;
|
|
2857
|
+
get renderNode(): TabControllerRenderNode;
|
|
2858
|
+
getIndex(): Promise<number>;
|
|
2859
|
+
animateTo(index: number, duration?: number): void;
|
|
2860
|
+
addListener(listener: () => void): void;
|
|
2861
|
+
removeListener(listener: () => void): void;
|
|
2862
|
+
private __setup__;
|
|
2863
|
+
dispose(): void;
|
|
2864
|
+
}
|
|
2865
|
+
declare const TabControllerContext: Context<TabController>;
|
|
2866
|
+
type TabControllerRef = RenderObject & {
|
|
2867
|
+
tabController: TabController;
|
|
2868
|
+
};
|
|
2869
|
+
type TabControllerProps = {
|
|
2870
|
+
length: number;
|
|
2871
|
+
initialIndex?: number;
|
|
2872
|
+
animationDuration?: number;
|
|
2873
|
+
children: VirtualNode;
|
|
2874
|
+
ref?: RefObject<TabControllerRef>;
|
|
2875
|
+
};
|
|
2876
|
+
declare function TabControllerProvider({ children, ref, ...props }: TabControllerProps): JSX.Element;
|
|
2877
|
+
declare function TabControllerConsumer({ children, }: {
|
|
2878
|
+
children: (tabController: TabController) => VirtualNode;
|
|
2879
|
+
}): JSX.Element;
|
|
2880
|
+
declare function useTabController(): TabController;
|
|
2881
|
+
|
|
2882
|
+
type TabBarProps = {
|
|
2883
|
+
controller?: TabController;
|
|
2884
|
+
tabAlignment?: TabAlignment;
|
|
2885
|
+
tabs: VirtualNode[];
|
|
2886
|
+
isScrollable?: boolean;
|
|
2887
|
+
padding?: EdgeInsets | number;
|
|
2888
|
+
indicatorColor?: Color;
|
|
2889
|
+
automaticIndicatorColorAdjustment?: boolean;
|
|
2890
|
+
indicatorWeight?: number;
|
|
2891
|
+
indicatorPadding?: EdgeInsets | number;
|
|
2892
|
+
indicator?: BoxDecoration;
|
|
2893
|
+
indicatorSize?: TabBarIndicatorSize;
|
|
2894
|
+
dividerColor?: Color;
|
|
2895
|
+
labelColor?: Color;
|
|
2896
|
+
enableFeedback?: boolean;
|
|
2897
|
+
onTap?: (index: number) => void;
|
|
2898
|
+
physics?: ScrollPhysics;
|
|
2899
|
+
splashBorderRadius?: BorderRadius | number;
|
|
2900
|
+
};
|
|
2901
|
+
declare const TabBar: FunctionComponent<TabBarProps>;
|
|
2902
|
+
|
|
2903
|
+
type TabBarViewProps = {
|
|
2904
|
+
controller?: TabController;
|
|
2905
|
+
physics?: ScrollPhysics;
|
|
2906
|
+
viewportFraction?: number;
|
|
2907
|
+
clipBehavior?: Clip;
|
|
2908
|
+
children: (VirtualNode | undefined | null | (VirtualNode | undefined | null)[])[] | VirtualNode;
|
|
2909
|
+
};
|
|
2910
|
+
declare function TabBarView({ children, ...props }: TabBarViewProps): JSX.Element;
|
|
2911
|
+
|
|
2912
|
+
type TextProps = TextStyle & {
|
|
2913
|
+
children: string | number | boolean | Array<string | number | boolean>;
|
|
2914
|
+
textAlign?: TextAlign;
|
|
2915
|
+
textDirection?: TextDirection;
|
|
2916
|
+
softWrap?: boolean;
|
|
2917
|
+
textScaleFactor?: number;
|
|
2918
|
+
maxLines?: number;
|
|
2919
|
+
semanticsLabel?: string;
|
|
2920
|
+
textWidthBasis?: TextWidthBasis;
|
|
2921
|
+
selectionColor?: Color;
|
|
2922
|
+
strutStyle?: StrutStyle;
|
|
2923
|
+
textHeightBehavior?: TextHeightBehavior;
|
|
2924
|
+
};
|
|
2925
|
+
declare const Text: FunctionComponent<TextProps>;
|
|
2926
|
+
|
|
2927
|
+
type TextFieldProps = {
|
|
2928
|
+
value?: string;
|
|
2929
|
+
onChanged?: (value: string) => void;
|
|
2930
|
+
onFocus?: () => void;
|
|
2931
|
+
onBlur?: () => void;
|
|
2932
|
+
textStyle?: TextStyle;
|
|
2933
|
+
textAlign?: TextAlign;
|
|
2934
|
+
hintText?: string;
|
|
2935
|
+
hintTextStyle?: TextStyle;
|
|
2936
|
+
autofocus?: boolean;
|
|
2937
|
+
readOnly?: boolean;
|
|
2938
|
+
obscureText?: boolean;
|
|
2939
|
+
enabled?: boolean;
|
|
2940
|
+
keyboardType?: TextInputType;
|
|
2941
|
+
maxLines?: number;
|
|
2942
|
+
minLines?: number;
|
|
2943
|
+
maxLength?: number;
|
|
2944
|
+
enableSuggestions?: boolean;
|
|
2945
|
+
expands?: boolean;
|
|
2946
|
+
obscuringCharacter?: string;
|
|
2947
|
+
};
|
|
2948
|
+
declare const TextField: FunctionComponent<TextFieldProps>;
|
|
2949
|
+
|
|
2950
|
+
type TickerManagerRef = {
|
|
2951
|
+
tickerManager: TickerManager;
|
|
2952
|
+
};
|
|
2953
|
+
type TickerManagerProviderProps = {
|
|
2954
|
+
children: VirtualNode;
|
|
2955
|
+
ref?: RefObject<TickerManagerRef>;
|
|
2956
|
+
};
|
|
2957
|
+
declare class TickerManager {
|
|
2958
|
+
readonly key: string;
|
|
2959
|
+
constructor(key: string);
|
|
2960
|
+
private _tickers;
|
|
2961
|
+
get tickers(): Ticker[];
|
|
2962
|
+
createTicker(onTick: (elapsed: number) => void): Ticker;
|
|
2963
|
+
dispose(): void;
|
|
2964
|
+
}
|
|
2965
|
+
declare class Ticker {
|
|
2966
|
+
private readonly _manager;
|
|
2967
|
+
private readonly _tickerKey;
|
|
2968
|
+
private readonly _remove;
|
|
2969
|
+
constructor(_manager: TickerManager, _tickerKey: string, _remove: () => void);
|
|
2970
|
+
start(): Promise<boolean>;
|
|
2971
|
+
stop(canceled?: boolean): Promise<boolean>;
|
|
2972
|
+
remove(): void;
|
|
2973
|
+
}
|
|
2974
|
+
declare function TickerManagerProvider({ children, ref, }: TickerManagerProviderProps): JSX.Element;
|
|
2975
|
+
declare function TickerManagerConsumer({ children }: {
|
|
2976
|
+
children: (tickerManager: TickerManager) => VirtualNode;
|
|
2977
|
+
}): JSX.Element;
|
|
2978
|
+
declare function useTickerManager(): TickerManager;
|
|
2979
|
+
|
|
2980
|
+
type UnconstrainedBoxProps = {
|
|
2981
|
+
textDirection?: TextDecoration;
|
|
2982
|
+
alignment?: Alignment;
|
|
2983
|
+
constrainedAxis?: Axis;
|
|
2984
|
+
clipBehavior?: Clip;
|
|
2985
|
+
children?: VirtualNode;
|
|
2986
|
+
};
|
|
2987
|
+
declare const UnconstrainedBox: FunctionComponent<UnconstrainedBoxProps>;
|
|
2988
|
+
|
|
2989
|
+
declare class WebViewController {
|
|
2990
|
+
readonly key: string;
|
|
2991
|
+
constructor(key: string);
|
|
2992
|
+
/**
|
|
2993
|
+
* 加载url
|
|
2994
|
+
*/
|
|
2995
|
+
loadUrl(url: string): void;
|
|
2996
|
+
/**
|
|
2997
|
+
* 加载数据,如 html 或 pdf 或base64图片
|
|
2998
|
+
*/
|
|
2999
|
+
loadData(data: string, options?: {
|
|
3000
|
+
mimeType?: string;
|
|
3001
|
+
encoding?: string;
|
|
3002
|
+
baseUrl?: string;
|
|
3003
|
+
}): void;
|
|
3004
|
+
getHtml(): Promise<string | null>;
|
|
3005
|
+
reload(): void;
|
|
3006
|
+
evaluateJavaScript<T>(source: string): Promise<T>;
|
|
3007
|
+
callAsyncJavaScript<T>(source: string): Promise<T>;
|
|
3008
|
+
}
|
|
3009
|
+
type WebViewSettings = {
|
|
3010
|
+
useShouldOverrideUrlLoading?: boolean;
|
|
3011
|
+
clearCache?: boolean;
|
|
3012
|
+
userAgent?: string;
|
|
3013
|
+
verticalScrollBarEnabled?: boolean;
|
|
3014
|
+
horizontalScrollBarEnabled?: boolean;
|
|
3015
|
+
mediaPlaybackRequiresUserGesture?: boolean;
|
|
3016
|
+
cacheEnabled?: boolean;
|
|
3017
|
+
transparentBackground?: boolean;
|
|
3018
|
+
disableVerticalScroll?: boolean;
|
|
3019
|
+
disableHorizontalScroll?: boolean;
|
|
3020
|
+
supportZoom?: boolean;
|
|
3021
|
+
disallowOverScroll?: boolean;
|
|
3022
|
+
allowsInlineMediaPlayback?: boolean;
|
|
3023
|
+
iframeAllow?: string;
|
|
3024
|
+
iframeAllowFullscreen?: boolean;
|
|
3025
|
+
allowsBackForwardNavigationGestures?: boolean;
|
|
3026
|
+
};
|
|
3027
|
+
type WebViewProps = {
|
|
3028
|
+
/**
|
|
3029
|
+
* 访问的链接
|
|
3030
|
+
*/
|
|
3031
|
+
url?: string;
|
|
3032
|
+
data?: {
|
|
3033
|
+
/**
|
|
3034
|
+
* html string
|
|
3035
|
+
*/
|
|
3036
|
+
data: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* https://www.vstar.com
|
|
3039
|
+
*/
|
|
3040
|
+
baseUrl?: string;
|
|
3041
|
+
/**
|
|
3042
|
+
* utf8
|
|
3043
|
+
*/
|
|
3044
|
+
encoding?: string;
|
|
3045
|
+
/**
|
|
3046
|
+
* 'text/html'
|
|
3047
|
+
*/
|
|
3048
|
+
mimeType?: string;
|
|
3049
|
+
};
|
|
3050
|
+
settings?: WebViewSettings;
|
|
3051
|
+
onWebViewCreated?: (controller: WebViewController) => void;
|
|
3052
|
+
onLoadStart?: (url?: string) => void;
|
|
3053
|
+
onLoadStop?: (url?: string) => void;
|
|
3054
|
+
onReceivedError?: (details: {
|
|
3055
|
+
url: string;
|
|
3056
|
+
isForMainFrame: boolean;
|
|
3057
|
+
errorType: string;
|
|
3058
|
+
description: string;
|
|
3059
|
+
}) => void;
|
|
3060
|
+
onProgressChanged?: (progress: number) => void;
|
|
3061
|
+
shouldOverrideUrlLoading?: (url: string) => Promise<boolean>;
|
|
3062
|
+
};
|
|
3063
|
+
declare function WebView({ onWebViewCreated, ...props }: WebViewProps): JSX.Element;
|
|
3064
|
+
|
|
3065
|
+
type WrapProps = {
|
|
3066
|
+
direction?: Axis;
|
|
3067
|
+
alignment?: WrapAlignment;
|
|
3068
|
+
spacing?: number;
|
|
3069
|
+
runAlignment?: WrapAlignment;
|
|
3070
|
+
runSpacing?: number;
|
|
3071
|
+
crossAxisAlignment?: WrapCrossAlignment;
|
|
3072
|
+
textDirection?: TextDirection;
|
|
3073
|
+
verticalDirection?: VerticalDirection;
|
|
3074
|
+
clipBehavior?: Clip;
|
|
3075
|
+
children?: (VirtualNode | undefined | null)[] | VirtualNode;
|
|
3076
|
+
};
|
|
3077
|
+
declare const Wrap: FunctionComponent<WrapProps>;
|
|
3078
|
+
|
|
3079
|
+
declare const index_AbsorbPointer: typeof AbsorbPointer;
|
|
3080
|
+
type index_AbsorbPointerProps = AbsorbPointerProps;
|
|
3081
|
+
type index_AixsDirection = AixsDirection;
|
|
3082
|
+
type index_Alignment = Alignment;
|
|
3083
|
+
declare const index_AnimatedAlign: typeof AnimatedAlign;
|
|
3084
|
+
type index_AnimatedAlignProps = AnimatedAlignProps;
|
|
3085
|
+
declare const index_AnimatedContainer: typeof AnimatedContainer;
|
|
3086
|
+
type index_AnimatedContainerProps = AnimatedContainerProps;
|
|
3087
|
+
declare const index_AnimatedOpacity: typeof AnimatedOpacity;
|
|
3088
|
+
type index_AnimatedOpacityProps = AnimatedOpacityProps;
|
|
3089
|
+
declare const index_AnimatedPadding: typeof AnimatedPadding;
|
|
3090
|
+
type index_AnimatedPaddingProps = AnimatedPaddingProps;
|
|
3091
|
+
declare const index_AnimatedPositioned: typeof AnimatedPositioned;
|
|
3092
|
+
type index_AnimatedPositionedProps = AnimatedPositionedProps;
|
|
3093
|
+
declare const index_AnimatedRotation: typeof AnimatedRotation;
|
|
3094
|
+
type index_AnimatedRotationProps = AnimatedRotationProps;
|
|
3095
|
+
declare const index_AnimatedScale: typeof AnimatedScale;
|
|
3096
|
+
type index_AnimatedScaleProps = AnimatedScaleProps;
|
|
3097
|
+
declare const index_AnimatedSize: typeof AnimatedSize;
|
|
3098
|
+
type index_AnimatedSizeProps = AnimatedSizeProps;
|
|
3099
|
+
declare const index_AnimatedSlide: typeof AnimatedSlide;
|
|
3100
|
+
type index_AnimatedSlideProps = AnimatedSlideProps;
|
|
3101
|
+
type index_AnimationControllerIntialOptions = AnimationControllerIntialOptions;
|
|
3102
|
+
type index_AnimationInitalOptions<T extends AnimationValue> = AnimationInitalOptions<T>;
|
|
3103
|
+
type index_AnimationStatus = AnimationStatus;
|
|
3104
|
+
type index_AnimationStatusListener = AnimationStatusListener;
|
|
3105
|
+
type index_AnimationValue = AnimationValue;
|
|
3106
|
+
declare const index_AspectRatio: typeof AspectRatio;
|
|
3107
|
+
type index_AspectRatioProps = AspectRatioProps;
|
|
3108
|
+
declare const index_AutoSizeText: typeof AutoSizeText;
|
|
3109
|
+
type index_AutoSizeTextProps = AutoSizeTextProps;
|
|
3110
|
+
type index_Axis = Axis;
|
|
3111
|
+
declare const index_BackdropFilter: typeof BackdropFilter;
|
|
3112
|
+
type index_BackdropFilterProps = BackdropFilterProps;
|
|
3113
|
+
declare const index_Baseline: typeof Baseline;
|
|
3114
|
+
type index_BaselineProps = BaselineProps;
|
|
3115
|
+
type index_BlendMode = BlendMode;
|
|
3116
|
+
type index_BlurStyle = BlurStyle;
|
|
3117
|
+
type index_BorderRadius = BorderRadius;
|
|
3118
|
+
type index_BorderSide = BorderSide;
|
|
3119
|
+
declare const index_BottomNavigationBarItem: typeof BottomNavigationBarItem;
|
|
3120
|
+
type index_BottomNavigationBarItemProps = BottomNavigationBarItemProps;
|
|
3121
|
+
type index_BoxConstraints = BoxConstraints;
|
|
3122
|
+
type index_BoxDecoration = BoxDecoration;
|
|
3123
|
+
type index_BoxFit = BoxFit;
|
|
3124
|
+
type index_BoxShadow = BoxShadow;
|
|
3125
|
+
type index_Brightness = Brightness;
|
|
3126
|
+
declare const index_CSSFilter: typeof CSSFilter;
|
|
3127
|
+
type index_CSSFilterMatrix = CSSFilterMatrix;
|
|
3128
|
+
declare const index_CSSFilterPresets: typeof CSSFilterPresets;
|
|
3129
|
+
type index_CSSFilterPresetsEffect = CSSFilterPresetsEffect;
|
|
3130
|
+
type index_CSSFilterPresetsProps = CSSFilterPresetsProps;
|
|
3131
|
+
type index_CSSFilterProps = CSSFilterProps;
|
|
3132
|
+
declare const index_Center: typeof Center;
|
|
3133
|
+
type index_CenterProps = CenterProps;
|
|
3134
|
+
declare const index_CircularProgressIndicator: typeof CircularProgressIndicator;
|
|
3135
|
+
type index_CircularProgressIndicatorProps = CircularProgressIndicatorProps;
|
|
3136
|
+
type index_Clip = Clip;
|
|
3137
|
+
declare const index_ClipOval: typeof ClipOval;
|
|
3138
|
+
type index_ClipOvalProps = ClipOvalProps;
|
|
3139
|
+
declare const index_ClipRRect: typeof ClipRRect;
|
|
3140
|
+
type index_ClipRRectProps = ClipRRectProps;
|
|
3141
|
+
declare const index_ClipRect: typeof ClipRect;
|
|
3142
|
+
type index_ClipRectProps = ClipRectProps;
|
|
3143
|
+
type index_Color = Color;
|
|
3144
|
+
declare const index_Column: typeof Column;
|
|
3145
|
+
type index_ColumnProps = ColumnProps;
|
|
3146
|
+
declare const index_CompositedTransformFollower: typeof CompositedTransformFollower;
|
|
3147
|
+
type index_CompositedTransformFollowerProps = CompositedTransformFollowerProps;
|
|
3148
|
+
declare const index_CompositedTransformTarget: typeof CompositedTransformTarget;
|
|
3149
|
+
type index_CompositedTransformTargetProps = CompositedTransformTargetProps;
|
|
3150
|
+
declare const index_ConstrainedBox: typeof ConstrainedBox;
|
|
3151
|
+
type index_ConstrainedBoxProps = ConstrainedBoxProps;
|
|
3152
|
+
declare const index_Container: typeof Container;
|
|
3153
|
+
type index_ContainerProps = ContainerProps;
|
|
3154
|
+
type index_CrossAxisAlignment = CrossAxisAlignment;
|
|
3155
|
+
declare const index_CupertinoActionSheet: typeof CupertinoActionSheet;
|
|
3156
|
+
declare const index_CupertinoActionSheetAction: typeof CupertinoActionSheetAction;
|
|
3157
|
+
type index_CupertinoActionSheetActionProps = CupertinoActionSheetActionProps;
|
|
3158
|
+
type index_CupertinoActionSheetProps = CupertinoActionSheetProps;
|
|
3159
|
+
declare const index_CupertinoActivityIndicator: typeof CupertinoActivityIndicator;
|
|
3160
|
+
type index_CupertinoActivityIndicatorProps = CupertinoActivityIndicatorProps;
|
|
3161
|
+
declare const index_CupertinoAlertDialog: typeof CupertinoAlertDialog;
|
|
3162
|
+
type index_CupertinoAlertDialogProps = CupertinoAlertDialogProps;
|
|
3163
|
+
declare const index_CupertinoButton: typeof CupertinoButton;
|
|
3164
|
+
type index_CupertinoButtonProps = CupertinoButtonProps;
|
|
3165
|
+
declare const index_CupertinoContextMenu: typeof CupertinoContextMenu;
|
|
3166
|
+
declare const index_CupertinoContextMenuAction: typeof CupertinoContextMenuAction;
|
|
3167
|
+
type index_CupertinoContextMenuActionProps = CupertinoContextMenuActionProps;
|
|
3168
|
+
type index_CupertinoContextMenuProps = CupertinoContextMenuProps;
|
|
3169
|
+
declare const index_CupertinoDatePicker: typeof CupertinoDatePicker;
|
|
3170
|
+
type index_CupertinoDatePickerMode = CupertinoDatePickerMode;
|
|
3171
|
+
type index_CupertinoDatePickerProps = CupertinoDatePickerProps;
|
|
3172
|
+
declare const index_CupertinoDialogAction: typeof CupertinoDialogAction;
|
|
3173
|
+
type index_CupertinoDialogActionProps = CupertinoDialogActionProps;
|
|
3174
|
+
declare const index_CupertinoFormRow: typeof CupertinoFormRow;
|
|
3175
|
+
type index_CupertinoFormRowProps = CupertinoFormRowProps;
|
|
3176
|
+
declare const index_CupertinoFormSection: typeof CupertinoFormSection;
|
|
3177
|
+
type index_CupertinoFormSectionProps = CupertinoFormSectionProps;
|
|
3178
|
+
type index_CupertinoIcons = CupertinoIcons;
|
|
3179
|
+
declare const index_CupertinoListSection: typeof CupertinoListSection;
|
|
3180
|
+
type index_CupertinoListSectionProps = CupertinoListSectionProps;
|
|
3181
|
+
declare const index_CupertinoListTile: typeof CupertinoListTile;
|
|
3182
|
+
declare const index_CupertinoListTileChevron: typeof CupertinoListTileChevron;
|
|
3183
|
+
type index_CupertinoListTileProps = CupertinoListTileProps;
|
|
3184
|
+
declare const index_CupertinoNavigationBar: typeof CupertinoNavigationBar;
|
|
3185
|
+
declare const index_CupertinoNavigationBarBackButton: typeof CupertinoNavigationBarBackButton;
|
|
3186
|
+
type index_CupertinoNavigationBarBackButtonProps = CupertinoNavigationBarBackButtonProps;
|
|
3187
|
+
type index_CupertinoNavigationBarProps = CupertinoNavigationBarProps;
|
|
3188
|
+
declare const index_CupertinoPageScaffold: typeof CupertinoPageScaffold;
|
|
3189
|
+
type index_CupertinoPageScaffoldProps = CupertinoPageScaffoldProps;
|
|
3190
|
+
declare const index_CupertinoPicker: typeof CupertinoPicker;
|
|
3191
|
+
declare const index_CupertinoPickerDefaultSelectionOverlay: typeof CupertinoPickerDefaultSelectionOverlay;
|
|
3192
|
+
type index_CupertinoPickerDefaultSelectionOverlayProps = CupertinoPickerDefaultSelectionOverlayProps;
|
|
3193
|
+
type index_CupertinoPickerProps = CupertinoPickerProps;
|
|
3194
|
+
declare const index_CupertinoScrollerBar: typeof CupertinoScrollerBar;
|
|
3195
|
+
type index_CupertinoScrollerBarProps = CupertinoScrollerBarProps;
|
|
3196
|
+
declare const index_CupertinoSearchTextField: typeof CupertinoSearchTextField;
|
|
3197
|
+
type index_CupertinoSearchTextFieldProps = CupertinoSearchTextFieldProps;
|
|
3198
|
+
declare const index_CupertinoSegmentedControl: typeof CupertinoSegmentedControl;
|
|
3199
|
+
type index_CupertinoSegmentedControlProps = CupertinoSegmentedControlProps;
|
|
3200
|
+
declare const index_CupertinoSlider: typeof CupertinoSlider;
|
|
3201
|
+
type index_CupertinoSliderProps = CupertinoSliderProps;
|
|
3202
|
+
declare const index_CupertinoSlidingSegmentedControl: typeof CupertinoSlidingSegmentedControl;
|
|
3203
|
+
type index_CupertinoSlidingSegmentedControlProps = CupertinoSlidingSegmentedControlProps;
|
|
3204
|
+
declare const index_CupertinoSliverNavigationBar: typeof CupertinoSliverNavigationBar;
|
|
3205
|
+
type index_CupertinoSliverNavigationBarProps = CupertinoSliverNavigationBarProps;
|
|
3206
|
+
declare const index_CupertinoSliverRefreshControl: typeof CupertinoSliverRefreshControl;
|
|
3207
|
+
type index_CupertinoSliverRefreshControlProps = CupertinoSliverRefreshControlProps;
|
|
3208
|
+
declare const index_CupertinoSwitch: typeof CupertinoSwitch;
|
|
3209
|
+
type index_CupertinoSwitchProps = CupertinoSwitchProps;
|
|
3210
|
+
declare const index_CupertinoTabBar: typeof CupertinoTabBar;
|
|
3211
|
+
type index_CupertinoTabBarProps = CupertinoTabBarProps;
|
|
3212
|
+
declare const index_CupertinoTextField: typeof CupertinoTextField;
|
|
3213
|
+
type index_CupertinoTextFieldProps = CupertinoTextFieldProps;
|
|
3214
|
+
declare const index_CupertinoTimerPicker: typeof CupertinoTimerPicker;
|
|
3215
|
+
type index_CupertinoTimerPickerMode = CupertinoTimerPickerMode;
|
|
3216
|
+
type index_CupertinoTimerPickerProps = CupertinoTimerPickerProps;
|
|
3217
|
+
type index_Curve = Curve;
|
|
3218
|
+
declare const index_CustomScrollView: typeof CustomScrollView;
|
|
3219
|
+
type index_CustomScrollViewProps = CustomScrollViewProps;
|
|
3220
|
+
type index_DatePickerDateOrder = DatePickerDateOrder;
|
|
3221
|
+
declare const index_DefaultTabController: typeof DefaultTabController;
|
|
3222
|
+
type index_DefaultTabControllerProps = DefaultTabControllerProps;
|
|
3223
|
+
declare const index_DefaultTextStyle: typeof DefaultTextStyle;
|
|
3224
|
+
type index_DefaultTextStyleProps = DefaultTextStyleProps;
|
|
3225
|
+
type index_DismissDirection = DismissDirection;
|
|
3226
|
+
declare const index_Dismissable: typeof Dismissable;
|
|
3227
|
+
type index_DismissableProps = DismissableProps;
|
|
3228
|
+
declare const index_DottedBorder: typeof DottedBorder;
|
|
3229
|
+
type index_DottedBorderProps = DottedBorderProps;
|
|
3230
|
+
declare const index_DottedLine: typeof DottedLine;
|
|
3231
|
+
type index_DottedLineProps = DottedLineProps;
|
|
3232
|
+
type index_DragDownDetails = DragDownDetails;
|
|
3233
|
+
type index_DragEndDetails = DragEndDetails;
|
|
3234
|
+
type index_DragUpdateDetails = DragUpdateDetails;
|
|
3235
|
+
type index_EdgeInsets = EdgeInsets;
|
|
3236
|
+
type index_EdgeInsetsDirectional = EdgeInsetsDirectional;
|
|
3237
|
+
type index_EventPosition = EventPosition;
|
|
3238
|
+
declare const index_Expanded: typeof Expanded;
|
|
3239
|
+
type index_ExpandedProps = ExpandedProps;
|
|
3240
|
+
type index_FilterQuality = FilterQuality;
|
|
3241
|
+
declare const index_FittedBox: typeof FittedBox;
|
|
3242
|
+
type index_FittedBoxProps = FittedBoxProps;
|
|
3243
|
+
type index_FontStyle = FontStyle;
|
|
3244
|
+
type index_FontWeight = FontWeight;
|
|
3245
|
+
declare const index_GestureDetector: typeof GestureDetector;
|
|
3246
|
+
type index_GestureDetectorProps = GestureDetectorProps;
|
|
3247
|
+
declare const index_Gif: typeof Gif;
|
|
3248
|
+
type index_GifProps = GifProps;
|
|
3249
|
+
type index_GridDelegateWithFixedCrossAxisCount = GridDelegateWithFixedCrossAxisCount;
|
|
3250
|
+
type index_GridDelegateWithMaxCrossAxisExtent = GridDelegateWithMaxCrossAxisExtent;
|
|
3251
|
+
declare const index_GridView: typeof GridView;
|
|
3252
|
+
type index_GridViewCommonProps = GridViewCommonProps;
|
|
3253
|
+
type index_GridViewFixedCrossAxisCountProps = GridViewFixedCrossAxisCountProps;
|
|
3254
|
+
type index_GridViewMaxCrossAxisExtentProps = GridViewMaxCrossAxisExtentProps;
|
|
3255
|
+
type index_GridViewProps = GridViewProps;
|
|
3256
|
+
declare const index_Hero: typeof Hero;
|
|
3257
|
+
type index_HeroProps = HeroProps;
|
|
3258
|
+
declare const index_Icon: typeof Icon;
|
|
3259
|
+
type index_IconProps = IconProps;
|
|
3260
|
+
declare const index_IgnorePointer: typeof IgnorePointer;
|
|
3261
|
+
type index_IgnorePointerProps = IgnorePointerProps;
|
|
3262
|
+
declare const index_Image: typeof Image;
|
|
3263
|
+
type index_ImageByteFormat = ImageByteFormat;
|
|
3264
|
+
type index_ImageFilter = ImageFilter;
|
|
3265
|
+
type index_ImageFilterBlur = ImageFilterBlur;
|
|
3266
|
+
type index_ImageFilterCompose = ImageFilterCompose;
|
|
3267
|
+
type index_ImageFilterDilate = ImageFilterDilate;
|
|
3268
|
+
type index_ImageFilterErode = ImageFilterErode;
|
|
3269
|
+
type index_ImageFilterMaxtrix = ImageFilterMaxtrix;
|
|
3270
|
+
type index_ImageProps = ImageProps;
|
|
3271
|
+
type index_ImageRepeat = ImageRepeat;
|
|
3272
|
+
declare const index_IndexedStack: typeof IndexedStack;
|
|
3273
|
+
type index_IndexedStackProps = IndexedStackProps;
|
|
3274
|
+
declare const index_InkWell: typeof InkWell;
|
|
3275
|
+
type index_InkWellProps = InkWellProps;
|
|
3276
|
+
type index_IntervalCurve = IntervalCurve;
|
|
3277
|
+
declare const index_IntrinsicHeight: typeof IntrinsicHeight;
|
|
3278
|
+
type index_IntrinsicHeightProps = IntrinsicHeightProps;
|
|
3279
|
+
declare const index_IntrinsicWidth: typeof IntrinsicWidth;
|
|
3280
|
+
type index_IntrinsicWidthProps = IntrinsicWidthProps;
|
|
3281
|
+
type index_KeyProps = KeyProps;
|
|
3282
|
+
type index_LayerLink = LayerLink;
|
|
3283
|
+
declare const index_LayerLink: typeof LayerLink;
|
|
3284
|
+
type index_LinearGradient = LinearGradient;
|
|
3285
|
+
declare const index_LinearProgressIndicator: typeof LinearProgressIndicator;
|
|
3286
|
+
type index_LinearProgressIndicatorProps = LinearProgressIndicatorProps;
|
|
3287
|
+
declare const index_ListView: typeof ListView;
|
|
3288
|
+
type index_ListViewProps = ListViewProps;
|
|
3289
|
+
type index_MainAxisAlignment = MainAxisAlignment;
|
|
3290
|
+
type index_MainAxisSize = MainAxisSize;
|
|
3291
|
+
declare const index_Material: typeof Material;
|
|
3292
|
+
type index_MaterialProps = MaterialProps;
|
|
3293
|
+
declare const index_Navigator: typeof Navigator;
|
|
3294
|
+
type index_NavigatorProps = NavigatorProps;
|
|
3295
|
+
type index_NavigatorRef = NavigatorRef;
|
|
3296
|
+
declare const index_NestedScrollView: typeof NestedScrollView;
|
|
3297
|
+
type index_NestedScrollViewProps = NestedScrollViewProps;
|
|
3298
|
+
declare const index_NetworkImage: typeof NetworkImage;
|
|
3299
|
+
type index_NetworkImageProps = NetworkImageProps;
|
|
3300
|
+
type index_NormalCurve = NormalCurve;
|
|
3301
|
+
type index_Offset = Offset;
|
|
3302
|
+
declare const index_Opacity: typeof Opacity;
|
|
3303
|
+
type index_OpacityProps = OpacityProps;
|
|
3304
|
+
type index_OverScrollNotification = OverScrollNotification;
|
|
3305
|
+
declare const index_OverflowBox: typeof OverflowBox;
|
|
3306
|
+
type index_OverflowBoxProps = OverflowBoxProps;
|
|
3307
|
+
declare const index_Overlay: typeof Overlay;
|
|
3308
|
+
type index_OverlayProps = OverlayProps;
|
|
3309
|
+
type index_OverlayVisibilityMode = OverlayVisibilityMode;
|
|
3310
|
+
declare const index_Padding: typeof Padding;
|
|
3311
|
+
type index_PaddingProps = PaddingProps;
|
|
3312
|
+
declare const index_PageView: typeof PageView;
|
|
3313
|
+
type index_PageViewProps = PageViewProps;
|
|
3314
|
+
type index_PaintRect = PaintRect;
|
|
3315
|
+
type index_PaintSize = PaintSize;
|
|
3316
|
+
declare const index_PopScope: typeof PopScope;
|
|
3317
|
+
type index_PopScopeProps = PopScopeProps;
|
|
3318
|
+
declare const index_Positioned: typeof Positioned;
|
|
3319
|
+
type index_PositionedProps = PositionedProps;
|
|
3320
|
+
declare const index_QrImage: typeof QrImage;
|
|
3321
|
+
type index_QrImageProps = QrImageProps;
|
|
3322
|
+
type index_RadialGradient = RadialGradient;
|
|
3323
|
+
type index_RefProps<T extends RenderObject = RenderObject> = RefProps<T>;
|
|
3324
|
+
declare const index_RefreshIndicator: typeof RefreshIndicator;
|
|
3325
|
+
type index_RefreshIndicatorProps = RefreshIndicatorProps;
|
|
3326
|
+
type index_RelativeRect = RelativeRect;
|
|
3327
|
+
declare const index_ReorderableListView: typeof ReorderableListView;
|
|
3328
|
+
type index_ReorderableListViewProps = ReorderableListViewProps;
|
|
3329
|
+
declare const index_RepaintBoundary: typeof RepaintBoundary;
|
|
3330
|
+
type index_RepaintBoundaryProps = RepaintBoundaryProps;
|
|
3331
|
+
type index_RepaintBoundaryRef = RepaintBoundaryRef;
|
|
3332
|
+
declare const index_RichText: typeof RichText;
|
|
3333
|
+
type index_RichTextProps = RichTextProps;
|
|
3334
|
+
declare const index_RotatedBox: typeof RotatedBox;
|
|
3335
|
+
type index_RotatedBoxProps = RotatedBoxProps;
|
|
3336
|
+
declare const index_Row: typeof Row;
|
|
3337
|
+
type index_RowProps = RowProps;
|
|
3338
|
+
declare const index_SafeArea: typeof SafeArea;
|
|
3339
|
+
type index_SafeAreaProps = SafeAreaProps;
|
|
3340
|
+
type index_ScaleEndDetails = ScaleEndDetails;
|
|
3341
|
+
type index_ScaleStartDetails = ScaleStartDetails;
|
|
3342
|
+
type index_ScaleUpdateDetails = ScaleUpdateDetails;
|
|
3343
|
+
type index_ScrollEndNotification = ScrollEndNotification;
|
|
3344
|
+
type index_ScrollMetrics = ScrollMetrics;
|
|
3345
|
+
type index_ScrollNotification = ScrollNotification;
|
|
3346
|
+
declare const index_ScrollNotificationListener: typeof ScrollNotificationListener;
|
|
3347
|
+
type index_ScrollNotificationListenerProps = ScrollNotificationListenerProps;
|
|
3348
|
+
type index_ScrollOrientation = ScrollOrientation;
|
|
3349
|
+
type index_ScrollPhysics = ScrollPhysics;
|
|
3350
|
+
type index_ScrollStartNotification = ScrollStartNotification;
|
|
3351
|
+
type index_ScrollUpdateNotification = ScrollUpdateNotification;
|
|
3352
|
+
type index_ScrollViewKeyboardDismissBehavior = ScrollViewKeyboardDismissBehavior;
|
|
3353
|
+
declare const index_Scrollbar: typeof Scrollbar;
|
|
3354
|
+
type index_ScrollbarProps = ScrollbarProps;
|
|
3355
|
+
declare const index_SingleChildScrollView: typeof SingleChildScrollView;
|
|
3356
|
+
type index_SingleChildScrollViewProps = SingleChildScrollViewProps;
|
|
3357
|
+
declare const index_SizedBox: typeof SizedBox;
|
|
3358
|
+
type index_SizedBoxProps = SizedBoxProps;
|
|
3359
|
+
declare const index_SliverFillRemaining: typeof SliverFillRemaining;
|
|
3360
|
+
type index_SliverFillRemainingProps = SliverFillRemainingProps;
|
|
3361
|
+
declare const index_SliverFixedHeightPersistentHeader: typeof SliverFixedHeightPersistentHeader;
|
|
3362
|
+
type index_SliverFixedHeightPersistentHeaderProps = SliverFixedHeightPersistentHeaderProps;
|
|
3363
|
+
declare const index_SliverToBoxAdapter: typeof SliverToBoxAdapter;
|
|
3364
|
+
type index_SliverToBoxAdapterProps = SliverToBoxAdapterProps;
|
|
3365
|
+
declare const index_Spacer: typeof Spacer;
|
|
3366
|
+
type index_SpacerProps = SpacerProps;
|
|
3367
|
+
declare const index_Stack: typeof Stack;
|
|
3368
|
+
type index_StackFit = StackFit;
|
|
3369
|
+
type index_StackProps = StackProps;
|
|
3370
|
+
declare const index_StickyHeader: typeof StickyHeader;
|
|
3371
|
+
type index_StickyHeaderProps = StickyHeaderProps;
|
|
3372
|
+
declare const index_StringSvg: typeof StringSvg;
|
|
3373
|
+
type index_StringSvgProps = StringSvgProps;
|
|
3374
|
+
type index_StrokeCap = StrokeCap;
|
|
3375
|
+
type index_StrutStyle = StrutStyle;
|
|
3376
|
+
declare const index_Svg: typeof Svg;
|
|
3377
|
+
type index_SvgProps = SvgProps;
|
|
3378
|
+
declare const index_Swiper: typeof Swiper;
|
|
3379
|
+
declare const index_SwiperPagination: typeof SwiperPagination;
|
|
3380
|
+
type index_SwiperPaginationProps = SwiperPaginationProps;
|
|
3381
|
+
type index_SwiperProps = SwiperProps;
|
|
3382
|
+
declare const index_Switch: typeof Switch;
|
|
3383
|
+
type index_SwitchProps = SwitchProps;
|
|
3384
|
+
type index_TabAlignment = TabAlignment;
|
|
3385
|
+
declare const index_TabBar: typeof TabBar;
|
|
3386
|
+
type index_TabBarIndicatorSize = TabBarIndicatorSize;
|
|
3387
|
+
type index_TabBarProps = TabBarProps;
|
|
3388
|
+
declare const index_TabBarView: typeof TabBarView;
|
|
3389
|
+
type index_TabBarViewProps = TabBarViewProps;
|
|
3390
|
+
type index_TabController = TabController;
|
|
3391
|
+
declare const index_TabController: typeof TabController;
|
|
3392
|
+
declare const index_TabControllerConsumer: typeof TabControllerConsumer;
|
|
3393
|
+
declare const index_TabControllerContext: typeof TabControllerContext;
|
|
3394
|
+
type index_TabControllerProps = TabControllerProps;
|
|
3395
|
+
declare const index_TabControllerProvider: typeof TabControllerProvider;
|
|
3396
|
+
type index_TabControllerRef = TabControllerRef;
|
|
3397
|
+
type index_TabControllerRenderNode = TabControllerRenderNode;
|
|
3398
|
+
type index_TapDownDetails = TapDownDetails;
|
|
3399
|
+
type index_TapUpDetails = TapUpDetails;
|
|
3400
|
+
declare const index_Text: typeof Text;
|
|
3401
|
+
type index_TextAlign = TextAlign;
|
|
3402
|
+
type index_TextBaseLine = TextBaseLine;
|
|
3403
|
+
type index_TextDecoration = TextDecoration;
|
|
3404
|
+
type index_TextDecorationStyle = TextDecorationStyle;
|
|
3405
|
+
type index_TextDirection = TextDirection;
|
|
3406
|
+
declare const index_TextField: typeof TextField;
|
|
3407
|
+
type index_TextFieldProps = TextFieldProps;
|
|
3408
|
+
type index_TextHeightBehavior = TextHeightBehavior;
|
|
3409
|
+
type index_TextInputType = TextInputType;
|
|
3410
|
+
type index_TextLeadingDistribution = TextLeadingDistribution;
|
|
3411
|
+
type index_TextOverflow = TextOverflow;
|
|
3412
|
+
type index_TextProps = TextProps;
|
|
3413
|
+
declare const index_TextSpan: typeof TextSpan;
|
|
3414
|
+
type index_TextSpanProps = TextSpanProps;
|
|
3415
|
+
type index_TextStyle = TextStyle;
|
|
3416
|
+
type index_TextWidthBasis = TextWidthBasis;
|
|
3417
|
+
type index_Ticker = Ticker;
|
|
3418
|
+
declare const index_Ticker: typeof Ticker;
|
|
3419
|
+
type index_TickerManager = TickerManager;
|
|
3420
|
+
declare const index_TickerManager: typeof TickerManager;
|
|
3421
|
+
declare const index_TickerManagerConsumer: typeof TickerManagerConsumer;
|
|
3422
|
+
declare const index_TickerManagerProvider: typeof TickerManagerProvider;
|
|
3423
|
+
type index_TickerManagerProviderProps = TickerManagerProviderProps;
|
|
3424
|
+
type index_TickerManagerRef = TickerManagerRef;
|
|
3425
|
+
type index_TileMode = TileMode;
|
|
3426
|
+
declare const index_TransformRotate: typeof TransformRotate;
|
|
3427
|
+
type index_TransformRotateProps = TransformRotateProps;
|
|
3428
|
+
declare const index_TransformScale: typeof TransformScale;
|
|
3429
|
+
type index_TransformScaleProps = TransformScaleProps;
|
|
3430
|
+
declare const index_TransformTranslate: typeof TransformTranslate;
|
|
3431
|
+
type index_TransformTranslateProps = TransformTranslateProps;
|
|
3432
|
+
type index_Tween<T extends AnimationValue> = Tween<T>;
|
|
3433
|
+
type index_TweenSequence<T extends AnimationValue> = TweenSequence<T>;
|
|
3434
|
+
type index_TweenSequenceConstantItem<T extends AnimationValue> = TweenSequenceConstantItem<T>;
|
|
3435
|
+
type index_TweenSequenceItem<T extends AnimationValue> = TweenSequenceItem<T>;
|
|
3436
|
+
type index_TweenType = TweenType;
|
|
3437
|
+
declare const index_UnconstrainedBox: typeof UnconstrainedBox;
|
|
3438
|
+
type index_UnconstrainedBoxProps = UnconstrainedBoxProps;
|
|
3439
|
+
type index_UserScrollNotification = UserScrollNotification;
|
|
3440
|
+
type index_Velocity = Velocity;
|
|
3441
|
+
type index_VerticalDirection = VerticalDirection;
|
|
3442
|
+
declare const index_WebView: typeof WebView;
|
|
3443
|
+
type index_WebViewController = WebViewController;
|
|
3444
|
+
declare const index_WebViewController: typeof WebViewController;
|
|
3445
|
+
type index_WebViewProps = WebViewProps;
|
|
3446
|
+
type index_WebViewSettings = WebViewSettings;
|
|
3447
|
+
declare const index_Wrap: typeof Wrap;
|
|
3448
|
+
type index_WrapAlignment = WrapAlignment;
|
|
3449
|
+
type index_WrapCrossAlignment = WrapCrossAlignment;
|
|
3450
|
+
type index_WrapProps = WrapProps;
|
|
3451
|
+
declare const index_useAnimationController: typeof useAnimationController;
|
|
3452
|
+
declare const index_useLayerLink: typeof useLayerLink;
|
|
3453
|
+
declare const index_useNavigator: typeof useNavigator;
|
|
3454
|
+
declare const index_useTabController: typeof useTabController;
|
|
3455
|
+
declare const index_useTickerManager: typeof useTickerManager;
|
|
3456
|
+
declare namespace index {
|
|
3457
|
+
export { index_AbsorbPointer as AbsorbPointer, type index_AbsorbPointerProps as AbsorbPointerProps, type index_AixsDirection as AixsDirection, type index_Alignment as Alignment, index_AnimatedAlign as AnimatedAlign, type index_AnimatedAlignProps as AnimatedAlignProps, index_AnimatedContainer as AnimatedContainer, type index_AnimatedContainerProps as AnimatedContainerProps, index_AnimatedOpacity as AnimatedOpacity, type index_AnimatedOpacityProps as AnimatedOpacityProps, index_AnimatedPadding as AnimatedPadding, type index_AnimatedPaddingProps as AnimatedPaddingProps, index_AnimatedPositioned as AnimatedPositioned, type index_AnimatedPositionedProps as AnimatedPositionedProps, index_AnimatedRotation as AnimatedRotation, type index_AnimatedRotationProps as AnimatedRotationProps, index_AnimatedScale as AnimatedScale, type index_AnimatedScaleProps as AnimatedScaleProps, index_AnimatedSize as AnimatedSize, type index_AnimatedSizeProps as AnimatedSizeProps, index_AnimatedSlide as AnimatedSlide, type index_AnimatedSlideProps as AnimatedSlideProps, type index_AnimationControllerIntialOptions as AnimationControllerIntialOptions, type index_AnimationInitalOptions as AnimationInitalOptions, type index_AnimationStatus as AnimationStatus, type index_AnimationStatusListener as AnimationStatusListener, type index_AnimationValue as AnimationValue, index_AspectRatio as AspectRatio, type index_AspectRatioProps as AspectRatioProps, index_AutoSizeText as AutoSizeText, type index_AutoSizeTextProps as AutoSizeTextProps, type index_Axis as Axis, index_BackdropFilter as BackdropFilter, type index_BackdropFilterProps as BackdropFilterProps, index_Baseline as Baseline, type index_BaselineProps as BaselineProps, type index_BlendMode as BlendMode, type index_BlurStyle as BlurStyle, type index_BorderRadius as BorderRadius, type index_BorderSide as BorderSide, index_BottomNavigationBarItem as BottomNavigationBarItem, type index_BottomNavigationBarItemProps as BottomNavigationBarItemProps, type index_BoxConstraints as BoxConstraints, type index_BoxDecoration as BoxDecoration, type index_BoxFit as BoxFit, type index_BoxShadow as BoxShadow, type index_Brightness as Brightness, index_CSSFilter as CSSFilter, type index_CSSFilterMatrix as CSSFilterMatrix, index_CSSFilterPresets as CSSFilterPresets, type index_CSSFilterPresetsEffect as CSSFilterPresetsEffect, type index_CSSFilterPresetsProps as CSSFilterPresetsProps, type index_CSSFilterProps as CSSFilterProps, index_Center as Center, type index_CenterProps as CenterProps, index_CircularProgressIndicator as CircularProgressIndicator, type index_CircularProgressIndicatorProps as CircularProgressIndicatorProps, type index_Clip as Clip, index_ClipOval as ClipOval, type index_ClipOvalProps as ClipOvalProps, index_ClipRRect as ClipRRect, type index_ClipRRectProps as ClipRRectProps, index_ClipRect as ClipRect, type index_ClipRectProps as ClipRectProps, type index_Color as Color, index_Column as Column, type index_ColumnProps as ColumnProps, index_CompositedTransformFollower as CompositedTransformFollower, type index_CompositedTransformFollowerProps as CompositedTransformFollowerProps, index_CompositedTransformTarget as CompositedTransformTarget, type index_CompositedTransformTargetProps as CompositedTransformTargetProps, index_ConstrainedBox as ConstrainedBox, type index_ConstrainedBoxProps as ConstrainedBoxProps, index_Container as Container, type index_ContainerProps as ContainerProps, type index_CrossAxisAlignment as CrossAxisAlignment, index_CupertinoActionSheet as CupertinoActionSheet, index_CupertinoActionSheetAction as CupertinoActionSheetAction, type index_CupertinoActionSheetActionProps as CupertinoActionSheetActionProps, type index_CupertinoActionSheetProps as CupertinoActionSheetProps, index_CupertinoActivityIndicator as CupertinoActivityIndicator, type index_CupertinoActivityIndicatorProps as CupertinoActivityIndicatorProps, index_CupertinoAlertDialog as CupertinoAlertDialog, type index_CupertinoAlertDialogProps as CupertinoAlertDialogProps, index_CupertinoButton as CupertinoButton, type index_CupertinoButtonProps as CupertinoButtonProps, index_CupertinoContextMenu as CupertinoContextMenu, index_CupertinoContextMenuAction as CupertinoContextMenuAction, type index_CupertinoContextMenuActionProps as CupertinoContextMenuActionProps, type index_CupertinoContextMenuProps as CupertinoContextMenuProps, index_CupertinoDatePicker as CupertinoDatePicker, type index_CupertinoDatePickerMode as CupertinoDatePickerMode, type index_CupertinoDatePickerProps as CupertinoDatePickerProps, index_CupertinoDialogAction as CupertinoDialogAction, type index_CupertinoDialogActionProps as CupertinoDialogActionProps, index_CupertinoFormRow as CupertinoFormRow, type index_CupertinoFormRowProps as CupertinoFormRowProps, index_CupertinoFormSection as CupertinoFormSection, type index_CupertinoFormSectionProps as CupertinoFormSectionProps, type index_CupertinoIcons as CupertinoIcons, index_CupertinoListSection as CupertinoListSection, type index_CupertinoListSectionProps as CupertinoListSectionProps, index_CupertinoListTile as CupertinoListTile, index_CupertinoListTileChevron as CupertinoListTileChevron, type index_CupertinoListTileProps as CupertinoListTileProps, index_CupertinoNavigationBar as CupertinoNavigationBar, index_CupertinoNavigationBarBackButton as CupertinoNavigationBarBackButton, type index_CupertinoNavigationBarBackButtonProps as CupertinoNavigationBarBackButtonProps, type index_CupertinoNavigationBarProps as CupertinoNavigationBarProps, index_CupertinoPageScaffold as CupertinoPageScaffold, type index_CupertinoPageScaffoldProps as CupertinoPageScaffoldProps, index_CupertinoPicker as CupertinoPicker, index_CupertinoPickerDefaultSelectionOverlay as CupertinoPickerDefaultSelectionOverlay, type index_CupertinoPickerDefaultSelectionOverlayProps as CupertinoPickerDefaultSelectionOverlayProps, type index_CupertinoPickerProps as CupertinoPickerProps, index_CupertinoScrollerBar as CupertinoScrollerBar, type index_CupertinoScrollerBarProps as CupertinoScrollerBarProps, index_CupertinoSearchTextField as CupertinoSearchTextField, type index_CupertinoSearchTextFieldProps as CupertinoSearchTextFieldProps, index_CupertinoSegmentedControl as CupertinoSegmentedControl, type index_CupertinoSegmentedControlProps as CupertinoSegmentedControlProps, index_CupertinoSlider as CupertinoSlider, type index_CupertinoSliderProps as CupertinoSliderProps, index_CupertinoSlidingSegmentedControl as CupertinoSlidingSegmentedControl, type index_CupertinoSlidingSegmentedControlProps as CupertinoSlidingSegmentedControlProps, index_CupertinoSliverNavigationBar as CupertinoSliverNavigationBar, type index_CupertinoSliverNavigationBarProps as CupertinoSliverNavigationBarProps, index_CupertinoSliverRefreshControl as CupertinoSliverRefreshControl, type index_CupertinoSliverRefreshControlProps as CupertinoSliverRefreshControlProps, index_CupertinoSwitch as CupertinoSwitch, type index_CupertinoSwitchProps as CupertinoSwitchProps, index_CupertinoTabBar as CupertinoTabBar, type index_CupertinoTabBarProps as CupertinoTabBarProps, index_CupertinoTextField as CupertinoTextField, type index_CupertinoTextFieldProps as CupertinoTextFieldProps, index_CupertinoTimerPicker as CupertinoTimerPicker, type index_CupertinoTimerPickerMode as CupertinoTimerPickerMode, type index_CupertinoTimerPickerProps as CupertinoTimerPickerProps, type index_Curve as Curve, index_CustomScrollView as CustomScrollView, type index_CustomScrollViewProps as CustomScrollViewProps, type index_DatePickerDateOrder as DatePickerDateOrder, index_DefaultTabController as DefaultTabController, type index_DefaultTabControllerProps as DefaultTabControllerProps, index_DefaultTextStyle as DefaultTextStyle, type index_DefaultTextStyleProps as DefaultTextStyleProps, type index_DismissDirection as DismissDirection, index_Dismissable as Dismissable, type index_DismissableProps as DismissableProps, index_DottedBorder as DottedBorder, type index_DottedBorderProps as DottedBorderProps, index_DottedLine as DottedLine, type index_DottedLineProps as DottedLineProps, type index_DragDownDetails as DragDownDetails, type index_DragEndDetails as DragEndDetails, type index_DragUpdateDetails as DragUpdateDetails, type index_EdgeInsets as EdgeInsets, type index_EdgeInsetsDirectional as EdgeInsetsDirectional, type index_EventPosition as EventPosition, index_Expanded as Expanded, type index_ExpandedProps as ExpandedProps, type index_FilterQuality as FilterQuality, index_FittedBox as FittedBox, type index_FittedBoxProps as FittedBoxProps, type index_FontStyle as FontStyle, type index_FontWeight as FontWeight, index_GestureDetector as GestureDetector, type index_GestureDetectorProps as GestureDetectorProps, index_Gif as Gif, type index_GifProps as GifProps, type index_GridDelegateWithFixedCrossAxisCount as GridDelegateWithFixedCrossAxisCount, type index_GridDelegateWithMaxCrossAxisExtent as GridDelegateWithMaxCrossAxisExtent, index_GridView as GridView, type index_GridViewCommonProps as GridViewCommonProps, type index_GridViewFixedCrossAxisCountProps as GridViewFixedCrossAxisCountProps, type index_GridViewMaxCrossAxisExtentProps as GridViewMaxCrossAxisExtentProps, type index_GridViewProps as GridViewProps, index_Hero as Hero, type index_HeroProps as HeroProps, index_Icon as Icon, type index_IconProps as IconProps, index_IgnorePointer as IgnorePointer, type index_IgnorePointerProps as IgnorePointerProps, index_Image as Image, type index_ImageByteFormat as ImageByteFormat, type index_ImageFilter as ImageFilter, type index_ImageFilterBlur as ImageFilterBlur, type index_ImageFilterCompose as ImageFilterCompose, type index_ImageFilterDilate as ImageFilterDilate, type index_ImageFilterErode as ImageFilterErode, type index_ImageFilterMaxtrix as ImageFilterMaxtrix, type index_ImageProps as ImageProps, type index_ImageRepeat as ImageRepeat, index_IndexedStack as IndexedStack, type index_IndexedStackProps as IndexedStackProps, index_InkWell as InkWell, type index_InkWellProps as InkWellProps, type index_IntervalCurve as IntervalCurve, index_IntrinsicHeight as IntrinsicHeight, type index_IntrinsicHeightProps as IntrinsicHeightProps, index_IntrinsicWidth as IntrinsicWidth, type index_IntrinsicWidthProps as IntrinsicWidthProps, type index_KeyProps as KeyProps, index_LayerLink as LayerLink, type index_LinearGradient as LinearGradient, index_LinearProgressIndicator as LinearProgressIndicator, type index_LinearProgressIndicatorProps as LinearProgressIndicatorProps, index_ListView as ListView, type index_ListViewProps as ListViewProps, type index_MainAxisAlignment as MainAxisAlignment, type index_MainAxisSize as MainAxisSize, index_Material as Material, type index_MaterialProps as MaterialProps, index_Navigator as Navigator, type index_NavigatorProps as NavigatorProps, type index_NavigatorRef as NavigatorRef, index_NestedScrollView as NestedScrollView, type index_NestedScrollViewProps as NestedScrollViewProps, index_NetworkImage as NetworkImage, type index_NetworkImageProps as NetworkImageProps, type index_NormalCurve as NormalCurve, type index_Offset as Offset, index_Opacity as Opacity, type index_OpacityProps as OpacityProps, type index_OverScrollNotification as OverScrollNotification, index_OverflowBox as OverflowBox, type index_OverflowBoxProps as OverflowBoxProps, index_Overlay as Overlay, type index_OverlayProps as OverlayProps, type index_OverlayVisibilityMode as OverlayVisibilityMode, index_Padding as Padding, type index_PaddingProps as PaddingProps, index_PageView as PageView, type index_PageViewProps as PageViewProps, type index_PaintRect as PaintRect, type index_PaintSize as PaintSize, index_PopScope as PopScope, type index_PopScopeProps as PopScopeProps, index_Positioned as Positioned, type index_PositionedProps as PositionedProps, index_QrImage as QrImage, type index_QrImageProps as QrImageProps, type index_RadialGradient as RadialGradient, type index_RefProps as RefProps, index_RefreshIndicator as RefreshIndicator, type index_RefreshIndicatorProps as RefreshIndicatorProps, type index_RelativeRect as RelativeRect, index_ReorderableListView as ReorderableListView, type index_ReorderableListViewProps as ReorderableListViewProps, index_RepaintBoundary as RepaintBoundary, type index_RepaintBoundaryProps as RepaintBoundaryProps, type index_RepaintBoundaryRef as RepaintBoundaryRef, index_RichText as RichText, type index_RichTextProps as RichTextProps, index_RotatedBox as RotatedBox, type index_RotatedBoxProps as RotatedBoxProps, index_Row as Row, type index_RowProps as RowProps, index_SafeArea as SafeArea, type index_SafeAreaProps as SafeAreaProps, type index_ScaleEndDetails as ScaleEndDetails, type index_ScaleStartDetails as ScaleStartDetails, type index_ScaleUpdateDetails as ScaleUpdateDetails, type index_ScrollEndNotification as ScrollEndNotification, type index_ScrollMetrics as ScrollMetrics, type index_ScrollNotification as ScrollNotification, index_ScrollNotificationListener as ScrollNotificationListener, type index_ScrollNotificationListenerProps as ScrollNotificationListenerProps, type index_ScrollOrientation as ScrollOrientation, type index_ScrollPhysics as ScrollPhysics, type index_ScrollStartNotification as ScrollStartNotification, type index_ScrollUpdateNotification as ScrollUpdateNotification, type index_ScrollViewKeyboardDismissBehavior as ScrollViewKeyboardDismissBehavior, index_Scrollbar as Scrollbar, type index_ScrollbarProps as ScrollbarProps, index_SingleChildScrollView as SingleChildScrollView, type index_SingleChildScrollViewProps as SingleChildScrollViewProps, index_SizedBox as SizedBox, type index_SizedBoxProps as SizedBoxProps, index_SliverFillRemaining as SliverFillRemaining, type index_SliverFillRemainingProps as SliverFillRemainingProps, index_SliverFixedHeightPersistentHeader as SliverFixedHeightPersistentHeader, type index_SliverFixedHeightPersistentHeaderProps as SliverFixedHeightPersistentHeaderProps, index_SliverToBoxAdapter as SliverToBoxAdapter, type index_SliverToBoxAdapterProps as SliverToBoxAdapterProps, index_Spacer as Spacer, type index_SpacerProps as SpacerProps, index_Stack as Stack, type index_StackFit as StackFit, type index_StackProps as StackProps, index_StickyHeader as StickyHeader, type index_StickyHeaderProps as StickyHeaderProps, index_StringSvg as StringSvg, type index_StringSvgProps as StringSvgProps, type index_StrokeCap as StrokeCap, type index_StrutStyle as StrutStyle, index_Svg as Svg, type index_SvgProps as SvgProps, index_Swiper as Swiper, index_SwiperPagination as SwiperPagination, type index_SwiperPaginationProps as SwiperPaginationProps, type index_SwiperProps as SwiperProps, index_Switch as Switch, type index_SwitchProps as SwitchProps, type index_TabAlignment as TabAlignment, index_TabBar as TabBar, type index_TabBarIndicatorSize as TabBarIndicatorSize, type index_TabBarProps as TabBarProps, index_TabBarView as TabBarView, type index_TabBarViewProps as TabBarViewProps, index_TabController as TabController, index_TabControllerConsumer as TabControllerConsumer, index_TabControllerContext as TabControllerContext, type index_TabControllerProps as TabControllerProps, index_TabControllerProvider as TabControllerProvider, type index_TabControllerRef as TabControllerRef, type index_TabControllerRenderNode as TabControllerRenderNode, type index_TapDownDetails as TapDownDetails, type index_TapUpDetails as TapUpDetails, index_Text as Text, type index_TextAlign as TextAlign, type index_TextBaseLine as TextBaseLine, type index_TextDecoration as TextDecoration, type index_TextDecorationStyle as TextDecorationStyle, type index_TextDirection as TextDirection, index_TextField as TextField, type index_TextFieldProps as TextFieldProps, type index_TextHeightBehavior as TextHeightBehavior, type index_TextInputType as TextInputType, type index_TextLeadingDistribution as TextLeadingDistribution, type index_TextOverflow as TextOverflow, type index_TextProps as TextProps, index_TextSpan as TextSpan, type index_TextSpanProps as TextSpanProps, type index_TextStyle as TextStyle, type index_TextWidthBasis as TextWidthBasis, index_Ticker as Ticker, index_TickerManager as TickerManager, index_TickerManagerConsumer as TickerManagerConsumer, index_TickerManagerProvider as TickerManagerProvider, type index_TickerManagerProviderProps as TickerManagerProviderProps, type index_TickerManagerRef as TickerManagerRef, type index_TileMode as TileMode, index_TransformRotate as TransformRotate, type index_TransformRotateProps as TransformRotateProps, index_TransformScale as TransformScale, type index_TransformScaleProps as TransformScaleProps, index_TransformTranslate as TransformTranslate, type index_TransformTranslateProps as TransformTranslateProps, type index_Tween as Tween, type index_TweenSequence as TweenSequence, type index_TweenSequenceConstantItem as TweenSequenceConstantItem, type index_TweenSequenceItem as TweenSequenceItem, type index_TweenType as TweenType, index_UnconstrainedBox as UnconstrainedBox, type index_UnconstrainedBoxProps as UnconstrainedBoxProps, type index_UserScrollNotification as UserScrollNotification, type index_Velocity as Velocity, type index_VerticalDirection as VerticalDirection, index_WebView as WebView, index_WebViewController as WebViewController, type index_WebViewProps as WebViewProps, type index_WebViewSettings as WebViewSettings, index_Wrap as Wrap, type index_WrapAlignment as WrapAlignment, type index_WrapCrossAlignment as WrapCrossAlignment, type index_WrapProps as WrapProps, index_useAnimationController as useAnimationController, index_useLayerLink as useLayerLink, index_useNavigator as useNavigator, index_useTabController as useTabController, index_useTickerManager as useTickerManager };
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3460
|
+
declare global {
|
|
3461
|
+
const console: {
|
|
3462
|
+
log: (...args: any[]) => void;
|
|
3463
|
+
};
|
|
3464
|
+
const setTimeout: (callback: () => void, timeout?: number) => number;
|
|
3465
|
+
const clearTimeout: (timerId: number) => void;
|
|
3466
|
+
namespace JSX {
|
|
3467
|
+
interface Element extends VirtualNode {
|
|
3468
|
+
}
|
|
3469
|
+
interface ElementChildrenAttribute {
|
|
3470
|
+
children: {};
|
|
3471
|
+
}
|
|
3472
|
+
interface IntrinsicAttributes extends KeyProps, RefProps {
|
|
3473
|
+
}
|
|
3474
|
+
}
|
|
3475
|
+
}
|
|
3476
|
+
|
|
3477
|
+
export { type AixsDirection, type Alignment, type AppLifeCycleState, type Axis, type BlendMode, type BlurStyle, type BorderRadius, type BorderSide, type BoxConstraints, type BoxDecoration, type BoxFit, type BoxShadow, type Brightness, CancelToken, ChildrenRule, type Clip, Clipboard, type Color, type ComponentCallback, type ComponentEffect, type ComponentMemo, type ComponentProps, type Consumer, type ConsumerProps, type Context, type CrossAxisAlignment, type CupertinoDialogRoute, type CupertinoModalPopupRoute, type CupertinoPageRoute, type Curve, Device, Dialog, type DialogRoute, type DismissDirection, type Dispatch, type DragDownDetails, type DragEndDetails, type DragUpdateDetails, type EdgeInsets, type EdgeInsetsDirectional, type EffectCallback, type EffectDestructor, type EventPosition, FilePicker, type FilterQuality, type FontStyle, type FontWeight, type FunctionComponent, type ImageFilter, type ImageFilterBlur, type ImageFilterCompose, type ImageFilterDilate, type ImageFilterErode, type ImageFilterMaxtrix, type ImageRepeat, ImageSaver, type IndexRouteObject, type InternalWidgetRender, type IntervalCurve, type KeyProps, type LinearGradient, type LocaleState, type MainAxisAlignment, type MainAxisSize, type MaterialPageRoute, type MediaQueryData, type ModalBottomSheetRoute, type MutableRefObject, Navigation, type NormalCurve, type NormalRouteObject, type Offset, type OtherwiseRouteObject, type OverScrollNotification, type OverlayVisibilityMode, type PageInfo, type PageParamsUpdateEvent, type PagePopEvent, type PagePopResultEvent, type PagePushEvent, type PageRoute, type PaintRect, type PaintSize, type PermissionStatus, type PermissionType, type Provider, type ProviderProps, type PushNamedRouteOptions, type PushRouteOptions, type RadialGradient, type Reducer, type ReducerAction, type ReducerState, type RefObject, type RefProps, type RelativeRect, type RenderNode, type RenderObject, type RenderObjectShowOnScreenOptions, Request, type RouteObject, type RouteParams, Router, RouterProvider, type ScaleEndDetails, type ScaleStartDetails, type ScaleUpdateDetails, ScriptingAppEvents, type ScriptingDeviceInfo, type ScrollEndNotification, type ScrollMetrics, type ScrollNotification, type ScrollOrientation, type ScrollPhysics, type ScrollStartNotification, type ScrollUpdateNotification, type ScrollViewKeyboardDismissBehavior, type SetStateAction, Share, type ShareResultStatus, SocketIO, type StackFit, type StateInitializer, Storage, type StrokeCap, type StrutStyle, type TabAlignment, type TabBarIndicatorSize, type TapDownDetails, type TapUpDetails, type TextAlign, type TextBaseLine, type TextDecoration, type TextDecorationStyle, type TextDirection, type TextHeightBehavior, type TextInputType, type TextLeadingDistribution, type TextOverflow, type TextStyle, type TextWidthBasis, type ThemeState, type TileMode, type TypedParams, type UserScrollNotification, type Velocity, type VerticalDirection, type VirtualNode, index as Widgets, type WrapAlignment, type WrapCrossAlignment, type WrappedRouter, addAppEvent, createContext, createElement, index$1 as fs, getPermissionStatus, isApiEnabled, requestPermission, runApp, useByTheme, useCallback, useCancelToken, useContext, useEffect, useLocale, useMediaQuery, useMemo, useReducer, useRef, useRouteParams, useRouter, useSelector, useState, useThemeState };
|
|
3478
|
+
export as namespace Scripting;
|