@meursyphus/flitter 2.0.1 → 2.0.3
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/README.md +48 -48
- package/index.cjs +629 -459
- package/index.d.cts +71 -37
- package/index.d.ts +71 -37
- package/index.global.js +805 -692
- package/index.js +628 -458
- package/package.json +11 -8
package/index.d.cts
CHANGED
|
@@ -3329,7 +3329,7 @@ declare class Curve {
|
|
|
3329
3329
|
transform(value: number): number;
|
|
3330
3330
|
}
|
|
3331
3331
|
|
|
3332
|
-
declare const _default$
|
|
3332
|
+
declare const _default$x: {
|
|
3333
3333
|
linear: Curve;
|
|
3334
3334
|
easeIn: Curve;
|
|
3335
3335
|
easeInOut: Curve;
|
|
@@ -4096,6 +4096,26 @@ declare namespace colors {
|
|
|
4096
4096
|
export { colors_amber as amber, colors_black as black, colors_blue as blue, colors_cyan as cyan, colors_emerald as emerald, colors_fuchsia as fuchsia, colors_gray as gray, colors_green as green, colors_indigo as indigo, colors_inherit as inherit, colors_lime as lime, colors_neutral as neutral, colors_orange as orange, colors_pink as pink, colors_purple as purple, colors_red as red, colors_rose as rose, colors_sky as sky, colors_slate as slate, colors_stone as stone, colors_teal as teal, colors_transparent as transparent, colors_violet as violet, colors_white as white, colors_yellow as yellow, colors_zinc as zinc };
|
|
4097
4097
|
}
|
|
4098
4098
|
|
|
4099
|
+
declare enum ObjectFit {
|
|
4100
|
+
fill = "fill",
|
|
4101
|
+
contain = "contain",
|
|
4102
|
+
cover = "cover",
|
|
4103
|
+
none = "none",
|
|
4104
|
+
scaleDown = "scale-down"
|
|
4105
|
+
}
|
|
4106
|
+
|
|
4107
|
+
declare enum ObjectPosition {
|
|
4108
|
+
center = "center",
|
|
4109
|
+
top = "top",
|
|
4110
|
+
right = "right",
|
|
4111
|
+
bottom = "bottom",
|
|
4112
|
+
left = "left",
|
|
4113
|
+
topLeft = "top left",
|
|
4114
|
+
topRight = "top right",
|
|
4115
|
+
bottomLeft = "bottom left",
|
|
4116
|
+
bottomRight = "bottom right"
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4099
4119
|
declare class RenderObject {
|
|
4100
4120
|
#private;
|
|
4101
4121
|
readonly runtimeType: string;
|
|
@@ -4275,7 +4295,7 @@ declare class ChangeNotifierProviderState extends State<ChangeNotifierProvider>
|
|
|
4275
4295
|
initState(_: BuildContext): void;
|
|
4276
4296
|
build(_: BuildContext): Widget;
|
|
4277
4297
|
}
|
|
4278
|
-
declare const _default$
|
|
4298
|
+
declare const _default$w: (props_0: {
|
|
4279
4299
|
child: Widget;
|
|
4280
4300
|
create: () => ChangeNotifier;
|
|
4281
4301
|
key?: string;
|
|
@@ -4380,7 +4400,7 @@ type ContainerProps = {
|
|
|
4380
4400
|
transformAlignment?: Alignment;
|
|
4381
4401
|
key?: any;
|
|
4382
4402
|
};
|
|
4383
|
-
declare const _default$
|
|
4403
|
+
declare const _default$v: (args_0: ContainerProps) => any;
|
|
4384
4404
|
|
|
4385
4405
|
declare class Padding$1 extends SingleChildRenderObjectWidget {
|
|
4386
4406
|
padding: EdgeInsets;
|
|
@@ -4420,7 +4440,7 @@ declare class _Builder extends StatelessWidget {
|
|
|
4420
4440
|
build(context: BuildContext): Widget;
|
|
4421
4441
|
}
|
|
4422
4442
|
|
|
4423
|
-
declare const _default$
|
|
4443
|
+
declare const _default$u: (args_0: {
|
|
4424
4444
|
key?: any;
|
|
4425
4445
|
child?: Widget;
|
|
4426
4446
|
alignment?: Alignment;
|
|
@@ -4537,7 +4557,7 @@ declare namespace Grid {
|
|
|
4537
4557
|
var Px: typeof GridTemplate.Px;
|
|
4538
4558
|
}
|
|
4539
4559
|
|
|
4540
|
-
declare const _default$
|
|
4560
|
+
declare const _default$t: (args_0?: {
|
|
4541
4561
|
flex?: number;
|
|
4542
4562
|
child?: Widget;
|
|
4543
4563
|
fit?: "tight" | "loose";
|
|
@@ -4643,7 +4663,7 @@ interface PositionedFunction {
|
|
|
4643
4663
|
}
|
|
4644
4664
|
declare const Positioned: PositionedFunction;
|
|
4645
4665
|
|
|
4646
|
-
declare const _default$
|
|
4666
|
+
declare const _default$s: (args_0: {
|
|
4647
4667
|
key?: any;
|
|
4648
4668
|
child?: Widget;
|
|
4649
4669
|
clipper: (size: Size) => Path;
|
|
@@ -4664,7 +4684,7 @@ declare function ClipOval$1({ child, clipper, clipped, key, }: {
|
|
|
4664
4684
|
key?: any;
|
|
4665
4685
|
}): any;
|
|
4666
4686
|
|
|
4667
|
-
declare const _default$
|
|
4687
|
+
declare const _default$r: (args_0: {
|
|
4668
4688
|
child?: Widget;
|
|
4669
4689
|
constraints: Constraints;
|
|
4670
4690
|
key?: any;
|
|
@@ -4697,7 +4717,7 @@ declare function UnconstrainedBox({ alignment, clipped, child, textDirection, co
|
|
|
4697
4717
|
key?: any;
|
|
4698
4718
|
}): any;
|
|
4699
4719
|
|
|
4700
|
-
declare const _default$
|
|
4720
|
+
declare const _default$q: (args_0: {
|
|
4701
4721
|
minWidth?: number;
|
|
4702
4722
|
maxWidth?: number;
|
|
4703
4723
|
minHeight?: number;
|
|
@@ -4707,7 +4727,7 @@ declare const _default$p: (args_0: {
|
|
|
4707
4727
|
key?: any;
|
|
4708
4728
|
}) => any;
|
|
4709
4729
|
|
|
4710
|
-
declare const _default$
|
|
4730
|
+
declare const _default$p: (args_0: {
|
|
4711
4731
|
child?: Widget;
|
|
4712
4732
|
maxWidth?: number;
|
|
4713
4733
|
maxHeight?: number;
|
|
@@ -4719,7 +4739,7 @@ declare function Spacer({ flex, key }?: {
|
|
|
4719
4739
|
key?: any;
|
|
4720
4740
|
}): any;
|
|
4721
4741
|
|
|
4722
|
-
declare const _default$
|
|
4742
|
+
declare const _default$o: (args_0: {
|
|
4723
4743
|
child?: Widget;
|
|
4724
4744
|
alignment?: Alignment;
|
|
4725
4745
|
widthFactor?: number;
|
|
@@ -4738,17 +4758,17 @@ declare function Flex({ children, mainAxisAlignment, crossAxisAlignment, directi
|
|
|
4738
4758
|
key?: any;
|
|
4739
4759
|
}): any;
|
|
4740
4760
|
|
|
4741
|
-
declare const _default$
|
|
4761
|
+
declare const _default$n: (args_0?: {
|
|
4742
4762
|
child?: Widget;
|
|
4743
4763
|
key?: any;
|
|
4744
4764
|
}) => any;
|
|
4745
4765
|
|
|
4746
|
-
declare const _default$
|
|
4766
|
+
declare const _default$m: (args_0?: {
|
|
4747
4767
|
child?: Widget;
|
|
4748
4768
|
key?: any;
|
|
4749
4769
|
}) => any;
|
|
4750
4770
|
|
|
4751
|
-
declare const _default$
|
|
4771
|
+
declare const _default$l: (args_0: {
|
|
4752
4772
|
child?: Widget;
|
|
4753
4773
|
translation: {
|
|
4754
4774
|
x: number;
|
|
@@ -4757,13 +4777,13 @@ declare const _default$k: (args_0: {
|
|
|
4757
4777
|
key?: any;
|
|
4758
4778
|
}) => any;
|
|
4759
4779
|
|
|
4760
|
-
declare const _default$
|
|
4780
|
+
declare const _default$k: (args_0: {
|
|
4761
4781
|
child?: Widget;
|
|
4762
4782
|
opacity: number;
|
|
4763
4783
|
key?: any;
|
|
4764
4784
|
}) => any;
|
|
4765
4785
|
|
|
4766
|
-
declare const _default$
|
|
4786
|
+
declare const _default$j: (args_0: {
|
|
4767
4787
|
child?: Widget;
|
|
4768
4788
|
aspectRatio: number;
|
|
4769
4789
|
key?: string;
|
|
@@ -4778,7 +4798,7 @@ declare function IndexedStack({ clipped, children, alignment, sizing, index, key
|
|
|
4778
4798
|
key?: any;
|
|
4779
4799
|
}): any;
|
|
4780
4800
|
|
|
4781
|
-
declare const _default$
|
|
4801
|
+
declare const _default$i: (args_0: {
|
|
4782
4802
|
color: string;
|
|
4783
4803
|
child?: Widget;
|
|
4784
4804
|
key?: any;
|
|
@@ -4792,8 +4812,8 @@ declare function ClipOval({ child, borderRadius, clipped, clipper, key, }: {
|
|
|
4792
4812
|
key?: any;
|
|
4793
4813
|
}): any;
|
|
4794
4814
|
|
|
4795
|
-
declare const _default$
|
|
4796
|
-
decoration:
|
|
4815
|
+
declare const _default$h: (args_0: {
|
|
4816
|
+
decoration: Decoration;
|
|
4797
4817
|
child?: Widget;
|
|
4798
4818
|
key?: any;
|
|
4799
4819
|
}) => any;
|
|
@@ -4810,7 +4830,7 @@ type RichTextProps = {
|
|
|
4810
4830
|
textPainter?: TextPainter;
|
|
4811
4831
|
};
|
|
4812
4832
|
|
|
4813
|
-
declare const _default$
|
|
4833
|
+
declare const _default$g: (args_0: RichTextProps & {
|
|
4814
4834
|
key?: any;
|
|
4815
4835
|
}) => any;
|
|
4816
4836
|
|
|
@@ -4854,18 +4874,23 @@ declare class RenderCustomPaint<T extends Record<string, SVGElement> = Record<st
|
|
|
4854
4874
|
protected computeSizeForNoChild(constraints: Constraints): Size;
|
|
4855
4875
|
getIntrinsicWidth(height: number): number;
|
|
4856
4876
|
getIntrinsicHeight(width: number): number;
|
|
4857
|
-
protected createSvgPainter():
|
|
4877
|
+
protected createSvgPainter(): SvgPainterCustomPaint<Record<string, SVGElement>>;
|
|
4858
4878
|
protected createCanvasPainter(): CanvasPainter;
|
|
4859
4879
|
}
|
|
4880
|
+
declare class SvgPainterCustomPaint<T extends Record<string, SVGElement>> extends SvgPainter {
|
|
4881
|
+
get painter(): Painter<T, any>;
|
|
4882
|
+
protected performPaint(svgEls: T, _: SvgPaintContext): void;
|
|
4883
|
+
protected createDefaultSvgEl(paintContext: SvgPaintContext): T;
|
|
4884
|
+
}
|
|
4860
4885
|
|
|
4861
|
-
declare const _default$
|
|
4886
|
+
declare const _default$f: (args_0: {
|
|
4862
4887
|
child?: Widget;
|
|
4863
4888
|
size?: Size;
|
|
4864
4889
|
painter: Painter<Record<string, SVGElement>, any>;
|
|
4865
4890
|
key?: any;
|
|
4866
4891
|
}) => any;
|
|
4867
4892
|
|
|
4868
|
-
declare const _default$
|
|
4893
|
+
declare const _default$e: (args_0: {
|
|
4869
4894
|
child?: Widget;
|
|
4870
4895
|
onClick?: (e: MouseEvent) => void;
|
|
4871
4896
|
onMouseUp?: (e: MouseEvent) => void;
|
|
@@ -4895,7 +4920,7 @@ declare const _default$d: (args_0: {
|
|
|
4895
4920
|
}>;
|
|
4896
4921
|
}) => any;
|
|
4897
4922
|
|
|
4898
|
-
declare const _default$
|
|
4923
|
+
declare const _default$d: (args_0: {
|
|
4899
4924
|
key?: any;
|
|
4900
4925
|
child?: Widget;
|
|
4901
4926
|
curve?: Curve;
|
|
@@ -4905,7 +4930,7 @@ declare const _default$c: (args_0: {
|
|
|
4905
4930
|
alignment: Alignment;
|
|
4906
4931
|
}) => any;
|
|
4907
4932
|
|
|
4908
|
-
declare const _default$
|
|
4933
|
+
declare const _default$c: (args_0: {
|
|
4909
4934
|
key?: any;
|
|
4910
4935
|
child?: Widget;
|
|
4911
4936
|
curve?: Curve;
|
|
@@ -4913,7 +4938,7 @@ declare const _default$b: (args_0: {
|
|
|
4913
4938
|
opacity: number;
|
|
4914
4939
|
}) => any;
|
|
4915
4940
|
|
|
4916
|
-
declare const _default$
|
|
4941
|
+
declare const _default$b: (args_0: {
|
|
4917
4942
|
key?: any;
|
|
4918
4943
|
child?: Widget;
|
|
4919
4944
|
curve?: Curve;
|
|
@@ -4921,7 +4946,7 @@ declare const _default$a: (args_0: {
|
|
|
4921
4946
|
padding?: EdgeInsetsGeometry;
|
|
4922
4947
|
}) => any;
|
|
4923
4948
|
|
|
4924
|
-
declare const _default$
|
|
4949
|
+
declare const _default$a: (args_0: {
|
|
4925
4950
|
key?: any;
|
|
4926
4951
|
child?: Widget;
|
|
4927
4952
|
curve?: Curve;
|
|
@@ -4930,7 +4955,7 @@ declare const _default$9: (args_0: {
|
|
|
4930
4955
|
alignment?: Alignment;
|
|
4931
4956
|
}) => any;
|
|
4932
4957
|
|
|
4933
|
-
declare const _default$
|
|
4958
|
+
declare const _default$9: (args_0: {
|
|
4934
4959
|
key?: any;
|
|
4935
4960
|
child?: Widget;
|
|
4936
4961
|
curve?: Curve;
|
|
@@ -4940,7 +4965,7 @@ declare const _default$8: (args_0: {
|
|
|
4940
4965
|
alignment?: Alignment;
|
|
4941
4966
|
}) => any;
|
|
4942
4967
|
|
|
4943
|
-
declare const _default$
|
|
4968
|
+
declare const _default$8: (args_0: {
|
|
4944
4969
|
key?: any;
|
|
4945
4970
|
child?: Widget;
|
|
4946
4971
|
curve?: Curve;
|
|
@@ -4953,7 +4978,7 @@ declare const _default$7: (args_0: {
|
|
|
4953
4978
|
bottom?: number;
|
|
4954
4979
|
}) => any;
|
|
4955
4980
|
|
|
4956
|
-
declare const _default$
|
|
4981
|
+
declare const _default$7: (args_0: {
|
|
4957
4982
|
key?: any;
|
|
4958
4983
|
child?: Widget;
|
|
4959
4984
|
curve?: Curve;
|
|
@@ -4962,7 +4987,7 @@ declare const _default$6: (args_0: {
|
|
|
4962
4987
|
turns: number;
|
|
4963
4988
|
}) => any;
|
|
4964
4989
|
|
|
4965
|
-
declare const _default$
|
|
4990
|
+
declare const _default$6: (args_0: {
|
|
4966
4991
|
key?: any;
|
|
4967
4992
|
child?: Widget;
|
|
4968
4993
|
curve?: Curve;
|
|
@@ -4971,7 +4996,7 @@ declare const _default$5: (args_0: {
|
|
|
4971
4996
|
offset: Offset$1;
|
|
4972
4997
|
}) => any;
|
|
4973
4998
|
|
|
4974
|
-
declare const _default$
|
|
4999
|
+
declare const _default$5: (args_0: {
|
|
4975
5000
|
key?: any;
|
|
4976
5001
|
child?: Widget;
|
|
4977
5002
|
curve?: Curve;
|
|
@@ -4982,14 +5007,14 @@ declare const _default$4: (args_0: {
|
|
|
4982
5007
|
width?: number;
|
|
4983
5008
|
height?: number;
|
|
4984
5009
|
color?: string;
|
|
4985
|
-
decoration?:
|
|
5010
|
+
decoration?: Decoration;
|
|
4986
5011
|
clipped?: boolean;
|
|
4987
5012
|
constraints?: Constraints;
|
|
4988
5013
|
transform?: Matrix4;
|
|
4989
5014
|
transformAlignment?: Alignment;
|
|
4990
5015
|
}) => any;
|
|
4991
5016
|
|
|
4992
|
-
declare const _default$
|
|
5017
|
+
declare const _default$4: (args_0: {
|
|
4993
5018
|
onDragUpdate?: (event: {
|
|
4994
5019
|
delta: Offset$1;
|
|
4995
5020
|
}) => void;
|
|
@@ -4999,14 +5024,14 @@ declare const _default$3: (args_0: {
|
|
|
4999
5024
|
}) => any;
|
|
5000
5025
|
|
|
5001
5026
|
type TooltipPosition = "topLeft" | "topRight" | "topCenter" | "bottomCenter" | "bottomLeft" | "bottomRight" | "center" | "centerLeft" | "centerRight";
|
|
5002
|
-
declare const _default$
|
|
5027
|
+
declare const _default$3: (args_0: {
|
|
5003
5028
|
key?: any;
|
|
5004
5029
|
child: Widget;
|
|
5005
5030
|
tooltip: Widget;
|
|
5006
5031
|
position?: TooltipPosition;
|
|
5007
5032
|
}) => any;
|
|
5008
5033
|
|
|
5009
|
-
declare const _default$
|
|
5034
|
+
declare const _default$2: (args_0: {
|
|
5010
5035
|
key?: any;
|
|
5011
5036
|
child?: Widget;
|
|
5012
5037
|
zIndex: number;
|
|
@@ -5028,7 +5053,16 @@ type TextFieldProps = {
|
|
|
5028
5053
|
height?: number;
|
|
5029
5054
|
focusedBorder?: Border;
|
|
5030
5055
|
};
|
|
5031
|
-
declare const _default: (text: string, args_1?: TextFieldProps) => any;
|
|
5056
|
+
declare const _default$1: (text: string, args_1?: TextFieldProps) => any;
|
|
5057
|
+
|
|
5058
|
+
declare const _default: (args_0: {
|
|
5059
|
+
key?: any;
|
|
5060
|
+
src: string;
|
|
5061
|
+
width?: number;
|
|
5062
|
+
height?: number;
|
|
5063
|
+
objectFit?: "fill" | "none" | "contain" | "cover" | "scale-down";
|
|
5064
|
+
objectPosition?: "left" | "top" | "right" | "bottom" | "center" | "top left" | "top right" | "bottom left" | "bottom right";
|
|
5065
|
+
}) => any;
|
|
5032
5066
|
|
|
5033
5067
|
declare class Utils {
|
|
5034
5068
|
static sumReducer: (acc: number, value: number) => number;
|
|
@@ -5041,4 +5075,4 @@ declare class Utils {
|
|
|
5041
5075
|
static lerp<T extends Calculable | number>(a: T, b: T, t: number): T;
|
|
5042
5076
|
}
|
|
5043
5077
|
|
|
5044
|
-
export { _default$
|
|
5078
|
+
export { _default$u as Align, Alignment, _default$d as AnimatedAlign, AnimatedBaseWidgetState, _default$5 as AnimatedContainer, _default$9 as AnimatedFractionallySizedBox, _default$c as AnimatedOpacity, _default$b as AnimatedPadding, _default$8 as AnimatedPositioned, _default$7 as AnimatedRotation, _default$a as AnimatedScale, _default$6 as AnimatedSlide, Animation, AnimationController, AppRunner, _default$j as AspectRatio, Axis, Border, BorderRadius, BorderRadiusGeometry, BorderSide, BorderStyle$1 as BorderStyle, type BoxBorder, BoxDecoration, BoxShadow, BuildContext, BuildOwner, Builder, Calculable, CalculableTween, CanvasPainter, CanvasPaintingContext, Center, ChangeNotifier, _default$w as ChangeNotifierProvider, ClipOval$1 as ClipOval, _default$s as ClipPath, ClipOval as ClipRRect, ClipRect, Color, _default$i as ColoredBox, colors as Colors, Column, ComponentElement, StatelessWidget as ComponentWidget, _default$r as ConstrainedBox, Constraints, ConstraintsTransformBox, _default$v as Container, CrossAxisAlignment, Curve, CurvedAnimation, _default$x as Curves, _default$f as CustomPaint, Data, _default$h as DecoratedBox, type Decoration, _default$4 as Draggable, EdgeInsets, Element, Expanded, Flex, _default$t as Flexible, _default$l as FractionalTranslation, _default$o as FractionallySizedBox, Gap, _default$e as GestureDetector, GlobalKey, Grid, _default as Image, ImplicitlyAnimatedWidget, ImplicitlyAnimatedWidgetState, IndexedStack, _default$n as IntrinsicHeight, _default$m as IntrinsicWidth, _default$p as LimitedBox, Listenable, MainAxisAlignment, MainAxisSize, Matrix3, Matrix4, MultiChildRenderObject, MultiChildRenderObjectWidget, type Nullable, ObjectFit, ObjectPosition, Offset$1 as Offset, _default$k as Opacity, _default$q as OverflowBox, Padding, BaseCustomPaint as Painter, Paragraph, Path, Positioned, ProviderFn as Provider, RRect, Radius$1 as Radius, ReactiveChangeNotifier, Rect, RenderAligningShiftedBox, RenderBox, RenderFrameDispatcher, RenderObject, RenderObjectElement, RenderObjectToWidgetAdapter, RenderObjectWidget, RenderPipeline, RenderPipelineProvider, RenderView, _default$g as RichText, Row, Scheduler, SingleChildRenderObject, SingleChildRenderObjectWidget, Size, SizedBox, Spacer, Stack, StackFit, State, StatefulElement, StatefulWidget, StatelessElement, StatelessWidget, type SvgPaintContext, SvgPainter, Text, TextAlign, TextBaseline, TextDirection, _default$1 as TextField, TextOverflow, TextPainter, TextSpan, TextStyle, TextWidthBasis, ToolTipPosition, _default$3 as Tooltip, Transform, Tween, UnconstrainedBox, Utils, Vector2, Vector3, Vector4, VerticalDirection, type VoidCallback, Widget, _default$2 as ZIndex };
|