BaseColorsExt mixin

基础颜色扩展类 - 所有颜色相关的扩展都应该继承自这个类 Base color extension class - All color-related extensions should inherit from this class

Superclass constraints
Available extensions

Properties

amber100Color Color
amber-100 -->gt; color: rgb(254 243 199);
no setter
amber200Color Color
amber-200 -->gt; color: rgb(253 230 138);
no setter
amber300Color Color
amber-300 -->gt; color: rgb(252 211 77);
no setter
amber400Color Color
amber-400 -->gt; color: rgb(251 191 36);
no setter
amber500Color Color
amber-500 -->gt; color: rgb(245 158 11);
no setter
amber50Color Color
amber-50 -->gt; color: rgb(255 251 235);
no setter
amber600Color Color
amber-600 -->gt; color: rgb(217 119 6);
no setter
amber700Color Color
amber-700 -->gt; color: rgb(180 83 9);
no setter
amber800Color Color
amber-800 -->gt; color: rgb(146 64 14);
no setter
amber900Color Color
amber-900 -->gt; color: rgb(120 53 15);
no setter
amber950Color Color
amber-950 -->gt; color: rgb(69 26 3);
no setter
blackColor Color
black -->gt; color: rgb(0 0 0);
no setter
blue100Color Color
blue-100 -->gt; color: rgb(219 234 254);
no setter
blue200Color Color
blue-200 -->gt; color: rgb(191 219 254);
no setter
blue300Color Color
blue-300 -->gt; color: rgb(147 197 253);
no setter
blue400Color Color
blue-400 -->gt; color: rgb(96 165 250);
no setter
blue500Color Color
blue-500 -->gt; color: rgb(59 130 246);
no setter
blue50Color Color
blue-50 -->gt; color: rgb(239 246 255);
no setter
blue600Color Color
blue-600 -->gt; color: rgb(37 99 235);
no setter
blue700Color Color
blue-700 -->gt; color: rgb(29 78 216);
no setter
blue800Color Color
blue-800 -->gt; color: rgb(30 64 175);
no setter
blue900Color Color
blue-900 -->gt; color: rgb(30 58 138);
no setter
blue950Color Color
blue-950 -->gt; color: rgb(23 37 84);
no setter
colorNames List<String>
获取所有可用的颜色名称 Get all available color names
no setter
colorVariants List<int>
获取所有可用的颜色变体 Get all available color variants
no setter
currentColor Color
current -->gt; color: currentColor;
no setter
cyan100Color Color
cyan-100 -->gt; color: rgb(207 250 254);
no setter
cyan200Color Color
cyan-200 -->gt; color: rgb(165 243 252);
no setter
cyan300Color Color
cyan-300 -->gt; color: rgb(103 232 249);
no setter
cyan400Color Color
cyan-400 -->gt; color: rgb(34 211 238);
no setter
cyan500Color Color
cyan-500 -->gt; color: rgb(6 182 212);
no setter
cyan50Color Color
cyan-50 -->gt; color: rgb(236 254 255);
no setter
cyan600Color Color
cyan-600 -->gt; color: rgb(8 145 178);
no setter
cyan700Color Color
cyan-700 -->gt; color: rgb(14 116 144);
no setter
cyan800Color Color
cyan-800 -->gt; color: rgb(21 94 117);
no setter
cyan900Color Color
cyan-900 -->gt; color: rgb(22 78 99);
no setter
cyan950Color Color
cyan-950 -->gt; color: rgb(8 51 68);
no setter
emerald100Color Color
emerald-100 -->gt; color: rgb(209 250 229);
no setter
emerald200Color Color
emerald-200 -->gt; color: rgb(167 243 208);
no setter
emerald300Color Color
emerald-300 -->gt; color: rgb(110 231 183);
no setter
emerald400Color Color
emerald-400 -->gt; color: rgb(52 211 153);
no setter
emerald500Color Color
emerald-500 -->gt; color: rgb(16 185 129);
no setter
emerald50Color Color
emerald-50 -->gt; color: rgb(236 253 245);
no setter
emerald600Color Color
emerald-600 -->gt; color: rgb(5 150 105);
no setter
emerald700Color Color
emerald-700 -->gt; color: rgb(4 120 87);
no setter
emerald800Color Color
emerald-800 -->gt; color: rgb(6 95 70);
no setter
emerald900Color Color
emerald-900 -->gt; color: rgb(6 78 59);
no setter
emerald950Color Color
emerald-950 -->gt; color: rgb(2 44 34);
no setter
fuchsia100Color Color
fuchsia-100 -->gt; color: rgb(250 232 255);
no setter
fuchsia200Color Color
fuchsia-200 -->gt; color: rgb(245 208 254);
no setter
fuchsia300Color Color
fuchsia-300 -->gt; color: rgb(240 171 252);
no setter
fuchsia400Color Color
fuchsia-400 -->gt; color: rgb(232 121 249);
no setter
fuchsia500Color Color
fuchsia-500 -->gt; color: rgb(217 70 239);
no setter
fuchsia50Color Color
fuchsia-50 -->gt; color: rgb(253 244 255);
no setter
fuchsia600Color Color
fuchsia-600 -->gt; color: rgb(192 38 211);
no setter
fuchsia700Color Color
fuchsia-700 -->gt; color: rgb(162 28 175);
no setter
fuchsia800Color Color
fuchsia-800 -->gt; color: rgb(134 25 143);
no setter
fuchsia900Color Color
fuchsia-900 -->gt; color: rgb(112 26 117);
no setter
fuchsia950Color Color
fuchsia-950 -->gt; color: rgb(74 4 78);
no setter
gray100Color Color
gray-100 -->gt; color: rgb(243 244 246);
no setter
gray200Color Color
gray-200 -->gt; color: rgb(229 231 235);
no setter
gray300Color Color
gray-300 -->gt; color: rgb(209 213 219);
no setter
gray400Color Color
gray-400 -->gt; color: rgb(156 163 175);
no setter
gray500Color Color
gray-500 -->gt; color: rgb(107 114 128);
no setter
gray50Color Color
gray-50 -->gt; color: rgb(249 250 251);
no setter
gray600Color Color
gray-600 -->gt; color: rgb(75 85 99);
no setter
gray700Color Color
gray-700 -->gt; color: rgb(55 65 81);
no setter
gray800Color Color
gray-800 -->gt; color: rgb(31 41 55);
no setter
gray900Color Color
gray-900 -->gt; color: rgb(17 24 39);
no setter
gray950Color Color
gray-950 -->gt; color: rgb(3 7 18);
no setter
green100Color Color
green-100 -->gt; color: rgb(220 252 231);
no setter
green200Color Color
green-200 -->gt; color: rgb(187 247 208);
no setter
green300Color Color
green-300 -->gt; color: rgb(134 239 172);
no setter
green400Color Color
green-400 -->gt; color: rgb(74 222 128);
no setter
green500Color Color
green-500 -->gt; color: rgb(34 197 94);
no setter
green50Color Color
green-50 -->gt; color: rgb(240 253 244);
no setter
green600Color Color
green-600 -->gt; color: rgb(22 163 74);
no setter
green700Color Color
green-700 -->gt; color: rgb(21 128 61);
no setter
green800Color Color
green-800 -->gt; color: rgb(22 101 52);
no setter
green900Color Color
green-900 -->gt; color: rgb(20 83 45);
no setter
green950Color Color
green-950 -->gt; color: rgb(5 46 22);
no setter
hashCode int
The hash code for this object.
no setterinherited
indigo100Color Color
indigo-100 -->gt; color: rgb(224 231 255);
no setter
indigo200Color Color
indigo-200 -->gt; color: rgb(199 210 254);
no setter
indigo300Color Color
indigo-300 -->gt; color: rgb(165 180 252);
no setter
indigo400Color Color
indigo-400 -->gt; color: rgb(129 140 248);
no setter
indigo500Color Color
indigo-500 -->gt; color: rgb(99 102 241);
no setter
indigo50Color Color
indigo-50 -->gt; color: rgb(238 242 255);
no setter
indigo600Color Color
indigo-600 -->gt; color: rgb(79 70 229);
no setter
indigo700Color Color
indigo-700 -->gt; color: rgb(67 56 202);
no setter
indigo800Color Color
indigo-800 -->gt; color: rgb(55 48 163);
no setter
indigo900Color Color
indigo-900 -->gt; color: rgb(49 46 129);
no setter
indigo950Color Color
indigo-950 -->gt; color: rgb(30 27 75);
no setter
inheritColor Color
inherit -->gt; color: inherit;
no setter
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lime100Color Color
lime-100 -->gt; color: rgb(236 252 203);
no setter
lime200Color Color
lime-200 -->gt; color: rgb(217 249 157);
no setter
lime300Color Color
lime-300 -->gt; color: rgb(190 242 100);
no setter
lime400Color Color
lime-400 -->gt; color: rgb(163 230 53);
no setter
lime500Color Color
lime-500 -->gt; color: rgb(132 204 22);
no setter
lime50Color Color
lime-50 -->gt; color: rgb(247 254 231);
no setter
lime600Color Color
lime-600 -->gt; color: rgb(101 163 13);
no setter
lime700Color Color
lime-700 -->gt; color: rgb(77 124 15);
no setter
lime800Color Color
lime-800 -->gt; color: rgb(63 98 18);
no setter
lime900Color Color
lime-900 -->gt; color: rgb(54 83 20);
no setter
lime950Color Color
lime-950 -->gt; color: rgb(26 46 5);
no setter
neutral100Color Color
neutral-100 -->gt; color: rgb(245 245 245);
no setter
neutral200Color Color
neutral-200 -->gt; color: rgb(229 229 229);
no setter
neutral300Color Color
neutral-300 -->gt; color: rgb(212 212 212);
no setter
neutral400Color Color
neutral-400 -->gt; color: rgb(163 163 163);
no setter
neutral500Color Color
neutral-500 -->gt; color: rgb(115 115 115);
no setter
neutral50Color Color
neutral-50 -->gt; color: rgb(250 250 250);
no setter
neutral600Color Color
neutral-600 -->gt; color: rgb(82 82 82);
no setter
neutral700Color Color
neutral-700 -->gt; color: rgb(64 64 64);
no setter
neutral800Color Color
neutral-800 -->gt; color: rgb(38 38 38);
no setter
neutral900Color Color
neutral-900 -->gt; color: rgb(23 23 23);
no setter
neutral950Color Color
neutral-950 -->gt; color: rgb(10 10 10);
no setter
orange100Color Color
orange-100 -->gt; color: rgb(255 237 213);
no setter
orange200Color Color
orange-200 -->gt; color: rgb(254 215 170);
no setter
orange300Color Color
orange-300 -->gt; color: rgb(253 186 116);
no setter
orange400Color Color
orange-400 -->gt; color: rgb(251 146 60);
no setter
orange500Color Color
orange-500 -->gt; color: rgb(249 115 22);
no setter
orange50Color Color
orange-50 -->gt; color: rgb(255 247 237);
no setter
orange600Color Color
orange-600 -->gt; color: rgb(234 88 12);
no setter
orange700Color Color
orange-700 -->gt; color: rgb(194 65 12);
no setter
orange800Color Color
orange-800 -->gt; color: rgb(154 52 18);
no setter
orange900Color Color
orange-900 -->gt; color: rgb(124 45 18);
no setter
orange950Color Color
orange-950 -->gt; color: rgb(67 20 7);
no setter
pink100Color Color
pink-100 -->gt; color: rgb(252 231 243);
no setter
pink200Color Color
pink-200 -->gt; color: rgb(251 207 232);
no setter
pink300Color Color
pink-300 -->gt; color: rgb(249 168 212);
no setter
pink400Color Color
pink-400 -->gt; color: rgb(244 114 182);
no setter
pink500Color Color
pink-500 -->gt; color: rgb(236 72 153);
no setter
pink50Color Color
pink-50 -->gt; color: rgb(253 242 248);
no setter
pink600Color Color
pink-600 -->gt; color: rgb(219 39 119);
no setter
pink700Color Color
pink-700 -->gt; color: rgb(190 24 93);
no setter
pink800Color Color
pink-800 -->gt; color: rgb(157 23 77);
no setter
pink900Color Color
pink-900 -->gt; color: rgb(131 24 67);
no setter
pink950Color Color
pink-950 -->gt; color: rgb(80 7 36);
no setter
purple100Color Color
purple-100 -->gt; color: rgb(243 232 255);
no setter
purple200Color Color
purple-200 -->gt; color: rgb(233 213 255);
no setter
purple300Color Color
purple-300 -->gt; color: rgb(216 180 254);
no setter
purple400Color Color
purple-400 -->gt; color: rgb(196 145 253);
no setter
purple500Color Color
purple-500 -->gt; color: rgb(168 85 247);
no setter
purple50Color Color
purple-50 -->gt; color: rgb(250 245 255);
no setter
purple600Color Color
purple-600 -->gt; color: rgb(147 51 234);
no setter
purple700Color Color
purple-700 -->gt; color: rgb(126 34 206);
no setter
purple800Color Color
purple-800 -->gt; color: rgb(107 33 168);
no setter
purple900Color Color
purple-900 -->gt; color: rgb(88 28 135);
no setter
purple950Color Color
purple-950 -->gt; color: rgb(59 7 100);
no setter
red100Color Color
red-100 -->gt; color: rgb(254 226 226);
no setter
red200Color Color
red-200 -->gt; color: rgb(254 202 202);
no setter
red300Color Color
red-300 -->gt; color: rgb(252 165 165);
no setter
red400Color Color
red-400 -->gt; color: rgb(248 113 113);
no setter
red500Color Color
red-500 -->gt; color: rgb(239 68 68);
no setter
red50Color Color
red-50 -->gt; color: rgb(254 242 242);
no setter
red600Color Color
red-600 -->gt; color: rgb(220 38 38);
no setter
red700Color Color
red-700 -->gt; color: rgb(185 28 28);
no setter
red800Color Color
red-800 -->gt; color: rgb(153 27 27);
no setter
red900Color Color
red-900 -->gt; color: rgb(127 29 29);
no setter
red950Color Color
red-950 -->gt; color: rgb(69 10 10);
no setter
rose100Color Color
rose-100 -->gt; color: rgb(255 228 230);
no setter
rose200Color Color
rose-200 -->gt; color: rgb(254 205 211);
no setter
rose300Color Color
rose-300 -->gt; color: rgb(253 164 175);
no setter
rose400Color Color
rose-400 -->gt; color: rgb(251 113 133);
no setter
rose500Color Color
rose-500 -->gt; color: rgb(244 63 94);
no setter
rose50Color Color
rose-50 -->gt; color: rgb(255 241 242);
no setter
rose600Color Color
rose-600 -->gt; color: rgb(225 29 72);
no setter
rose700Color Color
rose-700 -->gt; color: rgb(190 18 60);
no setter
rose800Color Color
rose-800 -->gt; color: rgb(159 18 57);
no setter
rose900Color Color
rose-900 -->gt; color: rgb(136 19 55);
no setter
rose950Color Color
rose-950 -->gt; color: rgb(76 5 25);
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sky100Color Color
sky-100 -->gt; color: rgb(224 242 254);
no setter
sky200Color Color
sky-200 -->gt; color: rgb(186 230 253);
no setter
sky300Color Color
sky-300 -->gt; color: rgb(125 211 252);
no setter
sky400Color Color
sky-400 -->gt; color: rgb(56 189 248);
no setter
sky500Color Color
sky-500 -->gt; color: rgb(14 165 233);
no setter
sky50Color Color
sky-50 -->gt; color: rgb(240 249 255);
no setter
sky600Color Color
sky-600 -->gt; color: rgb(2 132 199);
no setter
sky700Color Color
sky-700 -->gt; color: rgb(3 105 161);
no setter
sky800Color Color
sky-800 -->gt; color: rgb(7 89 133);
no setter
sky900Color Color
sky-900 -->gt; color: rgb(12 74 110);
no setter
sky950Color Color
sky-950 -->gt; color: rgb(8 47 73);
no setter
slate100Color Color
slate-100 -->gt; color: rgb(241 245 249);
no setter
slate200Color Color
slate-200 -->gt; color: rgb(226 232 240);
no setter
slate300Color Color
slate-300 -->gt; color: rgb(203 213 225);
no setter
slate400Color Color
slate-400 -->gt; color: rgb(148 163 184);
no setter
slate500Color Color
slate-500 -->gt; color: rgb(100 116 139);
no setter
slate50Color Color
slate-50 -->gt; color: rgb(248 250 252);
no setter
slate600Color Color
slate-600 -->gt; color: rgb(71 85 105);
no setter
slate700Color Color
slate-700 -->gt; color: rgb(51 65 85);
no setter
slate800Color Color
slate-800 -->gt; color: rgb(30 41 59);
no setter
slate900Color Color
slate-900 -->gt; color: rgb(15 23 42);
no setter
slate950Color Color
slate-950 -->gt; color: rgb(2 6 23);
no setter
stone100Color Color
stone-100 -->gt; color: rgb(245 245 244);
no setter
stone200Color Color
stone-200 -->gt; color: rgb(231 229 228);
no setter
stone300Color Color
stone-300 -->gt; color: rgb(214 211 209);
no setter
stone400Color Color
stone-400 -->gt; color: rgb(168 162 158);
no setter
stone500Color Color
stone-500 -->gt; color: rgb(120 113 108);
no setter
stone50Color Color
stone-50 -->gt; color: rgb(250 250 249);
no setter
stone600Color Color
stone-600 -->gt; color: rgb(87 83 78);
no setter
stone700Color Color
stone-700 -->gt; color: rgb(68 64 60);
no setter
stone800Color Color
stone-800 -->gt; color: rgb(41 37 36);
no setter
stone900Color Color
stone-900 -->gt; color: rgb(28 25 23);
no setter
stone950Color Color
stone-950 -->gt; color: rgb(12 10 9);
no setter
teal100Color Color
teal-100 -->gt; color: rgb(204 251 241);
no setter
teal200Color Color
teal-200 -->gt; color: rgb(153 246 228);
no setter
teal300Color Color
teal-300 -->gt; color: rgb(94 234 212);
no setter
teal400Color Color
teal-400 -->gt; color: rgb(45 212 191);
no setter
teal500Color Color
teal-500 -->gt; color: rgb(20 184 166);
no setter
teal50Color Color
teal-50 -->gt; color: rgb(240 253 250);
no setter
teal600Color Color
teal-600 -->gt; color: rgb(13 148 136);
no setter
teal700Color Color
teal-700 -->gt; color: rgb(15 118 110);
no setter
teal800Color Color
teal-800 -->gt; color: rgb(17 94 89);
no setter
teal900Color Color
teal-900 -->gt; color: rgb(19 78 74);
no setter
teal950Color Color
teal-950 -->gt; color: rgb(4 47 46);
no setter
themeColorOverrides Map<String, Color>
主题颜色映射 - 可以通过覆盖这个getter来实现主题切换 Theme color mapping - Override this getter to implement theme switching
no setter
transparentColor Color
transparent -->gt; color: transparent;
no setter
violet100Color Color
violet-100 -->gt; color: rgb(237 233 254);
no setter
violet200Color Color
violet-200 -->gt; color: rgb(221 214 254);
no setter
violet300Color Color
violet-300 -->gt; color: rgb(196 181 253);
no setter
violet400Color Color
violet-400 -->gt; color: rgb(167 139 250);
no setter
violet500Color Color
violet-500 -->gt; color: rgb(139 92 246);
no setter
violet50Color Color
violet-50 -->gt; color: rgb(245 243 255);
no setter
violet600Color Color
violet-600 -->gt; color: rgb(124 58 237);
no setter
violet700Color Color
violet-700 -->gt; color: rgb(109 40 217);
no setter
violet800Color Color
violet-800 -->gt; color: rgb(91 33 182);
no setter
violet900Color Color
violet-900 -->gt; color: rgb(76 29 149);
no setter
violet950Color Color
violet-950 -->gt; color: rgb(46 16 101);
no setter
whiteColor Color
white -->gt; color: rgb(255 255 255);
no setter
yellow100Color Color
yellow-100 -->gt; color: rgb(254 249 195);
no setter
yellow200Color Color
yellow-200 -->gt; color: rgb(254 240 138);
no setter
yellow300Color Color
yellow-300 -->gt; color: rgb(253 224 71);
no setter
yellow400Color Color
yellow-400 -->gt; color: rgb(250 204 21);
no setter
yellow500Color Color
yellow-500 -->gt; color: rgb(234 179 8);
no setter
yellow50Color Color
yellow-50 -->gt; color: rgb(254 252 232);
no setter
yellow600Color Color
yellow-600 -->gt; color: rgb(202 138 4);
no setter
yellow700Color Color
yellow-700 -->gt; color: rgb(161 98 7);
no setter
yellow800Color Color
yellow-800 -->gt; color: rgb(133 77 14);
no setter
yellow900Color Color
yellow-900 -->gt; color: rgb(113 63 18);
no setter
yellow950Color Color
yellow-950 -->gt; color: rgb(66 32 6);
no setter
zinc100Color Color
zinc-100 -->gt; color: rgb(244 244 245);
no setter
zinc200Color Color
zinc-200 -->gt; color: rgb(228 228 231);
no setter
zinc300Color Color
zinc-300 -->gt; color: rgb(212 212 216);
no setter
zinc400Color Color
zinc-400 -->gt; color: rgb(161 161 170);
no setter
zinc500Color Color
zinc-500 -->gt; color: rgb(113 113 122);
no setter
zinc50Color Color
zinc-50 -->gt; color: rgb(250 250 250);
no setter
zinc600Color Color
zinc-600 -->gt; color: rgb(82 82 91);
no setter
zinc700Color Color
zinc-700 -->gt; color: rgb(63 63 70);
no setter
zinc800Color Color
zinc-800 -->gt; color: rgb(39 39 42);
no setter
zinc900Color Color
zinc-900 -->gt; color: rgb(24 24 27);
no setter
zinc950Color Color
zinc-950 -->gt; color: rgb(9 9 11);
no setter

Methods

applyColorCustomization(Color color) Color
应用颜色自定义函数 - 子类可以覆盖这个方法来实现颜色转换 Apply color customization function - Subclasses can override this method to implement color transformation
asAlign({AlignmentGeometry alignment = Alignment.center, double? widthFactor, double? heightFactor}) Align

Available on Widget, provided by the WidgetConversionExt extension

转换为 Align,对齐布局
asCard({Color? color, double? elevation, ShapeBorder? shape, bool borderOnForeground = true, EdgeInsetsGeometry? margin, Clip? clipBehavior}) Card

Available on Widget, provided by the WidgetConversionExt extension

转换为 Card,卡片布局
asCenter({double? widthFactor, double? heightFactor}) Center

Available on Widget, provided by the WidgetConversionExt extension

转换为 Center,居中布局
asClipRRect({BorderRadius? borderRadius, Clip clipBehavior = Clip.antiAlias}) ClipRRect

Available on Widget, provided by the WidgetConversionExt extension

转换为 ClipRRect,圆角裁剪
asColumn({MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisSize mainAxisSize = MainAxisSize.min, TextDirection? textDirection, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline? textBaseline}) Column

Available on Widget, provided by the WidgetConversionExt extension

将单个Widget转换为Column(包装在列表中)
asContainer() ContainerBuilder

Available on Widget, provided by the WidgetToContainerBuilder extension

将 Widget 转换为 ContainerBuilder,开始样式链式调用 (新的建造者模式)
asContainerBuilder() ContainerBuilder

Available on Widget, provided by the WidgetToContainerBuilder extension

@deprecated 使用新的建造者模式 asContainer() 替代 将 Widget 转换为 ContainerBuilder,开始样式链式调用
asElevatedButton({required VoidCallback? onPressed, required Widget child}) Widget

Available on Widget, provided by the ButtonExtensions extension

将Widget转换为ElevatedButton样式(实际使用GestureDetector)
asExpanded({int flex = 1}) Expanded

Available on Widget, provided by the WidgetConversionExt extension

转换为 Expanded,Flex 扩展
asFlexible({int flex = 1, FlexFit fit = FlexFit.loose}) Flexible

Available on Widget, provided by the WidgetConversionExt extension

转换为 Flexible,Flex 弹性
asGestureDetector({GestureTapCallback? onTap, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress, void onPanUpdate(DragUpdateDetails)?, HitTestBehavior? behavior}) GestureDetector

Available on Widget, provided by the WidgetConversionExt extension

转换为 GestureDetector,手势检测
asHero({required Object tag, CreateRectTween? createRectTween, HeroFlightShuttleBuilder? flightShuttleBuilder, HeroPlaceholderBuilder? placeholderBuilder, bool transitionOnUserGestures = false}) Hero

Available on Widget, provided by the WidgetConversionExt extension

转换为 Hero,英雄动画
asInkWell({GestureTapCallback? onTap, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress, Color? splashColor, Color? highlightColor, BorderRadius? borderRadius}) InkWell

Available on Widget, provided by the WidgetConversionExt extension

转换为 InkWell,墨水井效果
asLegacyContainer({AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, Color? color, Decoration? decoration, Decoration? foregroundDecoration, double? width, double? height, BoxConstraints? constraints, EdgeInsetsGeometry? margin, Matrix4? transform, AlignmentGeometry? transformAlignment, Clip clipBehavior = Clip.none}) Container

Available on Widget, provided by the WidgetConversionExt extension

转换为 Container,最基础的容器转换 @deprecated 使用新的建造者模式 asContainer() 替代 旧版本的 asContainer 方法,已弃用
asOutlinedButton({required VoidCallback? onPressed, required Widget child}) Widget

Available on Widget, provided by the ButtonExtensions extension

将Widget转换为OutlinedButton样式(实际使用GestureDetector)
asPadding(EdgeInsetsGeometry padding) Padding

Available on Widget, provided by the WidgetConversionExt extension

转换为 Padding,内边距
asPositioned({double? left, double? top, double? right, double? bottom, double? width, double? height}) Positioned

Available on Widget, provided by the WidgetConversionExt extension

转换为 Positioned,Stack 定位
asRow({MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisSize mainAxisSize = MainAxisSize.min, TextDirection? textDirection, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline? textBaseline}) Row

Available on Widget, provided by the WidgetConversionExt extension

将单个Widget转换为Row(包装在列表中)
asScrollable({Axis scrollDirection = Axis.vertical, EdgeInsetsGeometry? padding}) SingleChildScrollView

Available on Widget, provided by the WidgetConversionExt extension

转换为 ScrollView,更简洁的调用
asScrollView() ScrollBuilder

Available on Widget, provided by the WidgetToScrollBuilder extension

将 Widget 转换为 ScrollBuilder,开始 overflow 样式链式调用
asScrollView({Axis scrollDirection = Axis.vertical, bool reverse = false, EdgeInsetsGeometry? padding, bool? primary, ScrollPhysics? physics, ScrollController? controller}) SingleChildScrollView

Available on Widget, provided by the WidgetConversionExt extension

转换为 SingleChildScrollView,支持滚动
asSizedBox({double? width, double? height}) SizedBox

Available on Widget, provided by the WidgetConversionExt extension

转换为 SizedBox,固定尺寸盒子
asTextButton({required VoidCallback? onPressed, required Widget child}) Widget

Available on Widget, provided by the ButtonExtensions extension

将Widget转换为TextButton样式(实际使用GestureDetector)
bg(Color color) Container

Available on Widget, provided by the WidgetConversionExt extension

设置背景色 - 简化调用
boxDecoration({Color? color, DecorationImage? image, Border? border, BorderRadius? borderRadius, List<BoxShadow>? boxShadow, Gradient? gradient, BlendMode? backgroundBlendMode, BoxShape shape = BoxShape.rectangle}) Container

Available on Widget, provided by the WidgetConversionExt extension

设置复杂的 BoxDecoration,支持链式调用
colEnd(int end) GridItemWidget

Available on Widget, provided by the WidgetGridExtension extension

设置grid列结束位置
colSpan(int span) GridItemWidget

Available on Widget, provided by the WidgetGridExtension extension

设置grid列跨度
colStart(int start) GridItemWidget

Available on Widget, provided by the WidgetGridExtension extension

设置grid列开始位置
conditionalBorderRadius({bool topLeft = false, bool topRight = false, bool bottomLeft = false, bool bottomRight = false, double radius = 12.0}) Container

Available on Widget, provided by the WidgetConversionExt extension

条件圆角 - 可控制每个角
createElement() Element
Inflates this configuration to a concrete instance.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
getColor(String colorName, int variant) Color?
根据颜色名称和变体获取颜色 Get color by name and variant
getDefaultColor(String colorName) Color?
获取默认颜色变体 (500) Get default color variant (500) by name
getThemeColor(String colorName, int variant) Color
获取主题颜色,如果有覆盖则返回覆盖的颜色,否则返回默认颜色 Get theme color, return override color if available, otherwise return default color
gridArea({int? colStart, int? colEnd, int? rowStart, int? rowEnd, int? colSpan, int? rowSpan}) GridItemWidget

Available on Widget, provided by the WidgetGridExtension extension

设置grid区域
hasColor(String colorName) bool
检查颜色名称是否存在 Check if color name exists
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onTap(VoidCallback? onTap) Widget

Available on Widget, provided by the ButtonExtensions extension

将Widget转换为可点击的按钮(使用GestureDetector)
order(int order) OrderedWidget

Available on Widget, provided by the WidgetOrderExtension extension

设置组件的order值(用于Flex布局排序)
rowEnd(int end) GridItemWidget

Available on Widget, provided by the WidgetGridExtension extension

设置grid行结束位置
rowSpan(int span) GridItemWidget

Available on Widget, provided by the WidgetGridExtension extension

设置grid行跨度
rowStart(int start) GridItemWidget

Available on Widget, provided by the WidgetGridExtension extension

设置grid行开始位置
smartBorderRadius({required bool isFirst, required bool isLast, double radius = 12.0, Axis direction = Axis.vertical}) Container

Available on Widget, provided by the WidgetConversionExt extension

动态圆角 - 根据位置智能设置
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited