Skip to content

Commit ace280f

Browse files
committed
♻️ remove second box from example app
1 parent ebad0bd commit ace280f

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed
-1.31 MB
Binary file not shown.

packages/flutter_box_transform/example/lib/main.dart

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -72,34 +72,6 @@ class _MyHomePageState extends State<MyHomePage> {
7272
fit: BoxFit.fill,
7373
),
7474
),
75-
child: Stack(
76-
children: [
77-
TransformableBox(
78-
rect: rect2,
79-
clampingRect:
80-
Rect.fromLTWH(0, 0, rect.width, rect.height),
81-
onChanged: (result, event) {
82-
setState(() {
83-
rect2 = result.rect;
84-
});
85-
},
86-
contentBuilder:
87-
(BuildContext context, Rect rect, Flip flip) {
88-
return DecoratedBox(
89-
decoration: BoxDecoration(
90-
border: Border.all(
91-
color: Theme.of(context).colorScheme.primary,
92-
),
93-
image: const DecorationImage(
94-
image: AssetImage('assets/image2.jpg'),
95-
fit: BoxFit.fill,
96-
),
97-
),
98-
);
99-
},
100-
),
101-
],
102-
),
10375
);
10476
},
10577
),

0 commit comments

Comments
 (0)