File tree 1 file changed +5
-30
lines changed
lib/src/transformers/node_transformers
1 file changed +5
-30
lines changed Original file line number Diff line number Diff line change @@ -168,36 +168,11 @@ class PortalPreviewWidget extends StatelessWidget {
168
168
169
169
@override
170
170
Widget build (BuildContext context) {
171
- return Container (
172
- clipBehavior: Clip .antiAlias,
173
- decoration: BoxDecoration (
174
- borderRadius: BorderRadius .circular (4 ),
175
- border: Border .all (
176
- color: const Color (0xFFBA79F4 ),
177
- width: 2 ,
178
- ),
179
- ),
180
- child: CustomPaint (
181
- painter: StripePainter (
182
- bgColor: const Color (0xFFBA79F4 ).withOpacity (0.1 ),
183
- stripeColor: const Color (0xFFBA79F4 ),
184
- nbOfStripes: (node.outerBoxGlobal.size.longestSide / 10 ).round (),
185
- ),
186
- child: Center (
187
- child: Container (
188
- padding: const EdgeInsets .symmetric (horizontal: 12 , vertical: 6 ),
189
- decoration: BoxDecoration (
190
- color: const Color (0xFFBA79F4 ),
191
- borderRadius: BorderRadius .circular (4 ),
192
- ),
193
- child: const Text (
194
- 'Embedded Canvas' ,
195
- style: TextStyle (
196
- color: Colors .white,
197
- ),
198
- ),
199
- ),
200
- ),
171
+ return CustomPaint (
172
+ painter: StripePainter (
173
+ bgColor: const Color (0xFFBA79F4 ).withOpacity (0.1 ),
174
+ stripeColor: const Color (0xFFBA79F4 ),
175
+ nbOfStripes: (node.outerBoxGlobal.size.longestSide / 10 ).round (),
201
176
),
202
177
);
203
178
}
You can’t perform that action at this time.
0 commit comments